diff options
Diffstat (limited to 'top-nfsxdrcalls.stp')
-rwxr-xr-x | top-nfsxdrcalls.stp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/top-nfsxdrcalls.stp b/top-nfsxdrcalls.stp new file mode 100755 index 0000000..032e65f --- /dev/null +++ b/top-nfsxdrcalls.stp @@ -0,0 +1,19 @@ +#!/usr/bin/env stap + +global nfscalls + +probe begin { + printf("Collecting top NFS procs...\n") +} + +probe module("nfsv4").function("*@fs/nfs/nfs4xdr.c") +{ + nfscalls[probefunc()]++ +} + +probe end { + printf("Collating data...\n"); + foreach (name in nfscalls- limit 20) + printf("%10d %s\n", nfscalls[name], name) +} + |