diff options
author | Steve Dickson <steved@redhat.com> | 2011-10-13 14:28:14 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-10-13 14:28:14 -0400 |
commit | 1fab51bf18976626f580d99349eee1b6008c6a77 (patch) | |
tree | 22b20e8777d91d1d785baecd9e81a0a024a8da46 /tapset | |
parent | 0b41083cd148017bbccc2568a0a633b057a80e7a (diff) | |
download | systemtap-1fab51bf18976626f580d99349eee1b6008c6a77.tar.gz systemtap-1fab51bf18976626f580d99349eee1b6008c6a77.tar.xz systemtap-1fab51bf18976626f580d99349eee1b6008c6a77.zip |
Added more mount debugging routines
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/fs.stp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tapset/fs.stp b/tapset/fs.stp index 94c39ff..6f3fe9d 100644 --- a/tapset/fs.stp +++ b/tapset/fs.stp @@ -59,3 +59,17 @@ function file2ops:string(filep:long) CATCH_DEREF_FAULT(); %} +function pathdump:string(pathp:long) +%{ + struct path *path = (struct path *)(long) kread(&(THIS->pathp)); + struct vfsmount *mnt=NULL; + + if (path) { + mnt = (struct vfsmount *) kread(&(path->mnt)); + } + if (mnt) { + snprintf(THIS->__retvalue, MAXSTRINGLEN, "pathdump: mnt_sb 0x%p mnt_root 0x%p dentry 0x%p", + mnt->mnt_sb, mnt->mnt_root, path->dentry); + } + CATCH_DEREF_FAULT(); +%} |