rpms/kernel/devel linux-2.6.3-printopen.patch,1.4,1.5

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Mar 22 05:38:30 UTC 2005


Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv9763

Modified Files:
	linux-2.6.3-printopen.patch 
Log Message:
print culprit.


linux-2.6.3-printopen.patch:
 linux-2.6.11/fs/exec.c               |   10 ++++++++++
 linux-2.6.11/include/linux/jiffies.h |    2 +-
 linux-2.6.3/fs/open.c                |   18 ++++++++++++------
 linux/fs/namei.c                     |    9 +++++++++
 linux/fs/open.c                      |    7 +++++++
 5 files changed, 39 insertions(+), 7 deletions(-)

Index: linux-2.6.3-printopen.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/linux-2.6.3-printopen.patch,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- linux-2.6.3-printopen.patch	22 Mar 2005 05:31:30 -0000	1.4
+++ linux-2.6.3-printopen.patch	22 Mar 2005 05:38:27 -0000	1.5
@@ -86,9 +86,9 @@
 +				p = d_path(f->f_dentry, f->f_vfsmnt,
 +				                                buf, 1023);
 +				if (jiffies < 180 * HZ)
-+					printk(KERN_ERR "[%2d.%02d] [+%2d.%02d] %s\n", jiffies / HZ, jiffies % HZ,
++					printk(KERN_ERR "[%2d.%02d] [+%2d.%02d] %s open()'d %s\n", jiffies / HZ, jiffies % HZ,
 +					(jiffies-prev_jiffies)/HZ, (jiffies-prev_jiffies) % HZ,
-+					p);
++					current->comm, p);
 +				prev_jiffies = jiffies;
 +			}
  		}
@@ -106,7 +106,7 @@
 +		char *p;
 +		p = d_path(file->f_dentry, file->f_vfsmnt, buf, 1023);
 +		if (jiffies < 180 * HZ)
-+			printk(KERN_ERR "(%2d.%02d) [+%2d.%02d] %s\n", jiffies / HZ, jiffies+(jiffies-prev_jiffies)/HZ, (jiffies-prev_jiffies) % HZ, p);
++			printk(KERN_ERR "(%2d.%02d) [+%2d.%02d] %s exec'd %s\n", jiffies / HZ, jiffies+(jiffies-prev_jiffies)/HZ, (jiffies-prev_jiffies) % HZ, current->comm, p);
 +		prev_jiffies = jiffies;
 +	}
 +




More information about the fedora-cvs-commits mailing list