diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-27 22:02:57 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-10-31 15:07:08 +0100 |
commit | fd8d5a3b076c033f5589186ac49d76e74b39f97f (patch) | |
tree | dd9e8c766a86c9c2c352e8bc63303b086a39e4ab | |
parent | perf thread: Move thread__resolve() from event.h (diff) | |
download | linux-fd8d5a3b076c033f5589186ac49d76e74b39f97f.tar.xz linux-fd8d5a3b076c033f5589186ac49d76e74b39f97f.zip |
perf tests: Add missing event.h include
It uses things like perf_event__name() but were not including event.h,
where its prototype lives, fix it.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/tests/mmap-basic.c | 1 | ||||
-rw-r--r-- | tools/perf/tests/perf-record.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c index 6377906c1318..e68ca6229756 100644 --- a/tools/perf/tests/mmap-basic.c +++ b/tools/perf/tests/mmap-basic.c @@ -5,6 +5,7 @@ #include <perf/cpumap.h> #include "debug.h" +#include "event.h" #include "evlist.h" #include "evsel.h" #include "thread_map.h" diff --git a/tools/perf/tests/perf-record.c b/tools/perf/tests/perf-record.c index d82539e2ae64..1c4feec1adff 100644 --- a/tools/perf/tests/perf-record.c +++ b/tools/perf/tests/perf-record.c @@ -5,6 +5,7 @@ #include <sched.h> #include <perf/mmap.h> +#include "event.h" #include "evlist.h" #include "evsel.h" #include "debug.h" |