diff options
author | Steve Dickson <steved@redhat.com> | 2011-05-31 08:44:30 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-05-31 08:44:30 -0400 |
commit | 63dbaeb5c7ca01406701537a03d49a060f8c6b49 (patch) | |
tree | 388a5d5f05104c1dbe9b2849e35f890a50552280 | |
parent | 4cd6073a071d76a17c15b91c3388272d4d1d76af (diff) | |
download | systemtap-63dbaeb5c7ca01406701537a03d49a060f8c6b49.tar.gz systemtap-63dbaeb5c7ca01406701537a03d49a060f8c6b49.tar.xz systemtap-63dbaeb5c7ca01406701537a03d49a060f8c6b49.zip |
Added top-xprtcalls.stp
Signed-off-by: Steve Dickson <steved@redhat.com>
-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) +} + |