summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2011-05-31 08:44:30 -0400
committerSteve Dickson <steved@redhat.com>2011-05-31 08:44:30 -0400
commit63dbaeb5c7ca01406701537a03d49a060f8c6b49 (patch)
tree388a5d5f05104c1dbe9b2849e35f890a50552280
parent4cd6073a071d76a17c15b91c3388272d4d1d76af (diff)
downloadsystemtap-63dbaeb5c7ca01406701537a03d49a060f8c6b49.tar.gz
systemtap-63dbaeb5c7ca01406701537a03d49a060f8c6b49.tar.xz
systemtap-63dbaeb5c7ca01406701537a03d49a060f8c6b49.zip
Added top-xprtcalls.stp
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-xtop-xprtcalls.stp20
1 files changed, 20 insertions, 0 deletions
diff --git a/top-xprtcalls.stp b/top-xprtcalls.stp
new file mode 100755
index 0000000..ab9edbb
--- /dev/null
+++ b/top-xprtcalls.stp
@@ -0,0 +1,20 @@
+#!/usr/bin/env stap
+
+global rpccalls
+
+probe begin {
+ printf("Collecting data...\n")
+}
+
+probe kernel.function("*@net/sunrpc") ?,
+ module("sunrpc").function("*@net/sunrpc/xprt*.c") ?
+{
+ rpccalls[probefunc()]++
+}
+
+probe end {
+ printf("Collating data...\n");
+ foreach (name in rpccalls- limit 40)
+ printf("%10d %s\n", rpccalls[name], name)
+}
+