summaryrefslogtreecommitdiffstats
path: root/nfsd
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-07-14 11:16:34 -0400
committerSteve Dickson <steved@redhat.com>2009-07-14 11:16:34 -0400
commit228e373b9e92910293b332b15f8cfd0876cd5bda (patch)
tree916701d6065f1ea49de76241b12081126d8ee6fc /nfsd
parent5b0e9ed86dfa2754ffe770fb81ec362fa4da0de6 (diff)
downloadsystemtap-228e373b9e92910293b332b15f8cfd0876cd5bda.tar.gz
systemtap-228e373b9e92910293b332b15f8cfd0876cd5bda.tar.xz
systemtap-228e373b9e92910293b332b15f8cfd0876cd5bda.zip
Added in some ext3, acl, and inode scripts
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'nfsd')
-rw-r--r--nfsd/nfsd4_open.stp49
-rw-r--r--nfsd/nfsd4_set_nfs4_acl.stp29
2 files changed, 78 insertions, 0 deletions
diff --git a/nfsd/nfsd4_open.stp b/nfsd/nfsd4_open.stp
new file mode 100644
index 0000000..73a14a6
--- /dev/null
+++ b/nfsd/nfsd4_open.stp
@@ -0,0 +1,49 @@
+/*
+ * To run:
+ * stap -g -I../tapset nfsd4_open.stp
+ */
+probe module("nfsd").function("nfsd4_process_open1")
+{
+ printf("nfsd4_process_open1: open %p\n", $open);
+}
+probe module("nfsd").function("nfsd4_process_open1").return
+{
+ printf("nfsd4_process_open1: %s\n", nfsderror($return));
+}
+
+probe module("nfsd").function("do_open_permission")
+{
+ printf("do_open_permission: open %p\n", $open);
+}
+probe module("nfsd").function("do_open_permission").return
+{
+ printf("do_open_permission: %s\n", nfsderror($return));
+}
+
+probe module("nfsd").function("nfsd4_process_open2")
+{
+ printf("nfsd4_process_open2: open %p\n", $open);
+}
+probe module("nfsd").function("nfsd4_process_open2").return
+{
+ printf("nfsd4_process_open2: %s\n", nfsderror($return));
+}
+probe module("nfsd").function("nfsd_permission")
+{
+ printf("nfsd_permission: exp 0x%x\n", $acc);
+}
+probe module("nfsd").function("nfsd_permission").return
+{
+ printf("nfsd_permission: %s\n", nfsderror($return));
+}
+probe module("ext3").function("ext3_check_acl")
+{
+ printf("ext3_check_acl: mask 0x%x\n", $mask);
+}
+probe module("ext3").function("ext3_check_acl").return
+{
+ printf("ext3_check_acl: %d\n", $return);
+}
+probe begin { log("starting nfsd4_open probe") }
+probe end { log("ending nfsd4_open probe") }
+
diff --git a/nfsd/nfsd4_set_nfs4_acl.stp b/nfsd/nfsd4_set_nfs4_acl.stp
new file mode 100644
index 0000000..45fcd85
--- /dev/null
+++ b/nfsd/nfsd4_set_nfs4_acl.stp
@@ -0,0 +1,29 @@
+#!/usr/bin/env stap
+/*
+ * To run:
+ * stap -g -I../tapset nfsd4_set_nfs4_acl.stp
+ */
+
+probe module("nfsd").function("nfsd4_set_nfs4_acl")
+{
+ printf("nfsd4_set_nfs4_acl: rqstp %p \n", $rqstp);
+}
+probe module("nfsd").function("nfsd4_set_nfs4_acl").return
+{
+ printf("nfsd4_set_nfs4_acl: %s\n", nfsderror($return));
+}
+probe module("nfsd").function("nfs4_acl_nfsv4_to_posix").return
+{
+ printf(" nfs4_acl_nfsv4_to_posix: %d(%s)\n", $return, errno_str($return));
+}
+probe module("nfsd").function("set_nfsv4_acl_one").return
+{
+ printf(" set_nfsv4_acl_one: %s\n", nfsderror($return));
+}
+probe module("nfsd").function("_nfsv4_to_posix_one").return
+{
+ printf(" _nfsv4_to_posix_one: %p\n", $return);
+}
+probe begin { log("starting nfsd4_set_nfs4_acl probe") }
+probe end { log("ending nfsd4_set_nfs4_acl probe") }
+