summaryrefslogtreecommitdiffstats
path: root/top-nfscalls.stp
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2008-01-29 15:02:30 -0500
committerSteve Dickson <steved@redhat.com>2008-01-29 15:02:30 -0500
commita0630d519e87f5c5d851d3127085a50592bb20b4 (patch)
tree589aff766c2131f715b595de40ed19b57719b0cb /top-nfscalls.stp
downloadsystemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.tar.gz
systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.tar.xz
systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.zip
Initial Commit
Diffstat (limited to 'top-nfscalls.stp')
-rwxr-xr-xtop-nfscalls.stp19
1 files changed, 19 insertions, 0 deletions
diff --git a/top-nfscalls.stp b/top-nfscalls.stp
new file mode 100755
index 0000000..f3a36e3
--- /dev/null
+++ b/top-nfscalls.stp
@@ -0,0 +1,19 @@
+#!/usr/bin/env stap
+
+global nfscalls
+
+probe begin {
+ printf("Collecting data...\n")
+}
+
+probe kernel.function("*@fs/nfs") ?,
+ module("nfs").function("*@fs/nfs/*") ?
+{
+ nfscalls[probefunc()]++
+}
+
+probe end {
+ foreach (name in nfscalls- limit 20)
+ printf("%10d %s\n", nfscalls[name], name)
+}
+