Skip to content

Commit

Permalink
perfcounter tools: get the syscall number from arch/*/include/asm/uni…
Browse files Browse the repository at this point in the history
…std.h

Avoid further confusion during development

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed May 1, 2009
1 parent 7bd5469 commit 4ba67c1
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Documentation/perf_counter/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,14 @@ static inline unsigned long long rdclock(void)
#define __user
#define asmlinkage

#ifdef __x86_64__
#define __NR_perf_counter_open 298
#define rmb() asm volatile("lfence" ::: "memory")
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
#endif

#ifdef __i386__
#define __NR_perf_counter_open 336
#if defined(__x86_64__) || defined(__i386__)
#include "../../arch/x86/include/asm/unistd.h"
#define rmb() asm volatile("lfence" ::: "memory")
#define cpu_relax() asm volatile("rep; nop" ::: "memory");
#endif

#ifdef __powerpc__
#define __NR_perf_counter_open 319
#include "../../arch/powerpc/include/asm/unistd.h"
#define rmb() asm volatile ("sync" ::: "memory")
#define cpu_relax() asm volatile ("" ::: "memory");
#endif
Expand Down

0 comments on commit 4ba67c1

Please sign in to comment.