diff options
author | Steve Dickson <steved@redhat.com> | 2010-05-24 03:32:37 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-05-24 03:32:37 -0400 |
commit | 7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1 (patch) | |
tree | 4f58804615b4154b1604f7e9d925088511360648 | |
parent | 7c2b531816eb514ae0f38e60500588f3c30f6eaf (diff) | |
download | systemtap-7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1.tar.gz systemtap-7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1.tar.xz systemtap-7c2fe2a9d4b9f3f91f3ec24e78bc5471ab2a78d1.zip |
Added top-fusecalls.stp
Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-x | top-fusecalls.stp | 20 |
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) +} + |