diff options
author | David Smith <dsmith@redhat.com> | 2009-04-27 15:53:21 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-04-27 15:53:21 -0500 |
commit | 975a582b1274eb66088466a66a2eb2c3a70cf766 (patch) | |
tree | 6e03237e25be2e1ec639666fa85688743598c1ce /runtime/itrace.c | |
parent | 097e4a5b397b9e826453e01caa1f8169886128c5 (diff) | |
download | systemtap-steved-975a582b1274eb66088466a66a2eb2c3a70cf766.tar.gz systemtap-steved-975a582b1274eb66088466a66a2eb2c3a70cf766.tar.xz systemtap-steved-975a582b1274eb66088466a66a2eb2c3a70cf766.zip |
Fixed itrace on RHEL5 (PR10091).
PR10091 fix.
* runtime/itrace.c: Includes ptrace_compatibility.h.
(usr_itrace_report_quiesce): Corrected return value for original version
of utrace.
* runtime/ptrace_compatibility.h: Defines arch_has_single_step() and
arch_has_block_step() in terms of ARCH_HAS_SINGLE_STEP and
ARCH_HAS_BLOCK_STEP.
Diffstat (limited to 'runtime/itrace.c')
-rw-r--r-- | runtime/itrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/itrace.c b/runtime/itrace.c index 97ba427e..68f85301 100644 --- a/runtime/itrace.c +++ b/runtime/itrace.c @@ -18,6 +18,7 @@ #include <linux/sched.h> #include <linux/rcupdate.h> #include <linux/utrace.h> +#include "ptrace_compatibility.h" /* PR9974: Adapt to struct renaming. */ #ifdef UTRACE_API_VERSION @@ -143,7 +144,7 @@ static u32 usr_itrace_report_quiesce(enum utrace_resume_action action, WARN_ON(!ui); #ifdef UTRACE_ORIG_VERSION - return (ui->step_flag); // XXX XXX XXX + return (ui->step_flag | UTRACE_ACTION_NEWSTATE); #else return (event == 0 ? ui->step_flag : UTRACE_RESUME); #endif |