summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2008-04-09 11:47:28 -0400
committerSteve Dickson <steved@redhat.com>2008-04-09 11:47:28 -0400
commit06b10622ae9c1bb929d088ed7f0faa33eac18503 (patch)
tree2b8600a65ebb3f8500fd03dfb16dc964c765b195
parent1925e3e12148a967eba84111910b61d5f482aa35 (diff)
downloadsystemtap-06b10622ae9c1bb929d088ed7f0faa33eac18503.tar.gz
systemtap-06b10622ae9c1bb929d088ed7f0faa33eac18503.tar.xz
systemtap-06b10622ae9c1bb929d088ed7f0faa33eac18503.zip
Added nfsd_permission.stp
-rw-r--r--nfsd_permission.stp16
-rw-r--r--nfsd_setattr.stp2
-rw-r--r--tapset/svc_export.stp1
3 files changed, 18 insertions, 1 deletions
diff --git a/nfsd_permission.stp b/nfsd_permission.stp
new file mode 100644
index 0000000..7e27ca5
--- /dev/null
+++ b/nfsd_permission.stp
@@ -0,0 +1,16 @@
+#!/usr/bin/env stap
+
+probe module("nfsd").function("nfsd_permission")
+{
+ printf("nfsd_permission: rqstp %p exp %p dentry %p acc 0x%x\n",
+ $rqstp, $exp, $dentry, $acc);
+ printf(" : %s\n", svc_export_dump($exp));
+}
+probe module("nfsd").function("nfsd_permission").return
+{
+ printf("nfsd_permission: %s\n", nfsderror($return));
+}
+probe begin { log("starting nfsd_permission probe") }
+probe end { log("ending nfsd_permission probe") }
+
+
diff --git a/nfsd_setattr.stp b/nfsd_setattr.stp
index 55ad5ad..b0cd7e0 100644
--- a/nfsd_setattr.stp
+++ b/nfsd_setattr.stp
@@ -1,3 +1,5 @@
+#!/usr/bin/env stap
+
probe module("nfsd").function("nfsd_setattr")
{
printf("nfsd_setattr: rqstp %p fhp %p iap %p check_guard %d\n",
diff --git a/tapset/svc_export.stp b/tapset/svc_export.stp
index 9fe7f13..c7649fb 100644
--- a/tapset/svc_export.stp
+++ b/tapset/svc_export.stp
@@ -3,7 +3,6 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
#include <linux/path.h>
#endif
-#include <linux/nfsd/export.h>
%}
function svc_export_dump:string(_exp:long)