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-rpccalls.stp | |
download | systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.tar.gz systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.tar.xz systemtap-a0630d519e87f5c5d851d3127085a50592bb20b4.zip |
Initial Commit
Diffstat (limited to 'top-rpccalls.stp')
-rwxr-xr-x | top-rpccalls.stp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/top-rpccalls.stp b/top-rpccalls.stp new file mode 100755 index 0000000..06de8e5 --- /dev/null +++ b/top-rpccalls.stp @@ -0,0 +1,20 @@ +#!/usr/bin/env stap + +global rpccalls + +probe begin { + printf("Collecting data...\n") +} + +probe kernel.function("*@net/sunrpc") ?, + module("sunrpc").function("*@net/sunrpc/*") ? +{ + rpccalls[probefunc()]++ +} + +probe end { + printf("prob end:\n") + foreach (name in rpccalls- limit 40) + printf("%10d %s\n", rpccalls[name], name) +} + |