From: Arnaldo Carvalho de Melo Date: Thu, 27 Oct 2022 20:02:57 +0000 (-0300) Subject: perf tests: Add missing event.h include X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fd8d5a3b076c033f5589186ac49d76e74b39f97f;p=linux.git 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 --- diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c index 6377906c13183..e68ca62297566 100644 --- a/tools/perf/tests/mmap-basic.c +++ b/tools/perf/tests/mmap-basic.c @@ -5,6 +5,7 @@ #include #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 d82539e2ae648..1c4feec1adff1 100644 --- a/tools/perf/tests/perf-record.c +++ b/tools/perf/tests/perf-record.c @@ -5,6 +5,7 @@ #include #include +#include "event.h" #include "evlist.h" #include "evsel.h" #include "debug.h"