perf tools: Remove needless evlist.h include directives
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 30 Aug 2019 15:29:03 +0000 (12:29 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 1 Sep 2019 01:24:10 +0000 (22:24 -0300)
Now that evlist.h isn't included by any other header, we can check where
it is really needed, i.e. we can remove it and be sure that it isn't
being obtained indirectly.

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-6d7kape36m94a266md0d3xbh@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-lock.c
tools/perf/builtin-timechart.c
tools/perf/tests/hists_common.c
tools/perf/tests/sdt.c
tools/perf/ui/gtk/browser.c
tools/perf/util/arm-spe.c

index 38500bff442308dfb403f9500ff3129290d3eef3..b0ff952be9db593a83736297a7e0fe6e65caef96 100644 (file)
@@ -4,7 +4,7 @@
 #include "builtin.h"
 #include "perf.h"
 
-#include "util/evlist.h"
+#include "util/evlist.h" // for struct evsel_str_handler
 #include "util/evsel.h"
 #include "util/cache.h"
 #include "util/symbol.h"
index 1a74499f3311cbb2e26d55bdc9e574eb3f0b9135..65560a86f64337af4c38437e7d2442f592224b15 100644 (file)
@@ -15,7 +15,7 @@
 #include "util/color.h"
 #include <linux/list.h>
 #include "util/cache.h"
-#include "util/evlist.h"
+#include "util/evlist.h" // for struct evsel_str_handler
 #include "util/evsel.h"
 #include <linux/kernel.h>
 #include <linux/rbtree.h>
index cdde41c03056be273e4f437f130e3fa67236fc24..de110d8f169b3fa52c8813201571dc3bc65342a3 100644 (file)
@@ -6,7 +6,6 @@
 #include "util/symbol.h"
 #include "util/sort.h"
 #include "util/evsel.h"
-#include "util/evlist.h"
 #include "util/machine.h"
 #include "util/thread.h"
 #include "tests/hists_common.h"
index dbc35a8912edeb028620cdbf776321b4d7ef2a61..cf1bd57d302308525010b6c34a019a53d3206589 100644 (file)
@@ -1,8 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <errno.h>
+#include <limits.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/epoll.h>
-#include <util/evlist.h>
 #include <util/symbol.h>
 #include <linux/filter.h>
 #include "tests.h"
index 4820e25ac68d9ab9be1bbd0e43117fb4012ef988..06a6a1ebaef025051d7f77e1151a0a31f3e5bc48 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "../evlist.h"
 #include "../cache.h"
 #include "../evsel.h"
 #include "../sort.h"
index 6bee59946c4f7bbb460ee837c50ea2fa1b16c3d1..8a7340f6a2a2a242ecfa72e4bfb26d94d41a17c7 100644 (file)
@@ -8,6 +8,8 @@
 #include <errno.h>
 #include <byteswap.h>
 #include <inttypes.h>
+#include <unistd.h>
+#include <stdlib.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/bitops.h>
@@ -17,7 +19,6 @@
 #include "cpumap.h"
 #include "color.h"
 #include "evsel.h"
-#include "evlist.h"
 #include "machine.h"
 #include "session.h"
 #include "debug.h"