diff options
author | Steve Dickson <steved@redhat.com> | 2014-02-10 13:07:30 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-02-10 13:07:30 -0500 |
commit | 3a479417ede79fdb1b96d2050d07549a58d10887 (patch) | |
tree | 42ba72fa6e05940da3ffede11be3356355968b48 /top-nfsv4calls.stp | |
parent | 7d1e51313fd00e6146082190746e5988a0d28719 (diff) | |
download | systemtap-3a479417ede79fdb1b96d2050d07549a58d10887.tar.gz systemtap-3a479417ede79fdb1b96d2050d07549a58d10887.tar.xz systemtap-3a479417ede79fdb1b96d2050d07549a58d10887.zip |
Added some new more files...
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'top-nfsv4calls.stp')
-rwxr-xr-x | top-nfsv4calls.stp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/top-nfsv4calls.stp b/top-nfsv4calls.stp new file mode 100755 index 0000000..c9c7713 --- /dev/null +++ b/top-nfsv4calls.stp @@ -0,0 +1,20 @@ +#!/usr/bin/env stap + +global nfscalls + +probe begin { + printf("Collecting top NFSv4 procs...\n") +} + +probe kernel.function("*@fs/nfs/*.c") ?, + module("nfsv4").function("*@fs/nfs/*.c") ? +{ + nfscalls[probefunc()]++ +} + +probe end { + printf("Collating data...\n"); + foreach (name in nfscalls- limit 20) + printf("%10d %s\n", nfscalls[name], name) +} + |