| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
PR 4075 fix from Ananth Mavinakayanahalli
* string.h (_stp_get_user): Define.
* string.c (_stp_text_str): Use _stp_get_user().
|
|
|
|
|
|
|
|
|
|
| |
Fallout from PR 3331 fix. Sometimes glibc and the
kernel disagree about signed vs unsigned.
* aux_syscalls.stp: Rename __uid() to __int32().
* syscalls.stp: Change syscall.chown, syscall.fchown,
syscall.lchown, and syscall.lseek to use __int32().
* syscalls2.stp: Change syscall.setregid, syscall.resgid,
syscall.resuid, and syscall.setreuid to use __int32().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 3331.
* loc2c.c (emit_base_fetch): Emit size/signedness cast
for every low-level fetch.
(translate_base_fetch, c_translate_fetch, c_translate_store,
c_translate_pointer): Fetch & pass the $target signedness.
2007-06-05 Frank Ch. Eigler <fche@elastic.org>
PR 3331.
* systemtap.base/deref2.*: New test, disabled.
|
| |
|
|
|
|
|
|
|
| |
* mainloop.c (cleanup_and_exit): Disable signals
while exiting.
(fatal_handler): Use return values from write() to
avoid warnings.
|
|
|
|
|
| |
PR 4589.
* systemtap.base/optim.*: Rewritten, simplified.
|
|
|
|
|
|
| |
PR 3579
From Eugeniy Meshcheryakov <eugen@debian.org>
* cache.cxx, parse.cxx: Add #include <cstring> for gcc 4.3.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 4567.
* staptree.cxx (varuse_collecting_visitor): Add side-effect
result query functions.
* elaborate.cxx (dead_stmtexpr_remover::visit_expr_statement):
Switch to it.
(dead_assignment_remover::visit_assignment): Skip elision of
lvalues with side-effects in index exprs.
* staptree.h: Corresponding changes.
2007-05-30 Frank Ch. Eigler <fche@redhat.com>
PR 4567.
* systemtap.base/optim.stp, optim.exp: New test.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Patch from Quentin Barnes.
* arith.c: Add arm support for 64-bit division.
* copy.c: Enable arm support.
* loc2c-runtime.h: Ditto.
* regs.[ch]: Ditto.
* stack.c: Include stack-arm.c.
* stack-arm.c: New file.
* time.c (_stp_gettimeofday_ns): hack
for arm. See PR 4569.
|
| |
|
|
|
|
|
|
| |
PR 4458
* print_new.c (_stp_print_flush): Use interrupt-disabling
spinlock variants.
|
| |
|
|
|
|
| |
* systemtap.stress/conversions.exp: Adjust for ia64 address space.
|
|
|
|
|
|
|
|
| |
PR 2224
* map.h (NEED_MAP_LOCKS): New config macro, defaults to 0.
(MAP_GET_CPU, MAP_PUT_CPU): Wrappers, default to ~no-op.
* map.c (_stp_pmap_clear,agg): Use them.
* pmap-gen.c (_stp_pmap_new,set,add,get_cpu,get,del): Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 4255 teaser.
* elaborate.cxx (has_null_param): New function.
* elaborate.h: Declare it.
* session.h: Include uprobe_derived_probes group.
* tapsets.cxx (uprobe_*): New classes.
(all_session_groups): List uprobes in list.
(register_standard_tapset): Interpret
process(#).statement(#).absolute and
process(#).statement(#).absolute.return probe points.
|
|
|
|
|
| |
Patch from Quentin Barnes.
* tapsets.cxx (query_module): Add support for arm.
|
|
|
|
|
|
|
|
| |
* systemtap.samples/lket.exp (cleanfiles): Set timeout inside expect.
* systemtap.maps/absentstats.exp: Set timeout inside expect.
* lib/stap_run2.exp (stap_run2): Set timeout to 180 inside expect.
* lib/stap_run.exp (stap_run): Set timeout to 180 for slower machines.
Remove $ anchor on output. Fix a few minor nits in patterns.
|
|
|
|
| |
* syscall.exp (test_procedure): Remove stray timeout assignment.
|
|
|
|
| |
* mainloop.c (cleanup_and_exit): Fix typo.
|
|
|
|
|
|
|
| |
PR4446
* systemtap.base/marker.exp: Renumbered tests and added new tests
for invalid argument name ("$foo1") and writing to marker
arguments.
|
| |
|
|
|
|
| |
* systemtap.samples/system_func.exp: Fix pattern anchoring.
|
|
|
|
|
|
| |
PR4446
* systemtap.base/marker.exp: Added new marker test.
* buildok/marker.stp: Removed old marker test.
|
|
|
|
| |
* mainloop.c (init_staprun): Change dbug() call.
|
|
|
|
|
| |
* relay.c: Fix ppoll() call and some race conditions involving
signals.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 4446.
* elaborate.h (derived_probe::initialize_probe_context_vars): New
virtual function that will allow added context vars to be
initialized.
* translate.cxx (c_unparser::emit_common_header): Added
'mark_va_list'.
(c_unparser::emit_probe): Calls new function
initialize_probe_context_vars.
(translate_pass): Includes linux/marker.h if CONFIG_MARKERS is
defined.
* tapsets.cxx (struct dwarf_query): Split into base_query (which
contains most of the original code) and a much smaller
dwarf_query class.
(struct base_query): New class.
(dwarf_query::handle_query_module): New function.
(query_module): Moved code into dwarf_query::handle_query_module().
(mark_derived_probe): Adjusted for new kernel markers.
(mark_derived_probe_group): Ditto.
(mark_var_expanding_copy_visitor): Ditto.
(mark_var_expanding_copy_visitor::visit_target_symbol): Generates
code for new kernel markers.
(struct mark_query): New class.
(mark_query::handle_query_module): New function.
(mark_derived_probe::mark_derived_probe): Adjusted for new kernel
markers.
(mark_derived_probe::join_group): Ditto.
(mark_derived_probe::emit_probe_context_vars): Ditto.
(mark_derived_probe::parse_probe_sig): New function.
(mark_derived_probe::initialize_probe_context_vars): New function.
(mark_derived_probe::emit_module_decls): Adjust for new kernel markers.
(mark_derived_probe::emit_module_init): Ditto.
(mark_derived_probe::emit_module_exit): Ditto.
(struct mark_builder): Ditto.
(mark_builder::build): Ditto.
|
|
|
|
|
|
|
|
|
|
|
| |
* syscalls.stp: Make optional sys_alarm, sys_fadvise64,
sys_gethostname, sys_getpgrp, and sys_llseek.
(syscall.getrlimit): Add optional calls sys_old_getrlimit,
compat_sys_getrlimit, and compat_sys_old_getrlimit.
* syscalls2.stp: Make optional sys_nice, sys_rt_sigreturn,
sys_signal, sys_sigprocmask, sys_utime
(syscall.old_getrlimit): Moved into syscall.getrlimit.
|
|
|
|
| |
* syscall2.stp: Correct sys_pipe function args for ia64.
|
|
|
|
| |
* scheduler.stp: Correct function argument.
|
| |
|
|
|
|
|
| |
* vsprintf.c: Add comment about %p.
* regs.c, stack*.c, sym.c: Fix %p calls.
|
| |
|
|
|
|
|
|
| |
* control.c: Change default buffer number and size.
(_stp_ctl_write): Add debug statements. Check size of
message to avoid overwriting buffer.
|
| |
|
|
|
|
|
| |
* relay.c (reader_thread): Set timeout for streaming to
200ms.
|
|
|
|
|
| |
* relay.c (reader_thread): For bulk mode, set timeout to NULL
so ppoll never times out.
|
|
|
|
|
|
|
|
|
|
| |
* syscalls2.stp: Added compat_sys_pause to syscall.pause.
* syscalls.stp: Added sys_lstat64 to syscall.lstat.
Added compat_sys_gettimeofday to syscall.gettimeofday.
* ppc64/syscalls.stp: Remove sys_lstat64.
* i686/syscalls.stp: Remove sys_lstat64.
|
|
|
|
|
| |
* relay.c (ppoll): Add a compatibility function for
glibc < 2.4.
|
|
|
|
|
| |
* buildrun.cxx (run_pass): Send proper verbosity
level to staprun
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Signal handler cleanup.
* mainloop.c (fatal_handler): New. Cleanly handle
unexpected fatal signals.
(setup_main_signals): New. Set signals once mainloop
is entered.
(setup_signals): New. Block certain signals during initialization.
Set handler for fatal signals.
* relay.c (reader_thread): Use ppoll(). Terminate on
SIGUSR2 after reading any remaining data.
(close_relayfs): Remove sleep hack. Send SIGUSR2 to all threads.
Runtime debug messages.
* staprun.h: Change dbug() to accept a debuglevel and
enable it.
* *.c: Modify dbug() calls.
|
|
|
|
|
| |
* testsuite/systemtap.syscall/syscall.exp: Build correct sizes for
32-bit and 64-bit machines.
|
|
|
|
|
|
| |
Patch from David Smith
* mainloop.c (stp_main_loop): Properly handle write()
return value. Fixes build problem with some compilers.
|
|
|
|
|
|
|
| |
PR4466
* systemtap.samples/system_func.stp: Rewrite test to account
for probes not being placed until after begin.
* systemtap.samples/system_func.exp: Only expect 1 sys_open.
|
|
|
|
|
| |
* signal.c (main): Fix expected expression to accept
both 32 and 64-bit pointers.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1305.
* tapsets.cxx (iterate_over_srcfile_lines): Exclude approximate
file:lineno matches optimistically returned by dwarf_getsrc_file.
(query_srcfile_line): Use Dwarf_Line line number for constructing
derived_probe location string.
2007-05-06 Frank Ch. Eigler <fche@elastic.org>
* semko/thirtynine.stp: New test.
|