diff options
author | Mark Wielaard <mwielaard@redhat.com> | 2008-07-09 17:14:01 +0200 |
---|---|---|
committer | Mark Wielaard <mwielaard@redhat.com> | 2008-07-09 17:18:23 +0200 |
commit | 25814e6c66b461380bbc9ef8fa263c868983efa6 (patch) | |
tree | 5efb7462e9561d2724a85a148e2feb0eb69dc567 /runtime/task_finder.c | |
parent | 07bd3b82ab643ba1f889c07132074dd0cd8c2d1d (diff) | |
download | systemtap-steved-25814e6c66b461380bbc9ef8fa263c868983efa6.tar.gz systemtap-steved-25814e6c66b461380bbc9ef8fa263c868983efa6.tar.xz systemtap-steved-25814e6c66b461380bbc9ef8fa263c868983efa6.zip |
Fix PR 6732: Add runtime/autoconf-real-parent.c check for task_struct field.
Diffstat (limited to 'runtime/task_finder.c')
-rw-r--r-- | runtime/task_finder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/task_finder.c b/runtime/task_finder.c index 316a9bc0..fc573eb6 100644 --- a/runtime/task_finder.c +++ b/runtime/task_finder.c @@ -485,7 +485,7 @@ __stp_utrace_task_finder_report_exec(struct utrace_attached_engine *engine, // '/bin/bash' clones and then execs '/bin/ls'. If the user // was probing '/bin/bash', the cloned thread is still // '/bin/bash' up until the exec. -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25) +#if ! defined(STAPCONF_REAL_PARENT) #define real_parent parent #endif if (tsk != NULL && tsk->real_parent != NULL @@ -494,6 +494,7 @@ __stp_utrace_task_finder_report_exec(struct utrace_attached_engine *engine, // *could* call exec (although they aren't supposed to). __stp_utrace_attach_match_tsk(tsk->real_parent, tsk, 0, 1); } +#undef real_parent // We assume that all exec's are exec'ing a new process. Note // that we don't use bprm->filename, since that path can be |