summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2008-05-27 16:21:10 -0400
committerSteve Dickson <steved@redhat.com>2008-05-27 16:21:10 -0400
commitf247e9e3d6c230a77c3ede1894ef65cb0cda180e (patch)
tree603596c123f49ff66173d73308f9505988d104e5 /tapset
parentc1219627e96c121a5a7f69a19c44c5fc98c8ab77 (diff)
downloadsystemtap-f247e9e3d6c230a77c3ede1894ef65cb0cda180e.tar.gz
systemtap-f247e9e3d6c230a77c3ede1894ef65cb0cda180e.tar.xz
systemtap-f247e9e3d6c230a77c3ede1894ef65cb0cda180e.zip
Added nfs_client.stp
Diffstat (limited to 'tapset')
-rw-r--r--tapset/nfs_client.stp27
1 files changed, 27 insertions, 0 deletions
diff --git a/tapset/nfs_client.stp b/tapset/nfs_client.stp
new file mode 100644
index 0000000..5f3fb73
--- /dev/null
+++ b/tapset/nfs_client.stp
@@ -0,0 +1,27 @@
+
+%{
+#include <linux/slab.h>
+#include <linux/string.h>
+#include <linux/dcache.h>
+#include <linux/sunrpc/sched.h>
+#include <linux/sunrpc/clnt.h>
+#include <linux/nfs_fs.h>
+#include <linux/nfs_mount.h>
+%}
+
+
+function nfs_client:string(_clp:long)
+%{
+ struct nfs_client *clp = (struct nfs_client *)(long) kread(&(THIS->_clp));
+ char buf[MAXSTRINGLEN], *str, octet[10];
+ int cc=0, i, j;
+
+ unsigned short ofs, len;
+
+ sprintf(buf+cc, "clp: %p: fscache %p ", clp, clp->fscache);
+ cc = strlen(buf);
+
+ snprintf(THIS->__retvalue, MAXSTRINGLEN, "%s", buf);
+
+ CATCH_DEREF_FAULT();
+%}