summaryrefslogtreecommitdiff
path: root/tools/perf/util/parse-events.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-09-24 22:07:59 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-25 22:26:40 +0300
commit252a2fdc742bc34b94da203282773952d3b54279 (patch)
treeceb4a06e8db7144fd4c91e788a0aa855b6aae8ac /tools/perf/util/parse-events.c
parent95be9d197da6f9006f6a70a0d141498ea2488858 (diff)
downloadlinux-252a2fdc742bc34b94da203282773952d3b54279.tar.xz
perf tools: Replace needless mmap.h with what is needed, event.h
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>
Diffstat (limited to 'tools/perf/util/parse-events.c')
-rw-r--r--tools/perf/util/parse-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c
index 50737046fa63..b5e2adef49de 100644
--- a/tools/perf/util/parse-events.c
+++ b/tools/perf/util/parse-events.c
@@ -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