perf tools: Replace needless mmap.h with what is needed, event.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Sep 2019 19:07:59 +0000 (16:07 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Sep 2019 19:26:40 +0000 (16:26 -0300)
The perf_sample struct definition and the event_attr_init() are in
util/event.h, but some places were getting it thru an otherwise needless
util/mmap.h header, fix it by including util/event.h directly.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-p1anwyjdbbvghrkl9dlxv7h5@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/parse-events.c

index 69d0a1991b292cfde38eedb836db175561f9b054..e830eadfca2ab0ef98f903aa1119574128abb1a8 100644 (file)
@@ -34,7 +34,7 @@
 #include "bpf-event.h"
 #include "block-range.h"
 #include "string2.h"
-#include "util/mmap.h"
+#include "util/event.h"
 #include "arch/common.h"
 #include <regex.h>
 #include <pthread.h>
index 50737046fa63ff60c77dabe67b922cb1306902ef..b5e2adef49de9683ecf7dadead002ef6eaf0901a 100644 (file)
@@ -35,7 +35,7 @@
 #include "util/parse-branch-options.h"
 #include "metricgroup.h"
 #include "util/evsel_config.h"
-#include "util/mmap.h"
+#include "util/event.h"
 
 #define MAX_NAME_LEN 100