Commit 4ba67c1d authored by Thomas Gleixner's avatar Thomas Gleixner

perfcounter tools: get the syscall number from arch/*/include/asm/unistd.h

Avoid further confusion during development
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 7bd5469c
...@@ -26,20 +26,14 @@ static inline unsigned long long rdclock(void) ...@@ -26,20 +26,14 @@ static inline unsigned long long rdclock(void)
#define __user #define __user
#define asmlinkage #define asmlinkage
#ifdef __x86_64__ #if defined(__x86_64__) || defined(__i386__)
#define __NR_perf_counter_open 298 #include "../../arch/x86/include/asm/unistd.h"
#define rmb() asm volatile("lfence" ::: "memory")
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
#endif
#ifdef __i386__
#define __NR_perf_counter_open 336
#define rmb() asm volatile("lfence" ::: "memory") #define rmb() asm volatile("lfence" ::: "memory")
#define cpu_relax() asm volatile("rep; nop" ::: "memory"); #define cpu_relax() asm volatile("rep; nop" ::: "memory");
#endif #endif
#ifdef __powerpc__ #ifdef __powerpc__
#define __NR_perf_counter_open 319 #include "../../arch/powerpc/include/asm/unistd.h"
#define rmb() asm volatile ("sync" ::: "memory") #define rmb() asm volatile ("sync" ::: "memory")
#define cpu_relax() asm volatile ("" ::: "memory"); #define cpu_relax() asm volatile ("" ::: "memory");
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment