diff options
author | Steve Dickson <steved@redhat.com> | 2009-11-04 14:30:04 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-11-04 14:30:04 -0500 |
commit | 6e6288680658609527f52a876ff40587a2b21b3f (patch) | |
tree | 656c2c4c88f0a1b9972ebd62c542223e90af82c3 /tapset/nfs4_callback.stp | |
parent | e1c9b2542a4a7e72c7f3a876db09986d43f8c252 (diff) | |
download | systemtap-6e6288680658609527f52a876ff40587a2b21b3f.tar.gz systemtap-6e6288680658609527f52a876ff40587a2b21b3f.tar.xz systemtap-6e6288680658609527f52a876ff40587a2b21b3f.zip |
Added more callback and mounting routines
Diffstat (limited to 'tapset/nfs4_callback.stp')
-rw-r--r-- | tapset/nfs4_callback.stp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tapset/nfs4_callback.stp b/tapset/nfs4_callback.stp index 351f0f2..7330beb 100644 --- a/tapset/nfs4_callback.stp +++ b/tapset/nfs4_callback.stp @@ -2,6 +2,7 @@ #include <linux/socket.h> #include <net/sock.h> #include <net/inet_sock.h> +#include <linux/skbuff.h> #include <linux/sunrpc/svc.h> @@ -33,3 +34,17 @@ function nfs4_callback:string(_stp:long) CATCH_DEREF_FAULT(); %} +function nfs4_callback_addr:string(_clp:long) +%{ + struct nfs4_client *clp = (struct nfs4_client *) + (long)kread(&(THIS->_clp)); + + char buf[MAXSTRINGLEN]; + int cc=0; + + snprintf(THIS->__retvalue, MAXSTRINGLEN, + NIPQUAD_FMT, NIPQUAD(clp->cl_addr)); + + CATCH_DEREF_FAULT(); + +%} |