diff options
-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) +} + |