diff options
Diffstat (limited to 'tools/perf/tests/event_update.c')
-rw-r--r-- | tools/perf/tests/event_update.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/tests/event_update.c b/tools/perf/tests/event_update.c index cac4290e233a..0497d900ced2 100644 --- a/tools/perf/tests/event_update.c +++ b/tools/perf/tests/event_update.c | |||
@@ -2,10 +2,12 @@ | |||
2 | #include <linux/compiler.h> | 2 | #include <linux/compiler.h> |
3 | #include <perf/cpumap.h> | 3 | #include <perf/cpumap.h> |
4 | #include <string.h> | 4 | #include <string.h> |
5 | #include "cpumap.h" | ||
5 | #include "evlist.h" | 6 | #include "evlist.h" |
6 | #include "evsel.h" | 7 | #include "evsel.h" |
7 | #include "header.h" | 8 | #include "header.h" |
8 | #include "machine.h" | 9 | #include "machine.h" |
10 | #include "util/synthetic-events.h" | ||
9 | #include "tool.h" | 11 | #include "tool.h" |
10 | #include "tests.h" | 12 | #include "tests.h" |
11 | #include "debug.h" | 13 | #include "debug.h" |
@@ -92,7 +94,7 @@ int test__event_update(struct test *test __maybe_unused, int subtest __maybe_unu | |||
92 | 94 | ||
93 | evsel = perf_evlist__first(evlist); | 95 | evsel = perf_evlist__first(evlist); |
94 | 96 | ||
95 | TEST_ASSERT_VAL("failed to allos ids", | 97 | TEST_ASSERT_VAL("failed to allocate ids", |
96 | !perf_evsel__alloc_id(evsel, 1, 1)); | 98 | !perf_evsel__alloc_id(evsel, 1, 1)); |
97 | 99 | ||
98 | perf_evlist__id_add(evlist, evsel, 0, 0, 123); | 100 | perf_evlist__id_add(evlist, evsel, 0, 0, 123); |