[patch] Fix PR 6732 - Add autoconf-real-parent.c check

Mark Wielaard mwielaard@redhat.com
Wed Jul 9 15:28:00 GMT 2008


Hi,

The following patch adds a runtime configure check for the real_parent
field of the task_struct. As described in PR 6732 some (utrace enabled)
kernels don't have this field, but have a parent field, which give the
information that mainline kernels have in the real_parent field. This
check defines STAPCONF_REAL_PARENT which is then used when the
runtime/tapset code is build to detect what field to use.

ChangeLog
2008-07-09  Mark Wielaard  <mwielaard@redhat.com>

    PR 6732
    * buildrun.cxx (compile_pass): Define STAPCONF_REAL_PARENT by
    calling autoconf-real-parent.c

runtime/ChangeLog
2008-07-09  Mark Wielaard  <mwielaard@redhat.com>

    PR 6732
    * autoconf-real-parent.c: New file.
    * task_finder.c (__stp_utrace_task_finder_report_exec): Define
    real_parent using STAPCONF_REAL_PARENT. Undefine when no longer
    needed.

tapset/ChangeLog
2008-07-09  Mark Wielaard  <mwielaard@redhat.com>

    PR 6732
    * context.stp (ppid): Use STAPCONF_REAL_PARENT.
    (pexecname): Likewise.
    * task.stp (task_parent): Likewise.

This makes the test results on mainline and newer fedora 9 2.6.25+
kernels much nicer. Tested against a 2.6.24.7-92.fc8 (parent field) and
2.6.25.9-76.fc9.i686 (real_parent field).

Committed and pushed,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: real-parent.patch
Type: text/x-patch
Size: 3648 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20080709/f130002d/attachment.bin>


More information about the Systemtap mailing list