summaryrefslogtreecommitdiffstats
path: root/top-fusecalls.stp
diff options
context:
space:
mode:
Diffstat (limited to 'top-fusecalls.stp')
-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)
+}
+