diff options
Diffstat (limited to 'tools/perf/tests/code-reading.c')
-rw-r--r-- | tools/perf/tests/code-reading.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c index 7b2b89f4b716..c1c29e08e7fb 100644 --- a/tools/perf/tests/code-reading.c +++ b/tools/perf/tests/code-reading.c | |||
@@ -13,7 +13,9 @@ | |||
13 | 13 | ||
14 | #include "debug.h" | 14 | #include "debug.h" |
15 | #include "dso.h" | 15 | #include "dso.h" |
16 | #include "env.h" | ||
16 | #include "parse-events.h" | 17 | #include "parse-events.h" |
18 | #include "trace-event.h" | ||
17 | #include "evlist.h" | 19 | #include "evlist.h" |
18 | #include "evsel.h" | 20 | #include "evsel.h" |
19 | #include "thread_map.h" | 21 | #include "thread_map.h" |
@@ -496,6 +498,10 @@ static void fs_something(void) | |||
496 | } | 498 | } |
497 | } | 499 | } |
498 | 500 | ||
501 | #ifdef __s390x__ | ||
502 | #include "header.h" // for get_cpuid() | ||
503 | #endif | ||
504 | |||
499 | static const char *do_determine_event(bool excl_kernel) | 505 | static const char *do_determine_event(bool excl_kernel) |
500 | { | 506 | { |
501 | const char *event = excl_kernel ? "cycles:u" : "cycles"; | 507 | const char *event = excl_kernel ? "cycles:u" : "cycles"; |