diff options
| author | Steve Dickson <steved@redhat.com> | 2014-03-12 11:17:23 -0400 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2014-03-12 11:17:23 -0400 |
| commit | cd92912e1fb05263364350d2b036884b3ed5e305 (patch) | |
| tree | aa60a490d650b66356ac2c282c0768650aa2e1ce /tapset | |
| parent | 3a479417ede79fdb1b96d2050d07549a58d10887 (diff) | |
| download | systemtap-cd92912e1fb05263364350d2b036884b3ed5e305.tar.gz systemtap-cd92912e1fb05263364350d2b036884b3ed5e305.tar.xz systemtap-cd92912e1fb05263364350d2b036884b3ed5e305.zip | |
Added top-nfsxdrcalls.stp and nfsd/nfsd_permission.stp
Signed-off-by: steved <steved@redhat.com>
Diffstat (limited to 'tapset')
| -rw-r--r-- | tapset/inode.stp | 10 | ||||
| -rw-r--r-- | tapset/nfs4_callback.stp | 2 | ||||
| -rw-r--r-- | tapset/nfs4ops.stp | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/tapset/inode.stp b/tapset/inode.stp index 56340d0..39c34b6 100644 --- a/tapset/inode.stp +++ b/tapset/inode.stp @@ -12,6 +12,14 @@ function inode_uid:string(_ino:long) CATCH_DEREF_FAULT(); %} +function inode_mode:long(_ino:long) +%{ + struct inode *inode = (struct inode *)(long) kread(&(THIS->_ino)); + + THIS->__retvalue = inode->i_mode; + + CATCH_DEREF_FAULT(); +%} function file_modes:string(_m:long) %{ @@ -44,7 +52,7 @@ function file_modes:string(_m:long) cc = strlen(buf); } if (cc) - snprintf(THIS->__retvalue, MAXSTRINGLEN, "mode 0%o (%s)", _mod, buf); + snprintf(THIS->__retvalue, MAXSTRINGLEN, "0%o (%s)", _mod, buf); else snprintf(THIS->__retvalue, MAXSTRINGLEN, "mode 0%o", _mod); diff --git a/tapset/nfs4_callback.stp b/tapset/nfs4_callback.stp index c6492b7..05c756c 100644 --- a/tapset/nfs4_callback.stp +++ b/tapset/nfs4_callback.stp @@ -8,7 +8,7 @@ #include <linux/nfs4.h> #include <linux/nfsd/nfsfh.h> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33) +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,33) #include <linux/nfsd/state.h> #include <linux/nfsd/xdr4.h> #endif diff --git a/tapset/nfs4ops.stp b/tapset/nfs4ops.stp index c09be6a..22e7a71 100644 --- a/tapset/nfs4ops.stp +++ b/tapset/nfs4ops.stp @@ -10,7 +10,7 @@ #include <linux/nfsd/nfsfh.h> #include <linux/nfsd/export.h> #include <linux/nfsd/nfsd.h> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33) +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,33) #include <linux/nfsd/state.h> #include <linux/nfsd/xdr4.h> #endif |
