David Smith [Wed, 28 May 2008 16:56:06 +0000 (11:56 -0500)]
Handle bug #6500 fallout.
2008-05-28 David Smith <dsmith@redhat.com>
* tapsets.cxx (utrace_derived_probe_group::emit_probe_decl):
Instead of adding clone handlers, just call the probes directly.
(utrace_derived_probe_group::emit_module_decls): For syscall
probes, on exec detach the parent's utrace engine from the child.
2008-05-28 David Smith <dsmith@redhat.com>
* task_finder.c (__stp_utrace_attach_match_filename): Added
register_p parameter, which is passed on to the callback. Only
adds death notification if register_p is 1. If register_p is 0,
removes death notification.
(__stp_utrace_attach_match_tsk): Moved code from
__stp_utrace_task_finder_report_clone that handles the details of
grabbing a task's path.
(__stp_utrace_task_finder_report_clone): Calls new
__stp_utrace_attach_match_tsk().
(__stp_utrace_task_finder_report_exec): Notifies upper layer that
it might need to detach from newly exec'ed process.`
David Smith [Wed, 21 May 2008 17:59:56 +0000 (12:59 -0500)]
Minor improvement to multi-threaded support.
2008-05-21 David Smith <dsmith@redhat.com>
* tapsets.cxx (utrace_derived_probe_group::emit_module_decls):
Added new 'event_flag' parameter to task_finder callback. Only
calls probe handlers if we received the correct event.
2008-05-21 David Smith <dsmith@redhat.com>
* task_finder.c (__stp_utrace_attach_match_filename): Added
event_flag parameter of event to pass to callback.
(__stp_utrace_task_finder_target_death): Ditto.
(__stp_utrace_task_finder_report_clone): Calls
__stp_utrace_attach_match_filename() with new argument.
(__stp_utrace_task_finder_report_exec): Ditto.
(stap_start_task_finder): Calls callback with an invalid
event_flag since this callback call isn't related to an event.
Frank Ch. Eigler [Wed, 28 May 2008 12:17:42 +0000 (08:17 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap:
Create user based cache dir in testsuite.
Refresh cscope.files.
Add prototypes for using the 2.6.26 probe_kernel_* functions.
Josh Stone [Sat, 24 May 2008 03:35:55 +0000 (20:35 -0700)]
Add prototypes for using the 2.6.26 probe_kernel_* functions.
For now, the autoconf for the new code is disabled, because it shows
poorer performance than our existing dereferencing functions. This is
probably because ours get inlined and optimized. The code is being
committed so that we may re-evaluate its usefulness in the future.
Frank Ch. Eigler [Wed, 21 May 2008 15:43:53 +0000 (11:43 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap:
Use pointer_arg to fetch arguments for syscall.utime and compat_utime.
Optimize compound and binary expression assignments.
David Smith [Fri, 16 May 2008 19:51:07 +0000 (14:51 -0500)]
Fixed PR 6499 (utrace probe crash).
2008-05-16 David Smith <dsmith@redhat.com>
PR 6499.
* task_finder.c (stap_register_task_finder_target): Added error
check.
(__stp_utrace_task_finder_report_clone): Ditto.
(stap_utrace_detach_ops): Uses do_each_thread/while_each_thread
instead of for_each_process (which only iterated among process
group leaders instead of all threads).
(stap_start_task_finder): Ditto.
Frank Ch. Eigler [Fri, 16 May 2008 15:04:30 +0000 (11:04 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap:
Ignores signals when removing the temporary directory.
Add appropriate ChangeLog entry for earlier checkin.
David Smith [Thu, 15 May 2008 20:52:12 +0000 (15:52 -0500)]
Ignores signals when removing the temporary directory.
2008-05-15 David Smith <dsmith@redhat.com>
* main.cxx (setup_signals): New function.
(main): Calls setup_signals() to setup signal handling. When
removing the temporary directory, ignore signals.
Jim Keniston [Tue, 13 May 2008 22:34:00 +0000 (15:34 -0700)]
Converted more aliases to use arg numbers instead of names. In particular,
converted the aliases for futex, getrusage, and mq_open -- which presented
problems when this tapset is used without dwarf, even if those aliases
aren't used.
Frank Ch. Eigler [Mon, 12 May 2008 23:37:31 +0000 (19:37 -0400)]
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
* 'master' of ssh://sources.redhat.com/git/systemtap:
The beginnings of a no-dwarf version of syscalls.stp. Selected
Added CPU REGISTERS and NUMBERED FUNCTION ARGUMENTS sections to
Replaced [u_]arg() with [u]int_arg(), [u]long_arg(), {s|u}32_arg(),
Added support for register(), u_register(), arg(), and u_arg() functions.
* testsuite/{semok,semko}/nodwf*.stp
PR 4311 - Function boundary tracing without debuginfo: Phase I
David Smith [Thu, 8 May 2008 21:19:08 +0000 (16:19 -0500)]
Fix for PR 6500.
2008-05-08 David Smith <dsmith@redhat.com>
PR 6500.
* task_finder.c (__stp_utrace_task_finder_report_exec): Moved
attach logic to __stp_utrace_attach_match_filename().
(__stp_utrace_attach_match_filename): New function.
(__stp_utrace_task_finder_report_clone): Calls
__stp_utrace_attach_match_filename() to attach to newly cloned
threads.