summaryrefslogtreecommitdiffstats
path: root/nfsd
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-07-27 11:01:11 -0400
committerSteve Dickson <steved@redhat.com>2009-07-27 11:01:11 -0400
commit235dd6db7e13ace096e46df9b78dcec36a3163a4 (patch)
treed432092439cc571a6237ff4b042cb10f05de432a /nfsd
parent228e373b9e92910293b332b15f8cfd0876cd5bda (diff)
downloadsystemtap-235dd6db7e13ace096e46df9b78dcec36a3163a4.tar.gz
systemtap-235dd6db7e13ace096e46df9b78dcec36a3163a4.tar.xz
systemtap-235dd6db7e13ace096e46df9b78dcec36a3163a4.zip
Updated nfsd_permission
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'nfsd')
-rw-r--r--nfsd/nfsd_permission.stp27
1 files changed, 24 insertions, 3 deletions
diff --git a/nfsd/nfsd_permission.stp b/nfsd/nfsd_permission.stp
index 7e27ca5..d73e615 100644
--- a/nfsd/nfsd_permission.stp
+++ b/nfsd/nfsd_permission.stp
@@ -2,13 +2,34 @@
probe module("nfsd").function("nfsd_permission")
{
- printf("nfsd_permission: rqstp %p exp %p dentry %p acc 0x%x\n",
- $rqstp, $exp, $dentry, $acc);
+ printf("nfsd_permission: rqstp %p exp %p dentry '%s' acc 0x%x\n",
+ $rqstp, $exp, dentry2name($dentry), $acc);
printf(" : %s\n", svc_export_dump($exp));
}
+probe kernel.function("inode_permission").return
+{
+ if ($return)
+ printf(" inode_permission: error: %d\n", $return);
+}
+probe kernel.function("security_inode_permission").return
+{
+ if ($return)
+ printf(" security_inode_permission: error: %d\n", $return);
+}
+probe kernel.function("devcgroup_inode_permission").return
+{
+ if ($return)
+ printf(" devcgroup_inode_permission: error: %d\n", $return);
+}
+probe kernel.function("generic_permission").return
+{
+ if ($return)
+ printf(" generic_permission: error: %d\n", $return);
+}
probe module("nfsd").function("nfsd_permission").return
{
- printf("nfsd_permission: %s\n", nfsderror($return));
+ if ($return)
+ printf("nfsd_permission: error: %s\n", nfsderror($return));
}
probe begin { log("starting nfsd_permission probe") }
probe end { log("ending nfsd_permission probe") }