diff options
| author | Steve Dickson <steved@redhat.com> | 2012-01-23 14:36:28 -0500 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2012-01-23 14:36:28 -0500 |
| commit | 1be52c0b9f8ade90aaa5d955ae655d5d9d8d8461 (patch) | |
| tree | ae2e00382c407fb34d3ebc68985f1a7d2d45b540 /sunrpc | |
| parent | 8dc5f487ec8f810704bdc70191d7b4e71f5f6174 (diff) | |
| download | systemtap-1be52c0b9f8ade90aaa5d955ae655d5d9d8d8461.tar.gz systemtap-1be52c0b9f8ade90aaa5d955ae655d5d9d8d8461.tar.xz systemtap-1be52c0b9f8ade90aaa5d955ae655d5d9d8d8461.zip | |
Added in new sunrpc sched trace points.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'sunrpc')
| -rw-r--r-- | sunrpc/sunrpc.stp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sunrpc/sunrpc.stp b/sunrpc/sunrpc.stp index 689577c..d94076f 100644 --- a/sunrpc/sunrpc.stp +++ b/sunrpc/sunrpc.stp @@ -1,43 +1,3 @@ -%{ -#include <linux/sunrpc/sched.h> -#include <linux/sunrpc/clnt.h> -%} -function rpcprocnum:long(_msg:long) -%{ - struct rpc_message *msg = (struct rpc_message *)(long) kread(&(THIS->_msg)); - struct rpc_procinfo *rpc_proc = - (struct rpc_procinfo *)(long) kread(&(msg->rpc_proc)); - - THIS->__retvalue = rpc_proc->p_proc; - - CATCH_DEREF_FAULT(); -%} -function rpcprocname:string(_msg:long) -%{ - struct rpc_message *msg = (struct rpc_message *)(long) kread(&(THIS->_msg)); - struct rpc_procinfo *rpc_proc = - (struct rpc_procinfo *)(long) kread(&(msg->rpc_proc)); - char *p_name = kread(&(rpc_proc->p_name)); - char buf[MAXSTRINGLEN]; - - snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s(%d)", - p_name ? p_name : "NULL" , rpc_proc->p_proc); - - CATCH_DEREF_FAULT(); -%} -function rpcprogname:string(_clnt:long) -%{ - struct rpc_clnt *clnt = (struct rpc_clnt *)(long) kread(&(THIS->_clnt)); - char *cl_server = kread(&(clnt->cl_server)); - char *cl_protname = kread(&(clnt->cl_protname)); - char buf[MAXSTRINGLEN]; - - snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s:%s", - cl_server ? cl_server : "NULL" , - cl_protname ? cl_protname : "NULL" ); - - CATCH_DEREF_FAULT(); -%} global syn_clnt, syn_msg, syn_flags global asyn_clnt, asyn_msg, asyn_flags global show_all |
