Josh Stone [Fri, 13 Jun 2008 21:06:18 +0000 (14:06 -0700)]
Minimize last_error checking.
The old behavior was to check last_error all over the place, and if set,
jump to the out-label. Now it's changed to just jump to the out-label
directly after setting last_error.
David Smith [Wed, 11 Jun 2008 16:16:07 +0000 (11:16 -0500)]
utrace thread.begin and thread.end probe test fixes.
2008-06-11 David Smith <dsmith@redhat.com>
* systemtap.base/utrace_p5.exp: Made changes to work when not
configured in the src directory.
* systemtap.base/utrace_p5_multi.c: Made changes to work on x86_64
systems.
David Smith [Wed, 11 Jun 2008 15:37:32 +0000 (10:37 -0500)]
Added .thread.begin and .thread.end utrace probe tests.
2008-06-11 David Smith <dsmith@redhat.com>
* systemtap.base/utrace_p5.exp: Added 'process().thread.begin' and
'process().thread.end' tests.
* systemtap.base/utrace_p5_multi.c: Added multi-threaded test
program for utrace_p5.exp.
* .gitignore: Updated.
David Smith [Mon, 9 Jun 2008 18:10:14 +0000 (13:10 -0500)]
Made 2.6.25 kernel updates.
2008-06-09 David Smith <dsmith@redhat.com>
* tapsets.cxx (utrace_derived_probe::join_group): Removed
generated inclusion of tracehook.h.
(utrace_var_expanding_copy_visitor::visit_target_symbol): Uses
'_stp_arg(0)' to get value of '$syscall'.
David Smith [Fri, 6 Jun 2008 13:43:59 +0000 (08:43 -0500)]
Changed/renamed utrace probes.
2008-06-06 David Smith <dsmith@redhat.com>
* tapsets.cxx (enum utrace_derived_probe_flags): Redefined in
terms of probe types instead of utrace events.
(utrace_var_expanding_copy_visitor::visit_target_symbol): Uses new
utrace_derived_probes_flags values.
(utrace_builder::build): Handles new probe types and new
utrace_derived_probes_flags values.
(utrace_derived_probe_group::emit_probe_decl): Updated to handle
new utrace_derived_probe_flags values.
(utrace_derived_probe_group::emit_module_decls): Ditto. Also
correctly handles 'begin' events correctly by installing a quiesce
handler (instead of running the probe directly).
(register_standard_tapsets): Registers updated utrace probe
types.
2008-06-06 David Smith <dsmith@redhat.com>
* task_finder.c: Added some debug logic. Use
'-DDEBUG_TASK_FINDER' to enable.
(stap_utrace_attach): Renamed from '__stp_utrace_attach'.
(__stp_utrace_attach_match_filename): Calls callback with
notification that this is a process or thread event.
(__stp_utrace_attach_match_tsk): Ditto.
(__stp_utrace_task_finder_report_clone): Ditto.
(__stp_utrace_task_finder_report_exec): Ditto.
(stap_utrace_task_finder_report_death): Ditto.
(stap_start_task_finder): Ditto.
(stap_stop_task_finder): Added debug logic.
2008-06-06 David Smith <dsmith@redhat.com>
* systemtap.base/utrace_p4.exp: Updated for utrace probe changes.
* systemtap.base/utrace_p5.exp: Ditto.
Srinivasa DS <srinivasa@in.ibm.com> -fpie option puts limit on GOT size and hence systemtap build fails on s390. So use -fPIE which doesn't put limit on GOT size.
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.