summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2011-05-31 09:12:38 -0400
committerSteve Dickson <steved@redhat.com>2011-05-31 09:12:38 -0400
commit4f72df7bb132da0b340795ef6f0118ceb54ba6a4 (patch)
tree7fcde3161192a7104f7798b03339a0642ae1e25c
parent92443846be732826c5d953a57e904b90fe0a1985 (diff)
parent63dbaeb5c7ca01406701537a03d49a060f8c6b49 (diff)
downloadsystemtap-4f72df7bb132da0b340795ef6f0118ceb54ba6a4.tar.gz
systemtap-4f72df7bb132da0b340795ef6f0118ceb54ba6a4.tar.xz
systemtap-4f72df7bb132da0b340795ef6f0118ceb54ba6a4.zip
Merge branch 'master' of ssh://fedorapeople.org/~steved/systemtap
-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)
+}
+