]> sourceware.org Git - systemtap.git/commit
PR28958: Fix tapset macros to allow nfsd-trace.stp and task_paths.stp to work
authorWilliam Cohen <wcohen@redhat.com>
Tue, 22 Mar 2022 17:39:45 +0000 (13:39 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Tue, 22 Mar 2022 17:39:45 +0000 (13:39 -0400)
commit3739d47c4cc427ce4818d884f429a3efa85c38ae
tree1691d68b594fde7284d5396c22907757fae85c65
parent975016c0a7120843775761a528deb1de46a2c031
PR28958: Fix tapset macros to allow nfsd-trace.stp and task_paths.stp to work

The task_dentry_path function in the tapset was getting read faults
instead of returning valid strings describing a filesystem path.  This
caused the nfsd-trace.stp example and task_path.stp in the testsuite
to not function properly.

The root cause of the problem was some cast operators in macros were
not accessing the proper struct debuginfo due to a missing "kernel" in
the cast operator.  The cast operators were corrected and scripts
using the task_dentry_path function now function properly.
tapset/offsetof.stpm
tapset/type_defined.stpm
This page took 0.027382 seconds and 5 git commands to generate.