perf callchain: Remove needless event.h include
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Sep 2019 16:24:07 +0000 (17:24 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 20 Sep 2019 12:19:21 +0000 (09:19 -0300)
All we need is a bunch of struct forward declarations and then add
event.h to the only place that was getting it indirectly via
callchain.h.

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-qq2xhyuxcvx5vmxha9otjd8d@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/powerpc/util/skip-callchain-idx.c
tools/perf/util/callchain.h
tools/perf/util/evsel_fprintf.c

index fc9c2f5fcd5266629c0ac7cefcdbcc7bee9d3758..3018a054526af931641aa1226e953dbf16295cb5 100644 (file)
@@ -13,6 +13,7 @@
 #include "util/callchain.h"
 #include "util/debug.h"
 #include "util/dso.h"
+#include "util/event.h" // struct ip_callchain
 #include "util/map.h"
 #include "util/symbol.h"
 
index b042ceef411436f0cd82f1461540c38f0458b45d..83398e5bbe4bcefefb91320dbb1ba10de9db0aba 100644 (file)
@@ -4,12 +4,15 @@
 
 #include <linux/list.h>
 #include <linux/rbtree.h>
-#include "event.h"
 #include "map_symbol.h"
 #include "branch.h"
 
+struct addr_location;
 struct evsel;
+struct ip_callchain;
 struct map;
+struct perf_sample;
+struct thread;
 
 #define HELP_PAD "\t\t\t\t"
 
index 496fec01f5d10d693357467be6aee6f62c8a521b..a8cbdf4c275335992598fc6a400c83de3f90e83d 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdbool.h>
 #include <traceevent/event-parse.h>
 #include "evsel.h"
+#include "util/event.h"
 #include "callchain.h"
 #include "map.h"
 #include "strlist.h"