perf tools: Remove needless perf.h include directive from headers
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Aug 2019 18:20:59 +0000 (15:20 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Aug 2019 20:38:32 +0000 (17:38 -0300)
Its not needed there, add it to the places that need it and were getting
it via those headers.

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-5yulx1u16vyd0zmrbg1tjhju@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
21 files changed:
tools/perf/builtin-c2c.c
tools/perf/builtin-diff.c
tools/perf/builtin-record.c
tools/perf/builtin-script.c
tools/perf/builtin-stat.c
tools/perf/builtin-trace.c
tools/perf/perf.c
tools/perf/ui/browsers/hists.c
tools/perf/ui/browsers/res_sample.c
tools/perf/ui/browsers/scripts.c
tools/perf/ui/hist.c
tools/perf/ui/tui/setup.c
tools/perf/util/auxtrace.h
tools/perf/util/callchain.c
tools/perf/util/event.c
tools/perf/util/event.h
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/mmap.c
tools/perf/util/session.c
tools/perf/util/top.c

index 8335a4076a5af718a05da88e8e38f4bad234efdc..25a5f186dfdee33b3201a97a951211d14a04c108 100644 (file)
@@ -35,6 +35,7 @@
 #include "thread.h"
 #include "mem2node.h"
 #include "symbol.h"
+#include "../perf.h"
 
 struct c2c_hists {
        struct hists            hists;
index 51c37e53b3d8b5f248e0f5fa5a0b32e94f8e76d5..ae4a8ebf90d27520cd37873fe8d0e5a0bdeb84fb 100644 (file)
@@ -6,6 +6,7 @@
  * DSOs and symbol information, sort them and produce a diff.
  */
 #include "builtin.h"
+#include "perf.h"
 
 #include "util/debug.h"
 #include "util/event.h"
index bd2a0cc6eb527561642f010db82bea101a008f84..56705d2a6beccf816b0b644243697c5f7d0175d5 100644 (file)
@@ -42,6 +42,7 @@
 #include "util/units.h"
 #include "util/bpf-event.h"
 #include "asm/bug.h"
+#include "perf.h"
 
 #include <errno.h>
 #include <inttypes.h>
index 37297b67905d6f8a995e12a28c33ea306f0d0812..f3b31c6ed15f58dc191eaf6d949eb41a74a09fb5 100644 (file)
@@ -53,6 +53,7 @@
 #include <perf/evlist.h>
 #include "util/record.h"
 #include "util/util.h"
+#include "perf.h"
 
 #include <linux/ctype.h>
 
index 2741bcb049fb8307a06ac48b4606c89bb0b2a747..fa4212dac9bb111481cd6eba26a5943bbe2bdc78 100644 (file)
@@ -41,6 +41,7 @@
  */
 
 #include "builtin.h"
+#include "perf.h"
 #include "util/cgroup.h"
 #include <subcmd/parse-options.h>
 #include "util/parse-events.h"
index 6d9805a8791b9eb0185fc4cc3b5dfb28d35f4f96..105695033ebcdc16ba6f4113ec8abe826cbce460 100644 (file)
@@ -51,6 +51,7 @@
 #include "string2.h"
 #include "syscalltbl.h"
 #include "rb_resort.h"
+#include "../perf.h"
 
 #include <errno.h>
 #include <inttypes.h>
index a95a248a7421ac7e0899c348bae767993460793f..237b9b3a1bf11a071a3bafdd69077d6e6daf6d67 100644 (file)
@@ -8,6 +8,7 @@
  * perf top, perf record, perf report, etc.) are started.
  */
 #include "builtin.h"
+#include "perf.h"
 
 #include "util/env.h"
 #include <subcmd/exec-cmd.h>
index 30547fdb078762bfd11c0858b31b384cd7e54b7e..ccc37284860b220581acef8afd153872c98551bc 100644 (file)
@@ -22,6 +22,7 @@
 #include "../../util/top.h"
 #include "../../util/thread.h"
 #include "../../arch/common.h"
+#include "../../perf.h"
 
 #include "../browsers/hists.h"
 #include "../helpline.h"
index 41a9d8923ec435aee31773f5aa6f226d3ce5da6b..db3954fea74c497f6b9f8c1ea1b5a022ea0d7595 100644 (file)
@@ -8,6 +8,7 @@
 #include "time-utils.h"
 #include "../util.h"
 #include "../../util/util.h"
+#include "../../perf.h"
 #include <linux/time64.h>
 #include <linux/zalloc.h>
 
index 50e0c03171f21087d17bb3e5a03a5ac5bb3cfbfb..e63f3778d75c07155f4c4bc835e027e689f7071f 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 #include "../../builtin.h"
+#include "../../perf.h"
 #include "../../util/sort.h"
 #include "../../util/util.h"
 #include "../../util/hist.h"
index e5fb64347b2c5f6b57b71054204bc2331b4f0f8d..ae29f16979acdc363da90b2a69623b87a1bfbc98 100644 (file)
@@ -9,6 +9,7 @@
 #include "../util/sort.h"
 #include "../util/evsel.h"
 #include "../util/evlist.h"
+#include "../perf.h"
 
 /* hist period print (hpp) functions */
 
index 3ad0d3363ac6ca70e2954e9bab7122b2faefcad4..2881982b483c96e76b1f949ae2c6860b37f87f30 100644 (file)
@@ -11,6 +11,7 @@
 #include "../../util/cache.h"
 #include "../../util/debug.h"
 #include "../../util/util.h"
+#include "../../perf.h"
 #include "../browser.h"
 #include "../helpline.h"
 #include "../ui.h"
index 1fa8a965b03fdce7cdfa87e44b0e6ccb0868f84a..bc39cc5610a8024006e53bf7a1e7b2762c3d1208 100644 (file)
@@ -17,7 +17,6 @@
 #include <asm/bitsperlong.h>
 #include <asm/barrier.h>
 
-#include "../perf.h"
 #include "event.h"
 #include "session.h"
 #include "debug.h"
index dd6e010003856b62834d251a88617e82307a0896..a47d0e8c24342ec0527643ed356e13be5a82d881 100644 (file)
@@ -28,6 +28,7 @@
 #include "callchain.h"
 #include "branch.h"
 #include "symbol.h"
+#include "../perf.h"
 
 #define CALLCHAIN_PARAM_DEFAULT                        \
        .mode           = CHAIN_GRAPH_ABS,      \
index 7fa7a303e476a5dfd02e8d2892e7b0776ca0f1a9..ef7fc574f7015ea95f354a624033da90b4c6c88f 100644 (file)
@@ -30,6 +30,7 @@
 #include "stat.h"
 #include "session.h"
 #include "bpf-event.h"
+#include "../perf.h"
 
 #define DEFAULT_PROC_MAP_PARSE_TIMEOUT 500
 
index 4c0c5232bd41bf741fc7d5ec45f8f915a2b1d3c1..f56d268f06e30ce12ceb4da5e8d7d10afeb0174d 100644 (file)
@@ -9,7 +9,6 @@
 #include <linux/perf_event.h>
 #include <perf/event.h>
 
-#include "../perf.h"
 #include "build-id.h"
 #include "perf_regs.h"
 
index 253dd8dd0e12d3d775af648a8e1d903fdde4993e..71b231c7097fa3c8fbb92797b783d86236845c9e 100644 (file)
@@ -17,6 +17,7 @@
 #include "debug.h"
 #include "units.h"
 #include "util.h"
+#include "../perf.h"
 #include "asm/bug.h"
 #include "bpf-event.h"
 #include <signal.h>
index 16796de7af3f74c6a2b7e4783c449446736eaaf0..ee288644e9e481bb240b7f0333b4a74856a579ea 100644 (file)
@@ -9,7 +9,6 @@
 #include <api/fd/array.h>
 #include <stdio.h>
 #include <internal/evlist.h>
-#include "../perf.h"
 #include "event.h"
 #include "evsel.h"
 #include "mmap.h"
index 5f3532e51ec99d2b50bd249b4a3bef4d2f9b553e..28477ff5114ee1196eff86f8e5e73b2f07779264 100644 (file)
@@ -16,6 +16,7 @@
 #include "debug.h"
 #include "event.h"
 #include "mmap.h"
+#include "../perf.h"
 #include "util.h" /* page_size */
 
 size_t perf_mmap__mmap_len(struct perf_mmap *map)
index 9eb843e5e6f02785c9d7ddeda3f3cba367a91abc..82bd5d4361f05e7bda53ba814ba512b6eaae9782 100644 (file)
@@ -29,6 +29,7 @@
 #include "sample-raw.h"
 #include "stat.h"
 #include "util.h"
+#include "../perf.h"
 #include "arch/common.h"
 
 #ifdef HAVE_ZSTD_SUPPORT
index e5b690cf2898d8a066930f1377552fcec36328c4..51fb574998bb9a7d0fbe20fe5c77d34aee3174c4 100644 (file)
@@ -12,6 +12,7 @@
 #include "parse-events.h"
 #include "symbol.h"
 #include "top.h"
+#include "../perf.h"
 #include <inttypes.h>
 
 #define SNPRINTF(buf, size, fmt, args...) \