diff options
author | Steve Dickson <steved@redhat.com> | 2008-01-29 15:02:30 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-01-29 15:02:30 -0500 |
commit | a0630d519e87f5c5d851d3127085a50592bb20b4 (patch) | |
tree | 589aff766c2131f715b595de40ed19b57719b0cb /top-nfscalls.stp | |
download | systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.tar.gz systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.tar.xz systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.zip |
Initial Commit
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) +} + |