summaryrefslogtreecommitdiffstats
path: root/tapset/nfs_mnt_rq.stp
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-06-11 13:19:24 -0400
committerSteve Dickson <steved@redhat.com>2009-06-11 13:19:24 -0400
commite1c9b2542a4a7e72c7f3a876db09986d43f8c252 (patch)
treebb251bd4d7d9916fb8c1e968b44753bb0aa2ef39 /tapset/nfs_mnt_rq.stp
parentdfdce363041b4fb72910837174bf40019923c9bc (diff)
downloadsystemtap-e1c9b2542a4a7e72c7f3a876db09986d43f8c252.tar.gz
systemtap-e1c9b2542a4a7e72c7f3a876db09986d43f8c252.tar.xz
systemtap-e1c9b2542a4a7e72c7f3a876db09986d43f8c252.zip
Added nfs/nfs_mount.stp
Diffstat (limited to 'tapset/nfs_mnt_rq.stp')
-rw-r--r--tapset/nfs_mnt_rq.stp30
1 files changed, 30 insertions, 0 deletions
diff --git a/tapset/nfs_mnt_rq.stp b/tapset/nfs_mnt_rq.stp
new file mode 100644
index 0000000..4f638a8
--- /dev/null
+++ b/tapset/nfs_mnt_rq.stp
@@ -0,0 +1,30 @@
+%{
+#include <linux/socket.h>
+#include <net/sock.h>
+#include <net/inet_sock.h>
+#include <linux/nfs.h>
+
+struct nfs_mount_request {
+ struct sockaddr *sap;
+ size_t salen;
+ char *hostname;
+ char *dirpath;
+ u32 version;
+ unsigned short protocol;
+ struct nfs_fh *fh;
+ int noresvport;
+};
+
+%}
+function mnt_req:string(_req:long)
+%{
+ struct nfs_mount_request *req =
+ (struct nfs_mount_request *)(long) kread(&(THIS->_req));
+
+ snprintf(THIS->__retvalue, MAXSTRINGLEN,
+ "server: %s export: %s vers: %d proto: %d",
+ req->hostname, req->dirpath, req->version, req->protocol);
+
+ CATCH_DEREF_FAULT();
+%}
+