summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-11-04 14:30:04 -0500
committerSteve Dickson <steved@redhat.com>2009-11-04 14:30:04 -0500
commit6e6288680658609527f52a876ff40587a2b21b3f (patch)
tree656c2c4c88f0a1b9972ebd62c542223e90af82c3 /tapset
parente1c9b2542a4a7e72c7f3a876db09986d43f8c252 (diff)
downloadsystemtap-6e6288680658609527f52a876ff40587a2b21b3f.tar.gz
systemtap-6e6288680658609527f52a876ff40587a2b21b3f.tar.xz
systemtap-6e6288680658609527f52a876ff40587a2b21b3f.zip
Added more callback and mounting routines
Diffstat (limited to 'tapset')
-rw-r--r--tapset/nfs4_callback.stp15
-rw-r--r--tapset/nfsmntflags.stp1
2 files changed, 15 insertions, 1 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();
+
+%}
diff --git a/tapset/nfsmntflags.stp b/tapset/nfsmntflags.stp
index 98f4bb5..62519c1 100644
--- a/tapset/nfsmntflags.stp
+++ b/tapset/nfsmntflags.stp
@@ -24,7 +24,6 @@ function nfs_mntflags:string(rawdata)
{ NFS_MOUNT_NOACL, ",noacl", "" },
{ NFS_MOUNT_NORDIRPLUS, ",nordirplus", "" },
{ NFS_MOUNT_UNSHARED, ",nosharecache", "" },
- { NFS_MOUNT_FSCACHE, ",fsc", "" },
{ 0, "", "" }
};
struct nfs_mount_data *data = (struct nfs_mount_data *)(long) THIS->rawdata;