diff options
Diffstat (limited to 'top-nfscalls.stp')
-rwxr-xr-x | top-nfscalls.stp | 19 |
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) +} + |