This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/6732] New: task_struct parent field removed from RHEL-5 and fedora 9 kernels
- From: "mwielaard at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 9 Jul 2008 10:25:15 -0000
- Subject: [Bug tapsets/6732] New: task_struct parent field removed from RHEL-5 and fedora 9 kernels
- Reply-to: sourceware-bugzilla at sourceware dot org
>From the thread starting at:
http://sourceware.org/ml/systemtap/2008-q2/msg00390.html
William Cohen:
The ppid() and pexecname() functions in tapset/context.stp and the task_parent()
function in tapset/task.stp use the parent field in task_struct. It appears that
the parent field in task_struct has been removed by linux-2.6-utrace.patch in
RHEL-5 and F-9 kernels. All that is left is the real_parent field.
Roland McGrath:
Using real_parent is correct in all kernels if you are concerned with
anything like the parent of the process. The task_struct.parent field in
vanilla kernels in fact only really relates to ptrace.
In RHEL5 and F[678] kernels, the utrace patch removed the ptrace-related
parent field and renamed real_parent to parent. In future Fedora kernels,
there may or may not be a ptrace-related parent field, but the real useful
field will go back to being called real_parent (so as to minimize the
cosmetic divergence from upstream code). (No statements about RHEL5>.2
kernels at this time.)
--
Summary: task_struct parent field removed from RHEL-5 and fedora
9 kernels
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mwielaard at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6732
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.