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 /tapset/task.stp | |
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 'tapset/task.stp')
-rw-r--r-- | tapset/task.stp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/task.stp b/tapset/task.stp index d89729e8..9215e83f 100644 --- a/tapset/task.stp +++ b/tapset/task.stp @@ -23,7 +23,11 @@ function task_current:long () %{ /* pure */ // Return the parent task_struct of the given task function task_parent:long (task:long) %{ /* pure */ struct task_struct *t = (struct task_struct *)(long)THIS->task; +#if defined(STAPCONF_REAL_PARENT) + THIS->__retvalue = (long)kread(&(t->real_parent)); +#else THIS->__retvalue = (long)kread(&(t->parent)); +#endif CATCH_DEREF_FAULT(); %} |