aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-05-01 12:48:06 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-05-01 12:50:29 -0400
commit4ba67c1d48aeedcc31630bb40b6179fc7d360f90 (patch)
tree56378771380380579e67229f457fcb6258c3f614 /Documentation
parent7bd5469cd938eec6a76b3135e6becd9b5e096e98 (diff)
perfcounter tools: get the syscall number from arch/*/include/asm/unistd.h
Avoid further confusion during development Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/perf_counter/perf.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/Documentation/perf_counter/perf.h b/Documentation/perf_counter/perf.h
index fb1423072286..6fa3656399f4 100644
--- a/Documentation/perf_counter/perf.h
+++ b/Documentation/perf_counter/perf.h
@@ -26,20 +26,14 @@ static inline unsigned long long rdclock(void)
26#define __user 26#define __user
27#define asmlinkage 27#define asmlinkage
28 28
29#ifdef __x86_64__ 29#if defined(__x86_64__) || defined(__i386__)
30#define __NR_perf_counter_open 298 30#include "../../arch/x86/include/asm/unistd.h"
31#define rmb() asm volatile("lfence" ::: "memory")
32#define cpu_relax() asm volatile("rep; nop" ::: "memory");
33#endif
34
35#ifdef __i386__
36#define __NR_perf_counter_open 336
37#define rmb() asm volatile("lfence" ::: "memory") 31#define rmb() asm volatile("lfence" ::: "memory")
38#define cpu_relax() asm volatile("rep; nop" ::: "memory"); 32#define cpu_relax() asm volatile("rep; nop" ::: "memory");
39#endif 33#endif
40 34
41#ifdef __powerpc__ 35#ifdef __powerpc__
42#define __NR_perf_counter_open 319 36#include "../../arch/powerpc/include/asm/unistd.h"
43#define rmb() asm volatile ("sync" ::: "memory") 37#define rmb() asm volatile ("sync" ::: "memory")
44#define cpu_relax() asm volatile ("" ::: "memory"); 38#define cpu_relax() asm volatile ("" ::: "memory");
45#endif 39#endif