perf evlist: Remove needless util.h from evlist.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Aug 2019 14:51:18 +0000 (11:51 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Aug 2019 20:19:35 +0000 (17:19 -0300)
There is no need for that util/util.h include there and, remove it,
pruning the include tree, fix the fallout by adding necessary headers to
places that were getting needed includes indirectly from evlist.h ->
util.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-s9f7uve8wvykr5itcm7m7d8q@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
13 files changed:
tools/perf/arch/x86/util/intel-bts.c
tools/perf/arch/x86/util/intel-pt.c
tools/perf/builtin-report.c
tools/perf/builtin-script.c
tools/perf/builtin-top.c
tools/perf/builtin-trace.c
tools/perf/tests/sdt.c
tools/perf/util/auxtrace.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/evsel.c
tools/perf/util/header.c
tools/perf/util/session.c

index 16d26ea701ad20a8d4062fb32398f00671982d85..e4bb5df9b731aeaa0b6278dff215cb2caa0f3221 100644 (file)
@@ -22,6 +22,7 @@
 #include "../../util/tsc.h"
 #include "../../util/auxtrace.h"
 #include "../../util/intel-bts.h"
+#include "../../util/util.h"
 
 #define KiB(x) ((x) * 1024)
 #define MiB(x) ((x) * 1024 * 1024)
index 746981c82a16f89e3ab3c4b8c8e37e696ea73818..04b424ad4d99e2d34aae8b2067d725871d4e8875 100644 (file)
@@ -26,6 +26,7 @@
 #include "../../util/record.h"
 #include "../../util/target.h"
 #include "../../util/tsc.h"
+#include "../../util/util.h"
 #include "../../util/intel-pt.h"
 
 #define KiB(x) ((x) * 1024)
index 318b0b95c14c7d83becf4e6526e78780dd08e914..0338916af4bfbf58518a011f3603868bfb9448b7 100644 (file)
@@ -44,6 +44,7 @@
 #include "util/auxtrace.h"
 #include "util/units.h"
 #include "util/branch.h"
+#include "util/util.h"
 
 #include <dlfcn.h>
 #include <errno.h>
index 51e7e6d0eee6f342701f32e6870131936ad1fe39..e005be0d359f427f65035e3a7f6887a510993e3c 100644 (file)
@@ -52,6 +52,7 @@
 #include <subcmd/pager.h>
 #include <perf/evlist.h>
 #include "util/record.h"
+#include "util/util.h"
 
 #include <linux/ctype.h>
 
index 29e910fb2d9a5b974025dcb9d95874a10e38e6ba..42ba733c9045f53a2b9b29ba2f210d91afc9b8f0 100644 (file)
@@ -34,6 +34,7 @@
 #include "util/thread.h"
 #include "util/thread_map.h"
 #include "util/top.h"
+#include "util/util.h"
 #include <linux/rbtree.h>
 #include <subcmd/parse-options.h>
 #include "util/parse-events.h"
index 58a75dd3a571e1760deb38c8821c199d60e32585..6d9805a8791b9eb0185fc4cc3b5dfb28d35f4f96 100644 (file)
@@ -41,6 +41,7 @@
 #include "util/intlist.h"
 #include "util/thread_map.h"
 #include "util/stat.h"
+#include "util/util.h"
 #include "trace/beauty/beauty.h"
 #include "trace-event.h"
 #include "util/parse-events.h"
index 8bfaa630389c2fb0c39cddb1d5fcc10d23e66722..dbc35a8912edeb028620cdbf776321b4d7ef2a61 100644 (file)
@@ -9,6 +9,7 @@
 #include "debug.h"
 #include "probe-file.h"
 #include "build-id.h"
+#include "util.h"
 
 /* To test SDT event, we need libelf support to scan elf binary */
 #if defined(HAVE_SDT_EVENT) && defined(HAVE_LIBELF_SUPPORT)
index 12e9b7acbb2ca208d89772328b1f6d2ec6fa2652..112c24aa2cf26962c394307e582ce44ca237e74c 100644 (file)
@@ -50,6 +50,7 @@
 #include "intel-bts.h"
 #include "arm-spe.h"
 #include "s390-cpumsf.h"
+#include "util.h"
 
 #include <linux/ctype.h>
 #include "symbol/kallsyms.h"
index 47bc54111f57ef393160633ba61a2e63140df498..5ad92fa72e78decd635ac9a7ee1148ecd5e06b1b 100644 (file)
@@ -16,6 +16,7 @@
 #include "evsel.h"
 #include "debug.h"
 #include "units.h"
+#include "util.h"
 #include "asm/bug.h"
 #include "bpf-event.h"
 #include <signal.h>
index e31ddcc058f2f60348923b461307b95c94717e34..16796de7af3f74c6a2b7e4783c449446736eaaf0 100644 (file)
@@ -13,7 +13,6 @@
 #include "event.h"
 #include "evsel.h"
 #include "mmap.h"
-#include "util.h"
 #include <signal.h>
 #include <unistd.h>
 
index d4540bfe4574a93ffcc31e99fb450f4245e36123..dbc04e1053a9b5091e5c6092eba9d25e25ddf24a 100644 (file)
@@ -40,6 +40,7 @@
 #include "stat.h"
 #include "string2.h"
 #include "memswap.h"
+#include "util.h"
 #include "util/parse-branch-options.h"
 #include <internal/xyarray.h>
 
index 1f2965a07bef35e1ecf1c8de9326e6a5cd7f270c..8e67faf4fe88f077122c3c63b0871efe87380fd5 100644 (file)
@@ -42,6 +42,7 @@
 #include "tool.h"
 #include "time-utils.h"
 #include "units.h"
+#include "util.h"
 #include "cputopo.h"
 #include "bpf-event.h"
 
index 5786e9c807c540ddc7beeb7d225a1247f679fed3..a275f2e15b941b9449e7052f6b1dd5f115e4806d 100644 (file)
@@ -29,6 +29,7 @@
 #include "thread-stack.h"
 #include "sample-raw.h"
 #include "stat.h"
+#include "util.h"
 #include "arch/common.h"
 
 #ifdef HAVE_ZSTD_SUPPORT