diff options
| author | Namhyung Kim <[email protected]> | 2012-06-21 08:52:52 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-06-25 17:55:24 +0000 |
| commit | 35a468732289372aab506d7cf73f98f0379888ae (patch) | |
| tree | 0f299873c52f3bf93a304a793711d63b32f6e7ba /tools/perf/util/trace-event-scripting.c | |
| parent | perf/x86: Fix section mismatch in uncore_pci_init() (diff) | |
| download | kernel-35a468732289372aab506d7cf73f98f0379888ae.tar.gz kernel-35a468732289372aab506d7cf73f98f0379888ae.zip | |
perf evsel: Fix a build failure on cross compilation
The commit c410431cefefd ("perf tools: Reconstruct event with modifiers
from perf_event_attr") added the line, but it's broken since it needs to
go up 3 directories to get to the kernel root directory, not 2.
However host gcc contains /usr/local/include in its search path, so that
it can find the perf_event.h in /usr/include. This why we didn't notice
the problem yet. But when I tried to cross compile it appears like:
CC util/evsel.o
util/evsel.c:18:44: error: ../../include/linux/perf_event.h: No such file or directory
make: *** [util/evsel.o] Error 1
Looking at the source, it isn't needed at all as evsel.h already
included the perf_event.h. So simply remove it would solve the problem.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
