summaryrefslogtreecommitdiffstats
path: root/sunrpc
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-04-02 13:50:49 -0400
committerSteve Dickson <steved@redhat.com>2009-04-02 13:50:49 -0400
commitc83b9b06f632fc03b23410778bce72851c549287 (patch)
tree3c2ea3b375cbaaf08aec479c78e4879317866a40 /sunrpc
parent235cb51e8781d9ec0ec3c45ffdf5bc7bf77c5fd2 (diff)
downloadsystemtap-c83b9b06f632fc03b23410778bce72851c549287.tar.gz
systemtap-c83b9b06f632fc03b23410778bce72851c549287.tar.xz
systemtap-c83b9b06f632fc03b23410778bce72851c549287.zip
Fixed function cl_prog to print out the proc name
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/force_rebind.stp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sunrpc/force_rebind.stp b/sunrpc/force_rebind.stp
index 42f44ec..2520671 100644
--- a/sunrpc/force_rebind.stp
+++ b/sunrpc/force_rebind.stp
@@ -10,6 +10,7 @@ function cl_prog:string(_task:long)
struct rpc_clnt *clnt = (struct rpc_clnt *)(long) kread(&(task->tk_client));
struct rpc_procinfo *proc =
(struct rpc_procinfo *)(long) kread(&(clnt->cl_procinfo));
+ char *p_name = kread(&(proc->p_name));
static struct {
int prog;
char *string;
@@ -32,10 +33,10 @@ function cl_prog:string(_task:long)
}
if (i == tabsz)
snprintf(THIS->__retvalue, MAXSTRINGLEN, "0x%x[%d]:%s",
- clnt->cl_prog, clnt->cl_vers, proc->p_name);
+ clnt->cl_prog, clnt->cl_vers, p_name);
else
snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s[%d]:%s",
- prog_progtbl[i].string, clnt->cl_vers, proc->p_name);
+ prog_progtbl[i].string, clnt->cl_vers, p_name);
CATCH_DEREF_FAULT();
%}