summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2011-09-06 14:55:36 -0400
committerSteve Dickson <steved@redhat.com>2011-09-06 14:55:36 -0400
commitbc2b0fb722a32ff1fbadc40a9f73dc0eb75935e6 (patch)
tree1ffe477b109bf8662c6b81060379664f4e416743
parentc65778b45aec63b542fa3aa84a4da0b605e65790 (diff)
downloadsystemtap-bc2b0fb722a32ff1fbadc40a9f73dc0eb75935e6.tar.gz
systemtap-bc2b0fb722a32ff1fbadc40a9f73dc0eb75935e6.tar.xz
systemtap-bc2b0fb722a32ff1fbadc40a9f73dc0eb75935e6.zip
Added some new routines
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--nfs/nfs_lookup.stp24
-rw-r--r--nfs/nfs_readdir.stp11
-rw-r--r--nfs/nfs_xdr.stp39
-rw-r--r--sunrpc/xprt_copy.stp17
4 files changed, 91 insertions, 0 deletions
diff --git a/nfs/nfs_lookup.stp b/nfs/nfs_lookup.stp
new file mode 100644
index 0000000..04409ad
--- /dev/null
+++ b/nfs/nfs_lookup.stp
@@ -0,0 +1,24 @@
+/*
+probe module("nfs").function("nfs_lookup_revalidate").return
+{
+ if ($return != 0)
+ printf("nfs_lookup_revalidate: %s\n", errno_str($return));
+}
+*/
+probe module("nfs").function("nfs_proc_lookup").return
+{
+ printf("nfs_proc_lookup: %s\n", errno_str($return));
+}
+probe module("nfs").function("nfs_refresh_inode").return
+{
+ if ($return != 0)
+ printf("nfs_refresh_inode: %s\n", errno_str($return));
+}
+probe module("nfs").function("nfs_is_exclusive_create").return
+{
+ if ($return != 0)
+ printf("nfs_is_exclusive_create: %s\n", errno_str($return));
+}
+probe begin { log("starting probe") }
+probe end { log("ending probe") }
+
diff --git a/nfs/nfs_readdir.stp b/nfs/nfs_readdir.stp
new file mode 100644
index 0000000..4d083dd
--- /dev/null
+++ b/nfs/nfs_readdir.stp
@@ -0,0 +1,11 @@
+probe module("nfs").function("*@fs/nfs/dir.c")
+{
+ printf("%s\n", probefunc());
+}
+probe module("nfs").function("*@fs/nfs/dir.c").return
+{
+ printf("%s: return\n", probefunc());
+}
+probe begin { log("starting probe") }
+probe end { log("ending probe") }
+
diff --git a/nfs/nfs_xdr.stp b/nfs/nfs_xdr.stp
new file mode 100644
index 0000000..3da97a4
--- /dev/null
+++ b/nfs/nfs_xdr.stp
@@ -0,0 +1,39 @@
+probe module("nfs").function("decode_opaque_fixed").return
+{
+ if ($return)
+ printf("decode_opaque_fixed return: %d\n", $return);
+}
+probe module("nfs").function("_nfs4_proc_readdir").return
+{
+ if ($return < 0)
+ printf("_nfs4_proc_readdir return: %d\n", $return);
+}
+probe module("nfs").function("decode_attr_type").return
+{
+ if ($return < 0)
+ printf("decode_attr_type return: %d\n", $return);
+}
+probe module("nfs").function("decode_attr_change").return
+{
+ if ($return < 0)
+ printf("decode_attr_change return: %d\n", $return);
+}
+probe module("nfs").function("decode_attr_size").return
+{
+ if ($return < 0)
+ printf("decode_attr_size return: %d\n", $return);
+}
+/*
+probe module("nfs").statement("*@fs/nfs/nfs4xdr.c:6507")
+{
+ log("hellow")
+}
+probe module("nfs").function("decode_readdir").return
+{
+ if ($return)
+ printf("decode_readdir return: %d\n", $return);
+}
+*/
+probe begin { log("starting nfs_xdr probe") }
+probe end { log("ending nfs_xdr probe") }
+
diff --git a/sunrpc/xprt_copy.stp b/sunrpc/xprt_copy.stp
new file mode 100644
index 0000000..fbb5fff
--- /dev/null
+++ b/sunrpc/xprt_copy.stp
@@ -0,0 +1,17 @@
+global nbytes
+
+probe module("sunrpc").function("xdr_inline_decode")
+{
+ nbytes = $nbytes;
+}
+probe module("sunrpc").function("xdr_inline_decode").return
+{
+ printf("xdr_inline_decode: bytes %d return %p\n", nbytes, $return);
+}
+probe module("sunrpc").function("xdr_copy_to_scratch").return
+{
+ printf("xdr_copy_to_scratch: bytes %d return %p\n", nbytes, $return);
+}
+
+probe begin { log("starting probe") }
+probe end { log("ending probe") }