diff options
author | Steve Dickson <steved@redhat.com> | 2009-04-02 13:19:32 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-04-02 13:19:32 -0400 |
commit | 235cb51e8781d9ec0ec3c45ffdf5bc7bf77c5fd2 (patch) | |
tree | 772c8fbc5c80e831e1633e7980fbb6fdb08c9bcd /lockd | |
parent | 2350cdc2065d991fd8722de4ae91f62914c75556 (diff) | |
download | systemtap-235cb51e8781d9ec0ec3c45ffdf5bc7bf77c5fd2.tar.gz systemtap-235cb51e8781d9ec0ec3c45ffdf5bc7bf77c5fd2.tar.xz systemtap-235cb51e8781d9ec0ec3c45ffdf5bc7bf77c5fd2.zip |
Updates to be a bit less verbose
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'lockd')
-rw-r--r-- | lockd/lockd_clnt.stp | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/lockd/lockd_clnt.stp b/lockd/lockd_clnt.stp index 0d74c76..0769650 100644 --- a/lockd/lockd_clnt.stp +++ b/lockd/lockd_clnt.stp @@ -55,6 +55,7 @@ function task_status:long(_task:long) CATCH_DEREF_FAULT(); %} +/* function rpcprocnum:long(_msg:long) %{ struct rpc_message *msg = (struct rpc_message *)(long) kread(&(THIS->_msg)); @@ -78,6 +79,7 @@ function rpcprocname:string(_msg:long) CATCH_DEREF_FAULT(); %} +*/ function nlmproc:string(proc:long) %{ char *procstr; @@ -140,21 +142,15 @@ function nmsproc:string(proc:long) snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", procstr); %} -/* -function nlm_host:string(_req:long) +function nlm_host:string(_host:long) %{ - char buf[MAXSTRINGLEN]; - - struct nlm_rqst *req = (struct nlm_rqst *)(long) kread(&(THIS->_req)); - struct nlm_host *host = (struct nlm_host *)(long) kread(&req); + struct nlm_host *host = (struct nlm_host *)(long) kread(&(THIS->_host)); char *h_name = kread(&(host->h_name)); - snprintf(THIS->__retvalue, MAXSTRINGLEN, "a_host %p %s", - host, h_name); + snprintf(THIS->__retvalue, MAXSTRINGLEN, "host %s", h_name); CATCH_DEREF_FAULT(); %} -*/ function nlm_res_status:long(_req:long) %{ struct nlm_rqst *req = (struct nlm_rqst *)(long) kread(&(THIS->_req)); @@ -192,7 +188,8 @@ function nlm_res_error:string(_req:long) CATCH_DEREF_FAULT(); %} -global nlm_req, msg, flags +global nlm_req, nms_proc +/* global msg, flags */ probe module("lockd").function("nlmclnt_call") { @@ -225,14 +222,18 @@ probe module("lockd").function("nlmclnt_async_call").return } probe module("lockd").function("nsm_mon_unmon") { + nms_proc = $proc; + /* printf("%s(%d): nsm_mon_unmon: %s\n", execname(), pid(), nmsproc($proc)); + */ } probe module("lockd").function("nsm_monitor").return { if ($return) { - printf("%s(%d): nsm_monitor: %d (%s)\n", - execname(), pid(), $return, errno_str($return)); + printf("%s(%d): nsm_monitor: %s: error %d (%s)\n", + execname(), pid(), nmsproc(nms_proc), + $return, errno_str($return)); } } probe module("lockd").function("nsm_mon_unmon").return @@ -249,6 +250,16 @@ probe module("lockd").function("nlmclnt_unlock_callback") execname(), pid(), task_error($task)); } } +probe module("lockd").function("nlm_rebind_host") +{ + printf("%s(%d): nlm_rebind_host: %s \n", + execname(), pid(), nlm_host($host)); +} +probe module("lockd").function("nlm_bind_host") +{ + printf("%s(%d): nlm_bind_host: %s \n", + execname(), pid(), nlm_host($host)); +} /* probe module("sunrpc").function("rpc_call_sync") { |