diff options
author | Steve Dickson <steved@redhat.com> | 2011-05-31 09:12:38 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-05-31 09:12:38 -0400 |
commit | 4f72df7bb132da0b340795ef6f0118ceb54ba6a4 (patch) | |
tree | 7fcde3161192a7104f7798b03339a0642ae1e25c | |
parent | 92443846be732826c5d953a57e904b90fe0a1985 (diff) | |
parent | 63dbaeb5c7ca01406701537a03d49a060f8c6b49 (diff) | |
download | systemtap-4f72df7bb132da0b340795ef6f0118ceb54ba6a4.tar.gz systemtap-4f72df7bb132da0b340795ef6f0118ceb54ba6a4.tar.xz systemtap-4f72df7bb132da0b340795ef6f0118ceb54ba6a4.zip |
Merge branch 'master' of ssh://fedorapeople.org/~steved/systemtap
-rwxr-xr-x | top-xprtcalls.stp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/top-xprtcalls.stp b/top-xprtcalls.stp new file mode 100755 index 0000000..ab9edbb --- /dev/null +++ b/top-xprtcalls.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/xprt*.c") ? +{ + rpccalls[probefunc()]++ +} + +probe end { + printf("Collating data...\n"); + foreach (name in rpccalls- limit 40) + printf("%10d %s\n", rpccalls[name], name) +} + |