diff options
author | Steve Dickson <steved@redhat.com> | 2008-10-23 13:20:17 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-10-23 13:20:17 -0400 |
commit | 0c9cf2ad9774790ba2856e82d66af2be370e3271 (patch) | |
tree | 1942f56d40034f587fb209814e44b3820d855a8e /tracemarks | |
parent | 0a28dada02f341c3a5fdceb259f6afd0c4722a1f (diff) | |
download | systemtap-0c9cf2ad9774790ba2856e82d66af2be370e3271.tar.gz systemtap-0c9cf2ad9774790ba2856e82d66af2be370e3271.tar.xz systemtap-0c9cf2ad9774790ba2856e82d66af2be370e3271.zip |
Added linux-2.6-lttng-nfs-tracemarks.patch kernel patch
Diffstat (limited to 'tracemarks')
-rw-r--r-- | tracemarks/kernel-patches/linux-2.6-lttng-nfs-tracemarks.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tracemarks/kernel-patches/linux-2.6-lttng-nfs-tracemarks.patch b/tracemarks/kernel-patches/linux-2.6-lttng-nfs-tracemarks.patch new file mode 100644 index 0000000..f2df707 --- /dev/null +++ b/tracemarks/kernel-patches/linux-2.6-lttng-nfs-tracemarks.patch @@ -0,0 +1,51 @@ +diff -up linux-2.6-lttng/fs/nfs/dir.c.orig linux-2.6-lttng/fs/nfs/dir.c +--- linux-2.6-lttng/fs/nfs/dir.c.orig 2008-10-07 13:18:58.943505000 -0400 ++++ linux-2.6-lttng/fs/nfs/dir.c 2008-10-23 11:36:58.853124000 -0400 +@@ -34,6 +34,7 @@ + #include <linux/namei.h> + #include <linux/mount.h> + #include <linux/sched.h> ++#include <linux/marker.h> + + #include "nfs4_fs.h" + #include "delegation.h" +@@ -773,6 +774,7 @@ static int nfs_lookup_revalidate(struct + struct nfs_fh fhandle; + struct nfs_fattr fattr; + ++ trace_mark(nfs_lookup_revalidate_entry, "%p %p", dentry, nd); + parent = dget_parent(dentry); + dir = parent->d_inode; + nfs_inc_stats(dir, NFSIOS_DENTRYREVALIDATE); +@@ -815,6 +817,7 @@ static int nfs_lookup_revalidate(struct + dfprintk(LOOKUPCACHE, "NFS: %s(%s/%s) is valid\n", + __func__, dentry->d_parent->d_name.name, + dentry->d_name.name); ++ trace_mark(nfs_lookup_revalidate_exit, "%d", 1); + return 1; + out_zap_parent: + nfs_zap_caches(dir); +@@ -833,6 +836,7 @@ out_zap_parent: + dfprintk(LOOKUPCACHE, "NFS: %s(%s/%s) is invalid\n", + __func__, dentry->d_parent->d_name.name, + dentry->d_name.name); ++ trace_mark(nfs_lookup_revalidate_exit, "%d", 0); + return 0; + } + +@@ -902,6 +906,7 @@ static struct dentry *nfs_lookup(struct + struct nfs_fh fhandle; + struct nfs_fattr fattr; + ++ trace_mark(nfs_lookup_entry, "%p %p %p", dentry, dentry->d_parent, dir); + dfprintk(VFS, "NFS: lookup(%s/%s)\n", + dentry->d_parent->d_name.name, dentry->d_name.name); + nfs_inc_stats(dir, NFSIOS_VFSLOOKUP); +@@ -949,6 +954,7 @@ no_entry: + out_unblock_sillyrename: + nfs_unblock_sillyrename(parent); + out: ++ trace_mark(nfs_lookup_exit, "result 0x%p", res); + return res; + } + |