diff options
| author | Steve Dickson <steved@redhat.com> | 2009-03-17 12:05:46 -0400 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2009-03-17 12:05:46 -0400 |
| commit | 7bfca93c96e39cbe2c0025e156fcbeca38133ad0 (patch) | |
| tree | f64ecfa25439bbcecfb1483337b627be1619de8a /sunrpc | |
| parent | 95f632ea0879c8841e93f3d4a15046af092cf2b4 (diff) | |
| download | systemtap-7bfca93c96e39cbe2c0025e156fcbeca38133ad0.tar.gz systemtap-7bfca93c96e39cbe2c0025e156fcbeca38133ad0.tar.xz systemtap-7bfca93c96e39cbe2c0025e156fcbeca38133ad0.zip | |
Added sunrpc/sunrpc-svc.stp
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'sunrpc')
| -rw-r--r-- | sunrpc/sunrpc-svc.stp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sunrpc/sunrpc-svc.stp b/sunrpc/sunrpc-svc.stp new file mode 100644 index 0000000..5de6059 --- /dev/null +++ b/sunrpc/sunrpc-svc.stp @@ -0,0 +1,24 @@ +global rq_prog, rq_vers, rq_proc, rq_prot, sv_name + +probe module("sunrpc").function("svc_process") +{ + rq_prot = $rqstp->rq_prot + rq_proc = $rqstp->rq_proc + rq_vers = $rqstp->rq_vers + rq_prog = $rqstp->rq_prog + sv_name = kernel_string($rqstp->rq_server->sv_name) +} +probe module("sunrpc").function("svc_process").return +{ + if ($return == 0) { + printf("%s(%d): svc_process: return %d (%s)\n", + execname(), pid(), $return, errno_str($return)); + } else if ($return != 0) { + printf("%s(%d): svc_process:%s:%d,%d:%d:%d: bytes %d\n", + execname(), pid(), sv_name, rq_proc,rq_vers, + rq_prot,rq_prog, $return); + } +} +probe begin { log("starting sunrpc-svc probe") } +probe end { log("ending sunrpc-svc probe") } + |
