summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-12-21 11:55:46 -0500
committerSteve Dickson <steved@redhat.com>2009-12-21 11:55:46 -0500
commita2fd4a73d9fcf61e8bedc1476409fb19dfde5c5b (patch)
tree1a38feba80919b58649bb9ca544eb5a2a6cde76c /sys
parent870cc5e54797b610839b8384e5fcccdcc1999cac (diff)
downloadsystemtap-a2fd4a73d9fcf61e8bedc1476409fb19dfde5c5b.tar.gz
systemtap-a2fd4a73d9fcf61e8bedc1476409fb19dfde5c5b.tar.xz
systemtap-a2fd4a73d9fcf61e8bedc1476409fb19dfde5c5b.zip
Added inode_permission.stp
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/inode_permission.stp67
1 files changed, 67 insertions, 0 deletions
diff --git a/sys/inode_permission.stp b/sys/inode_permission.stp
new file mode 100644
index 0000000..626e781
--- /dev/null
+++ b/sys/inode_permission.stp
@@ -0,0 +1,67 @@
+probe kernel.function("inode_permission")
+{
+ if (isinstr(execname(), "nfsd"))
+ printf("inode_permission(%s): inode %p mask 0x%x\n", execname(),
+ $inode, $mask);
+}
+probe kernel.function("inode_permission").return
+{
+ if (isinstr(execname(), "nfsd"))
+ printf("inode_permission: return %d\n", $return);
+}
+probe kernel.function("security_inode_permission")
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" security_inode_permission: inode %p mask 0x%x\n", $inode, $mask);
+}
+probe kernel.function("security_inode_permission").return
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" security_inode_permission: return %d\n", $return);
+}
+probe kernel.function("generic_permission")
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" generic_permission: inode %p mask 0x%x check %p\n",
+ $inode, $mask, $check_acl);
+}
+probe kernel.function("generic_permission").return
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" generic_permission: return %d\n", $return);
+}
+probe kernel.function("acl_permission_check")
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" acl_permission_check: inode %p mask 0x%x\n", $inode, $mask);
+}
+probe kernel.function("acl_permission_check").return
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" acl_permission_check: return %d\n", $return);
+}
+probe kernel.function("posix_acl_permission")
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" posix_acl_permission: inode %p acl %p want 0x%x\n",
+ $inode, $acl, $want);
+}
+probe kernel.function("posix_acl_permission").return
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" posix_acl_permission: return %d\n", $return);
+}
+probe kernel.function("ext3_check_acl")
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" ext3_check_acl: inode %p mask 0x%x\n",
+ $inode, $mask);
+}
+probe kernel.function("ext3_check_acl").return
+{
+ if (isinstr(execname(), "nfsd"))
+ printf(" ext3_check_acl: return %d\n", $return);
+}
+
+probe begin { log("inode_permission probe") }
+probe end { log("inode_permission probe") }