diff options
-rw-r--r-- | tools/arch/x86/include/asm/unistd_32.h | 9 | ||||
-rw-r--r-- | tools/arch/x86/include/asm/unistd_64.h | 9 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 1 | ||||
-rw-r--r-- | tools/perf/perf-sys.h | 18 | ||||
-rw-r--r-- | tools/perf/util/include/asm/unistd_32.h | 1 | ||||
-rw-r--r-- | tools/perf/util/include/asm/unistd_64.h | 1 |
6 files changed, 19 insertions, 20 deletions
diff --git a/tools/arch/x86/include/asm/unistd_32.h b/tools/arch/x86/include/asm/unistd_32.h new file mode 100644 index 000000000000..cf33ab09273d --- /dev/null +++ b/tools/arch/x86/include/asm/unistd_32.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef __NR_perf_event_open | ||
2 | # define __NR_perf_event_open 336 | ||
3 | #endif | ||
4 | #ifndef __NR_futex | ||
5 | # define __NR_futex 240 | ||
6 | #endif | ||
7 | #ifndef __NR_gettid | ||
8 | # define __NR_gettid 224 | ||
9 | #endif | ||
diff --git a/tools/arch/x86/include/asm/unistd_64.h b/tools/arch/x86/include/asm/unistd_64.h new file mode 100644 index 000000000000..2c9835695b56 --- /dev/null +++ b/tools/arch/x86/include/asm/unistd_64.h | |||
@@ -0,0 +1,9 @@ | |||
1 | #ifndef __NR_perf_event_open | ||
2 | # define __NR_perf_event_open 298 | ||
3 | #endif | ||
4 | #ifndef __NR_futex | ||
5 | # define __NR_futex 202 | ||
6 | #endif | ||
7 | #ifndef __NR_gettid | ||
8 | # define __NR_gettid 186 | ||
9 | #endif | ||
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index c7e269a7ca37..7d2ea691c11b 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -209,6 +209,7 @@ CFLAGS += -I$(src-perf)/arch/$(ARCH)/include | |||
209 | CFLAGS += -I$(srctree)/tools/include/ | 209 | CFLAGS += -I$(srctree)/tools/include/ |
210 | CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi | 210 | CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi |
211 | CFLAGS += -I$(srctree)/arch/$(ARCH)/include | 211 | CFLAGS += -I$(srctree)/arch/$(ARCH)/include |
212 | CFLAGS += -I$(srctree)/tools/arch/$(ARCH)/include | ||
212 | CFLAGS += -I$(srctree)/include/uapi | 213 | CFLAGS += -I$(srctree)/include/uapi |
213 | CFLAGS += -I$(srctree)/include | 214 | CFLAGS += -I$(srctree)/include |
214 | 215 | ||
diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h index 83a25cef82fd..5cee8a3d0455 100644 --- a/tools/perf/perf-sys.h +++ b/tools/perf/perf-sys.h | |||
@@ -11,29 +11,11 @@ | |||
11 | #if defined(__i386__) | 11 | #if defined(__i386__) |
12 | #define cpu_relax() asm volatile("rep; nop" ::: "memory"); | 12 | #define cpu_relax() asm volatile("rep; nop" ::: "memory"); |
13 | #define CPUINFO_PROC {"model name"} | 13 | #define CPUINFO_PROC {"model name"} |
14 | #ifndef __NR_perf_event_open | ||
15 | # define __NR_perf_event_open 336 | ||
16 | #endif | ||
17 | #ifndef __NR_futex | ||
18 | # define __NR_futex 240 | ||
19 | #endif | ||
20 | #ifndef __NR_gettid | ||
21 | # define __NR_gettid 224 | ||
22 | #endif | ||
23 | #endif | 14 | #endif |
24 | 15 | ||
25 | #if defined(__x86_64__) | 16 | #if defined(__x86_64__) |
26 | #define cpu_relax() asm volatile("rep; nop" ::: "memory"); | 17 | #define cpu_relax() asm volatile("rep; nop" ::: "memory"); |
27 | #define CPUINFO_PROC {"model name"} | 18 | #define CPUINFO_PROC {"model name"} |
28 | #ifndef __NR_perf_event_open | ||
29 | # define __NR_perf_event_open 298 | ||
30 | #endif | ||
31 | #ifndef __NR_futex | ||
32 | # define __NR_futex 202 | ||
33 | #endif | ||
34 | #ifndef __NR_gettid | ||
35 | # define __NR_gettid 186 | ||
36 | #endif | ||
37 | #endif | 19 | #endif |
38 | 20 | ||
39 | #ifdef __powerpc__ | 21 | #ifdef __powerpc__ |
diff --git a/tools/perf/util/include/asm/unistd_32.h b/tools/perf/util/include/asm/unistd_32.h deleted file mode 100644 index 8b137891791f..000000000000 --- a/tools/perf/util/include/asm/unistd_32.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | |||
diff --git a/tools/perf/util/include/asm/unistd_64.h b/tools/perf/util/include/asm/unistd_64.h deleted file mode 100644 index 8b137891791f..000000000000 --- a/tools/perf/util/include/asm/unistd_64.h +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | |||