From 479560f0a672eacc2454101061bf7d0edd1c88a8 Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Wed, 14 Mar 2012 12:42:34 -0300 Subject: [PATCH] --- yaml --- r: 288516 b: refs/heads/master c: eae7a755ee81129370c8f555b0d5672e6673735d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/Makefile | 2 ++ trunk/tools/perf/perf.h | 6 ++++++ trunk/tools/perf/util/include/asm/unistd_32.h | 1 + trunk/tools/perf/util/include/asm/unistd_64.h | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 trunk/tools/perf/util/include/asm/unistd_32.h create mode 100644 trunk/tools/perf/util/include/asm/unistd_64.h diff --git a/[refs] b/[refs] index e9f52748fda0..03a0e2678697 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e7f01d1e3d8d501deb8abeaa269d5d48a703b8b0 +refs/heads/master: eae7a755ee81129370c8f555b0d5672e6673735d diff --git a/trunk/tools/perf/Makefile b/trunk/tools/perf/Makefile index 7c12650165ae..8a4b9bccf8b2 100644 --- a/trunk/tools/perf/Makefile +++ b/trunk/tools/perf/Makefile @@ -249,6 +249,8 @@ LIB_H += util/include/asm/uaccess.h LIB_H += util/include/dwarf-regs.h LIB_H += util/include/asm/dwarf2.h LIB_H += util/include/asm/cpufeature.h +LIB_H += util/include/asm/unistd_32.h +LIB_H += util/include/asm/unistd_64.h LIB_H += perf.h LIB_H += util/annotate.h LIB_H += util/cache.h diff --git a/trunk/tools/perf/perf.h b/trunk/tools/perf/perf.h index 16e7d20eee83..3afa39ac1d40 100644 --- a/trunk/tools/perf/perf.h +++ b/trunk/tools/perf/perf.h @@ -10,6 +10,9 @@ void get_term_dimensions(struct winsize *ws); #define rmb() asm volatile("lock; addl $0,0(%%esp)" ::: "memory") #define cpu_relax() asm volatile("rep; nop" ::: "memory"); #define CPUINFO_PROC "model name" +#ifndef __NR_perf_event_open +# define __NR_perf_event_open 336 +#endif #endif #if defined(__x86_64__) @@ -17,6 +20,9 @@ void get_term_dimensions(struct winsize *ws); #define rmb() asm volatile("lfence" ::: "memory") #define cpu_relax() asm volatile("rep; nop" ::: "memory"); #define CPUINFO_PROC "model name" +#ifndef __NR_perf_event_open +# define __NR_perf_event_open 298 +#endif #endif #ifdef __powerpc__ diff --git a/trunk/tools/perf/util/include/asm/unistd_32.h b/trunk/tools/perf/util/include/asm/unistd_32.h new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/trunk/tools/perf/util/include/asm/unistd_32.h @@ -0,0 +1 @@ + diff --git a/trunk/tools/perf/util/include/asm/unistd_64.h b/trunk/tools/perf/util/include/asm/unistd_64.h new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/trunk/tools/perf/util/include/asm/unistd_64.h @@ -0,0 +1 @@ +