diff options
author | Ingo Molnar <mingo@elte.hu> | 2012-03-14 11:42:34 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-03-14 11:42:34 -0400 |
commit | eae7a755ee81129370c8f555b0d5672e6673735d (patch) | |
tree | f9bf3cf7919d71f3b99b94c92b8bf81bf8af4a11 /tools/perf/Makefile | |
parent | e7f01d1e3d8d501deb8abeaa269d5d48a703b8b0 (diff) |
perf tools, x86: Build perf on older user-space as well
On ancient systems I get this build failure:
util/../../../arch/x86/include/asm/unistd.h:67:29: error: asm/unistd_64.h: No such file or directory
In file included from util/cache.h:7,
from builtin-test.c:8:
util/../perf.h: In function ‘sys_perf_event_open’:In file included from util/../perf.h:16
perf.h:170: error: ‘__NR_perf_event_open’ undeclared (first use in this function)
The reason is that this old system does not have the split
unistd.h headers yet, from which to pick up the syscall
definitions.
Add the syscall numbers to the already existing i386 and x86_64
blocks in perf.h, and also provide empty include file stubs.
With this patch perf builds and works fine on 5 years old
user-space as well.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lkml.kernel.org/n/tip-jctwg64le1w47tuaoeyftsg9@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 7c12650165ae..8a4b9bccf8b2 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -249,6 +249,8 @@ LIB_H += util/include/asm/uaccess.h | |||
249 | LIB_H += util/include/dwarf-regs.h | 249 | LIB_H += util/include/dwarf-regs.h |
250 | LIB_H += util/include/asm/dwarf2.h | 250 | LIB_H += util/include/asm/dwarf2.h |
251 | LIB_H += util/include/asm/cpufeature.h | 251 | LIB_H += util/include/asm/cpufeature.h |
252 | LIB_H += util/include/asm/unistd_32.h | ||
253 | LIB_H += util/include/asm/unistd_64.h | ||
252 | LIB_H += perf.h | 254 | LIB_H += perf.h |
253 | LIB_H += util/annotate.h | 255 | LIB_H += util/annotate.h |
254 | LIB_H += util/cache.h | 256 | LIB_H += util/cache.h |