perf tests: Add missing event.h include
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 27 Oct 2022 20:02:57 +0000 (17:02 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 31 Oct 2022 14:07:08 +0000 (11:07 -0300)
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>
tools/perf/tests/mmap-basic.c
tools/perf/tests/perf-record.c

index 6377906c131836df45f4a7407b87d490136e101b..e68ca6229756603a668e76b8e6716e4280ac30c3 100644 (file)
@@ -5,6 +5,7 @@
 #include <perf/cpumap.h>
 
 #include "debug.h"
+#include "event.h"
 #include "evlist.h"
 #include "evsel.h"
 #include "thread_map.h"
index d82539e2ae648215824a7861529322d8a0f8bb78..1c4feec1adff115e4800da76239da59392f20acc 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <sched.h>
 #include <perf/mmap.h>
+#include "event.h"
 #include "evlist.h"
 #include "evsel.h"
 #include "debug.h"