]> sourceware.org Git - systemtap.git/commit
Correctly handle $syscall in process(PID_OR_PATH).syscall.return probes.
authorDavid Smith <dsmith@redhat.com>
Tue, 21 Apr 2009 13:21:34 +0000 (08:21 -0500)
committerDavid Smith <dsmith@redhat.com>
Tue, 21 Apr 2009 13:21:34 +0000 (08:21 -0500)
commitd0ea46ceac2e72fe0b86269ea50c004711148158
treeb3eff51448fec3ac7ebe0d24da69ea87113ec955
parent543b26ed48ac66743ad309ac6cb848a5d377260f
Correctly handle $syscall in process(PID_OR_PATH).syscall.return probes.
2009-04-21  David Smith  <dsmith@redhat.com>

* tapsets.cxx (utrace_derived_probe::utrace_derived_probe): If
during target-variable-expanding the probe, we added a new block
or probe, add them.
(utrace_var_expanding_visitor::visit_target_symbol_cached): New
function to cache target variables in a generated syscall probe to
use in syscall.return probes.
(utrace_var_expanding_visitor::visit_target_symbol_context): In a
syscall.return probe, you can't access $syscall.  So use
visit_target_symbol_cached() to cache the value for use here.
* testsuite/systemtap.base/utrace_syscall_args.stp: Test use of
$syscall in syscall.return probes.
tapsets.cxx
testsuite/systemtap.base/utrace_syscall_args.stp
This page took 0.0257 seconds and 5 git commands to generate.