diff options
author | David Smith <dsmith@redhat.com> | 2009-04-21 08:21:34 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-04-21 08:21:34 -0500 |
commit | d0ea46ceac2e72fe0b86269ea50c004711148158 (patch) | |
tree | b3eff51448fec3ac7ebe0d24da69ea87113ec955 /includes | |
parent | 543b26ed48ac66743ad309ac6cb848a5d377260f (diff) | |
download | systemtap-steved-d0ea46ceac2e72fe0b86269ea50c004711148158.tar.gz systemtap-steved-d0ea46ceac2e72fe0b86269ea50c004711148158.tar.xz systemtap-steved-d0ea46ceac2e72fe0b86269ea50c004711148158.zip |
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.
Diffstat (limited to 'includes')
0 files changed, 0 insertions, 0 deletions