This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
a patch for procfs.c
- From: Li Guanglei <guanglei at cn dot ibm dot com>
- To: "systemtap at sourceware dot org" <systemtap at sourceware dot org>
- Cc: Martin Hunt <hunt at redhat dot com>
- Date: Fri, 10 Nov 2006 13:04:56 +0800
- Subject: a patch for procfs.c
- Organization: IBM CSTL
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;