summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-05-24 03:32:37 -0400
committerSteve Dickson <steved@redhat.com>2010-05-24 03:32:37 -0400
commit7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1 (patch)
tree4f58804615b4154b1604f7e9d925088511360648
parent7c2b531816eb514ae0f38e60500588f3c30f6eaf (diff)
downloadsystemtap-7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1.tar.gz
systemtap-7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1.tar.xz
systemtap-7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1.zip
Added top-fusecalls.stp
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-xtop-fusecalls.stp20
1 files changed, 20 insertions, 0 deletions
diff --git a/top-fusecalls.stp b/top-fusecalls.stp
new file mode 100755
index 0000000..b478e71
--- /dev/null
+++ b/top-fusecalls.stp
@@ -0,0 +1,20 @@
+#!/usr/bin/env stap
+
+global fusecalls
+
+probe begin {
+ printf("Collecting top FUSE procs...\n")
+}
+
+probe kernel.function("*@fs/fuse/*.c") ?,
+ module("nfsd").function("*@fs/fuse/*.c*") ?
+{
+ fusecalls[probefunc()]++
+}
+
+probe end {
+ printf("Collating data...\n");
+ foreach (name in fusecalls- limit 200)
+ printf("%10d %s\n", fusecalls[name], name)
+}
+