This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

a patch for procfs.c


Hi Martin,

It seems that you forgot to change buf_info & consumed_info in your last night's checkin. Here is a patch and I have checked it in for you. I tested on ppc64/i686.

- Guanglei

Index: runtime/transport/procfs.c
===================================================================
RCS file: /cvs/systemtap/src/runtime/transport/procfs.c,v
retrieving revision 1.22
diff -u -r1.22 procfs.c
--- runtime/transport/procfs.c	9 Nov 2006 17:57:40 -0000	1.22
+++ runtime/transport/procfs.c	10 Nov 2006 04:46:54 -0000
@@ -24,7 +24,7 @@
 _stp_proc_read (struct file *file, char __user *buf, size_t count, loff_t *ppos)
 {
 	int num;
-	struct buf_info out;
+	struct _stp_buf_info out;
 
 	int cpu = *(int *)(PDE(file->f_dentry->d_inode)->data);
 
@@ -52,7 +52,7 @@
 static ssize_t _stp_proc_write (struct file *file, const char __user *buf,
 				size_t count, loff_t *ppos)
 {
-	struct consumed_info info;
+	struct _stp_consumed_info info;
 	int cpu = *(int *)(PDE(file->f_dentry->d_inode)->data);
 	if (copy_from_user(&info, buf, count))
 		return -EFAULT;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]