diff options
author | Steve Dickson <steved@redhat.com> | 2009-06-13 06:21:26 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-06-13 06:21:26 -0400 |
commit | 82467982439f83074e8810bd13ce5a2a83f1e7bc (patch) | |
tree | 5de8e4526afa0f5b87e86998f40e1d2e253b2475 /lockd | |
parent | e1c9b2542a4a7e72c7f3a876db09986d43f8c252 (diff) | |
download | systemtap-82467982439f83074e8810bd13ce5a2a83f1e7bc.tar.gz systemtap-82467982439f83074e8810bd13ce5a2a83f1e7bc.tar.xz systemtap-82467982439f83074e8810bd13ce5a2a83f1e7bc.zip |
Moved task_staus into tapset/task.stp
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'lockd')
-rw-r--r-- | lockd/lockd_clnt.stp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lockd/lockd_clnt.stp b/lockd/lockd_clnt.stp index 0769650..6a6537f 100644 --- a/lockd/lockd_clnt.stp +++ b/lockd/lockd_clnt.stp @@ -1,3 +1,7 @@ +/* + * stap -g -I../tapset lockd_clnt.stp + */ + %{ #include <linux/sunrpc/svc.h> #include <linux/sunrpc/sched.h> @@ -17,7 +21,7 @@ enum { }; %} -function task_error:string(_task:long) +function task_nlm_error:string(_task:long) %{ struct rpc_task *task = (struct rpc_task *)(long) kread(&(THIS->_task)); char *errstr; @@ -47,14 +51,6 @@ function task_error:string(_task:long) CATCH_DEREF_FAULT(); %} -function task_status:long(_task:long) -%{ - struct rpc_task *task = (struct rpc_task *)(long) kread(&(THIS->_task)); - - THIS->__retvalue = task->tk_status; - - CATCH_DEREF_FAULT(); -%} /* function rpcprocnum:long(_msg:long) %{ @@ -247,7 +243,7 @@ probe module("lockd").function("nlmclnt_unlock_callback") { if (task_status($task)) { printf("%s(%d): nlmclnt_unlock_callback: ERROR: %s \n", - execname(), pid(), task_error($task)); + execname(), pid(), task_nlm_error($task)); } } probe module("lockd").function("nlm_rebind_host") |