lkml.org 
[lkml]   [2002]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fixes for oprofile on ppc64

Hi,

Here are a few fixes I needed when porting oprofile to ppc64:

- __PAGE_OFFSET isnt defined for all architectures, use PAGE_OFFSET
instead
- include linux/cache.h everywhere we use ____cacheline_aligned etc.
Otherwise we end up with a structure called ____cacheline_aligned
and no alignment :(

Anton


===== drivers/oprofile/buffer_sync.c 1.4 vs edited =====
--- 1.4/drivers/oprofile/buffer_sync.c Tue Nov 5 08:01:22 2002
+++ edited/drivers/oprofile/buffer_sync.c Fri Nov 29 14:31:07 2002
@@ -245,7 +245,7 @@

static inline int is_kernel(unsigned long val)
{
- return val > __PAGE_OFFSET;
+ return val > PAGE_OFFSET;
}


===== drivers/oprofile/cpu_buffer.c 1.2 vs edited =====
--- 1.2/drivers/oprofile/cpu_buffer.c Wed Nov 27 06:38:46 2002
+++ edited/drivers/oprofile/cpu_buffer.c Fri Nov 29 14:30:18 2002
@@ -21,6 +21,7 @@
#include <linux/vmalloc.h>
#include <linux/smp.h>
#include <linux/errno.h>
+#include <linux/cache.h>

#include "cpu_buffer.h"
#include "oprof.h"
===== drivers/oprofile/cpu_buffer.h 1.1 vs edited =====
--- 1.1/drivers/oprofile/cpu_buffer.h Wed Oct 16 07:45:51 2002
+++ edited/drivers/oprofile/cpu_buffer.h Mon Dec 2 12:25:16 2002
@@ -12,6 +12,7 @@

#include <linux/types.h>
#include <linux/spinlock.h>
+#include <linux/cache.h>

struct task_struct;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.022 / U:0.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site