diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-29 14:20:59 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-29 16:38:32 -0400 |
commit | c1a604dff486399ae0be95e6396e0158df95ad5d (patch) | |
tree | cfd993c491ac4e85719667a6108d22838bf0f265 | |
parent | f37110205c3065546d6995b1463751c7bbb50e89 (diff) |
perf tools: Remove needless perf.h include directive from headers
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>
-rw-r--r-- | tools/perf/builtin-c2c.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-diff.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-record.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-script.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-stat.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-trace.c | 1 | ||||
-rw-r--r-- | tools/perf/perf.c | 1 | ||||
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 1 | ||||
-rw-r--r-- | tools/perf/ui/browsers/res_sample.c | 1 | ||||
-rw-r--r-- | tools/perf/ui/browsers/scripts.c | 1 | ||||
-rw-r--r-- | tools/perf/ui/hist.c | 1 | ||||
-rw-r--r-- | tools/perf/ui/tui/setup.c | 1 | ||||
-rw-r--r-- | tools/perf/util/auxtrace.h | 1 | ||||
-rw-r--r-- | tools/perf/util/callchain.c | 1 | ||||
-rw-r--r-- | tools/perf/util/event.c | 1 | ||||
-rw-r--r-- | tools/perf/util/event.h | 1 | ||||
-rw-r--r-- | tools/perf/util/evlist.c | 1 | ||||
-rw-r--r-- | tools/perf/util/evlist.h | 1 | ||||
-rw-r--r-- | tools/perf/util/mmap.c | 1 | ||||
-rw-r--r-- | tools/perf/util/session.c | 1 | ||||
-rw-r--r-- | tools/perf/util/top.c | 1 |
21 files changed, 18 insertions, 3 deletions
diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 8335a4076a5a..25a5f186dfde 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include "thread.h" | 35 | #include "thread.h" |
36 | #include "mem2node.h" | 36 | #include "mem2node.h" |
37 | #include "symbol.h" | 37 | #include "symbol.h" |
38 | #include "../perf.h" | ||
38 | 39 | ||
39 | struct c2c_hists { | 40 | struct c2c_hists { |
40 | struct hists hists; | 41 | struct hists hists; |
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 51c37e53b3d8..ae4a8ebf90d2 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -6,6 +6,7 @@ | |||
6 | * DSOs and symbol information, sort them and produce a diff. | 6 | * DSOs and symbol information, sort them and produce a diff. |
7 | */ | 7 | */ |
8 | #include "builtin.h" | 8 | #include "builtin.h" |
9 | #include "perf.h" | ||
9 | 10 | ||
10 | #include "util/debug.h" | 11 | #include "util/debug.h" |
11 | #include "util/event.h" | 12 | #include "util/event.h" |
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index bd2a0cc6eb52..56705d2a6bec 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include "util/units.h" | 42 | #include "util/units.h" |
43 | #include "util/bpf-event.h" | 43 | #include "util/bpf-event.h" |
44 | #include "asm/bug.h" | 44 | #include "asm/bug.h" |
45 | #include "perf.h" | ||
45 | 46 | ||
46 | #include <errno.h> | 47 | #include <errno.h> |
47 | #include <inttypes.h> | 48 | #include <inttypes.h> |
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 37297b67905d..f3b31c6ed15f 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -53,6 +53,7 @@ | |||
53 | #include <perf/evlist.h> | 53 | #include <perf/evlist.h> |
54 | #include "util/record.h" | 54 | #include "util/record.h" |
55 | #include "util/util.h" | 55 | #include "util/util.h" |
56 | #include "perf.h" | ||
56 | 57 | ||
57 | #include <linux/ctype.h> | 58 | #include <linux/ctype.h> |
58 | 59 | ||
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 2741bcb049fb..fa4212dac9bb 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -41,6 +41,7 @@ | |||
41 | */ | 41 | */ |
42 | 42 | ||
43 | #include "builtin.h" | 43 | #include "builtin.h" |
44 | #include "perf.h" | ||
44 | #include "util/cgroup.h" | 45 | #include "util/cgroup.h" |
45 | #include <subcmd/parse-options.h> | 46 | #include <subcmd/parse-options.h> |
46 | #include "util/parse-events.h" | 47 | #include "util/parse-events.h" |
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 6d9805a8791b..105695033ebc 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -51,6 +51,7 @@ | |||
51 | #include "string2.h" | 51 | #include "string2.h" |
52 | #include "syscalltbl.h" | 52 | #include "syscalltbl.h" |
53 | #include "rb_resort.h" | 53 | #include "rb_resort.h" |
54 | #include "../perf.h" | ||
54 | 55 | ||
55 | #include <errno.h> | 56 | #include <errno.h> |
56 | #include <inttypes.h> | 57 | #include <inttypes.h> |
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index a95a248a7421..237b9b3a1bf1 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c | |||
@@ -8,6 +8,7 @@ | |||
8 | * perf top, perf record, perf report, etc.) are started. | 8 | * perf top, perf record, perf report, etc.) are started. |
9 | */ | 9 | */ |
10 | #include "builtin.h" | 10 | #include "builtin.h" |
11 | #include "perf.h" | ||
11 | 12 | ||
12 | #include "util/env.h" | 13 | #include "util/env.h" |
13 | #include <subcmd/exec-cmd.h> | 14 | #include <subcmd/exec-cmd.h> |
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 30547fdb0787..ccc37284860b 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "../../util/top.h" | 22 | #include "../../util/top.h" |
23 | #include "../../util/thread.h" | 23 | #include "../../util/thread.h" |
24 | #include "../../arch/common.h" | 24 | #include "../../arch/common.h" |
25 | #include "../../perf.h" | ||
25 | 26 | ||
26 | #include "../browsers/hists.h" | 27 | #include "../browsers/hists.h" |
27 | #include "../helpline.h" | 28 | #include "../helpline.h" |
diff --git a/tools/perf/ui/browsers/res_sample.c b/tools/perf/ui/browsers/res_sample.c index 41a9d8923ec4..db3954fea74c 100644 --- a/tools/perf/ui/browsers/res_sample.c +++ b/tools/perf/ui/browsers/res_sample.c | |||
@@ -8,6 +8,7 @@ | |||
8 | #include "time-utils.h" | 8 | #include "time-utils.h" |
9 | #include "../util.h" | 9 | #include "../util.h" |
10 | #include "../../util/util.h" | 10 | #include "../../util/util.h" |
11 | #include "../../perf.h" | ||
11 | #include <linux/time64.h> | 12 | #include <linux/time64.h> |
12 | #include <linux/zalloc.h> | 13 | #include <linux/zalloc.h> |
13 | 14 | ||
diff --git a/tools/perf/ui/browsers/scripts.c b/tools/perf/ui/browsers/scripts.c index 50e0c03171f2..e63f3778d75c 100644 --- a/tools/perf/ui/browsers/scripts.c +++ b/tools/perf/ui/browsers/scripts.c | |||
@@ -1,5 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "../../builtin.h" | 2 | #include "../../builtin.h" |
3 | #include "../../perf.h" | ||
3 | #include "../../util/sort.h" | 4 | #include "../../util/sort.h" |
4 | #include "../../util/util.h" | 5 | #include "../../util/util.h" |
5 | #include "../../util/hist.h" | 6 | #include "../../util/hist.h" |
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c index e5fb64347b2c..ae29f16979ac 100644 --- a/tools/perf/ui/hist.c +++ b/tools/perf/ui/hist.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "../util/sort.h" | 9 | #include "../util/sort.h" |
10 | #include "../util/evsel.h" | 10 | #include "../util/evsel.h" |
11 | #include "../util/evlist.h" | 11 | #include "../util/evlist.h" |
12 | #include "../perf.h" | ||
12 | 13 | ||
13 | /* hist period print (hpp) functions */ | 14 | /* hist period print (hpp) functions */ |
14 | 15 | ||
diff --git a/tools/perf/ui/tui/setup.c b/tools/perf/ui/tui/setup.c index 3ad0d3363ac6..2881982b483c 100644 --- a/tools/perf/ui/tui/setup.c +++ b/tools/perf/ui/tui/setup.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include "../../util/cache.h" | 11 | #include "../../util/cache.h" |
12 | #include "../../util/debug.h" | 12 | #include "../../util/debug.h" |
13 | #include "../../util/util.h" | 13 | #include "../../util/util.h" |
14 | #include "../../perf.h" | ||
14 | #include "../browser.h" | 15 | #include "../browser.h" |
15 | #include "../helpline.h" | 16 | #include "../helpline.h" |
16 | #include "../ui.h" | 17 | #include "../ui.h" |
diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h index 1fa8a965b03f..bc39cc5610a8 100644 --- a/tools/perf/util/auxtrace.h +++ b/tools/perf/util/auxtrace.h | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <asm/bitsperlong.h> | 17 | #include <asm/bitsperlong.h> |
18 | #include <asm/barrier.h> | 18 | #include <asm/barrier.h> |
19 | 19 | ||
20 | #include "../perf.h" | ||
21 | #include "event.h" | 20 | #include "event.h" |
22 | #include "session.h" | 21 | #include "session.h" |
23 | #include "debug.h" | 22 | #include "debug.h" |
diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index dd6e01000385..a47d0e8c2434 100644 --- a/tools/perf/util/callchain.c +++ b/tools/perf/util/callchain.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "callchain.h" | 28 | #include "callchain.h" |
29 | #include "branch.h" | 29 | #include "branch.h" |
30 | #include "symbol.h" | 30 | #include "symbol.h" |
31 | #include "../perf.h" | ||
31 | 32 | ||
32 | #define CALLCHAIN_PARAM_DEFAULT \ | 33 | #define CALLCHAIN_PARAM_DEFAULT \ |
33 | .mode = CHAIN_GRAPH_ABS, \ | 34 | .mode = CHAIN_GRAPH_ABS, \ |
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 7fa7a303e476..ef7fc574f701 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "stat.h" | 30 | #include "stat.h" |
31 | #include "session.h" | 31 | #include "session.h" |
32 | #include "bpf-event.h" | 32 | #include "bpf-event.h" |
33 | #include "../perf.h" | ||
33 | 34 | ||
34 | #define DEFAULT_PROC_MAP_PARSE_TIMEOUT 500 | 35 | #define DEFAULT_PROC_MAP_PARSE_TIMEOUT 500 |
35 | 36 | ||
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 4c0c5232bd41..f56d268f06e3 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -9,7 +9,6 @@ | |||
9 | #include <linux/perf_event.h> | 9 | #include <linux/perf_event.h> |
10 | #include <perf/event.h> | 10 | #include <perf/event.h> |
11 | 11 | ||
12 | #include "../perf.h" | ||
13 | #include "build-id.h" | 12 | #include "build-id.h" |
14 | #include "perf_regs.h" | 13 | #include "perf_regs.h" |
15 | 14 | ||
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 253dd8dd0e12..71b231c7097f 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include "debug.h" | 17 | #include "debug.h" |
18 | #include "units.h" | 18 | #include "units.h" |
19 | #include "util.h" | 19 | #include "util.h" |
20 | #include "../perf.h" | ||
20 | #include "asm/bug.h" | 21 | #include "asm/bug.h" |
21 | #include "bpf-event.h" | 22 | #include "bpf-event.h" |
22 | #include <signal.h> | 23 | #include <signal.h> |
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 16796de7af3f..ee288644e9e4 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h | |||
@@ -9,7 +9,6 @@ | |||
9 | #include <api/fd/array.h> | 9 | #include <api/fd/array.h> |
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <internal/evlist.h> | 11 | #include <internal/evlist.h> |
12 | #include "../perf.h" | ||
13 | #include "event.h" | 12 | #include "event.h" |
14 | #include "evsel.h" | 13 | #include "evsel.h" |
15 | #include "mmap.h" | 14 | #include "mmap.h" |
diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c index 5f3532e51ec9..28477ff5114e 100644 --- a/tools/perf/util/mmap.c +++ b/tools/perf/util/mmap.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include "debug.h" | 16 | #include "debug.h" |
17 | #include "event.h" | 17 | #include "event.h" |
18 | #include "mmap.h" | 18 | #include "mmap.h" |
19 | #include "../perf.h" | ||
19 | #include "util.h" /* page_size */ | 20 | #include "util.h" /* page_size */ |
20 | 21 | ||
21 | size_t perf_mmap__mmap_len(struct perf_mmap *map) | 22 | size_t perf_mmap__mmap_len(struct perf_mmap *map) |
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 9eb843e5e6f0..82bd5d4361f0 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "sample-raw.h" | 29 | #include "sample-raw.h" |
30 | #include "stat.h" | 30 | #include "stat.h" |
31 | #include "util.h" | 31 | #include "util.h" |
32 | #include "../perf.h" | ||
32 | #include "arch/common.h" | 33 | #include "arch/common.h" |
33 | 34 | ||
34 | #ifdef HAVE_ZSTD_SUPPORT | 35 | #ifdef HAVE_ZSTD_SUPPORT |
diff --git a/tools/perf/util/top.c b/tools/perf/util/top.c index e5b690cf2898..51fb574998bb 100644 --- a/tools/perf/util/top.c +++ b/tools/perf/util/top.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include "parse-events.h" | 12 | #include "parse-events.h" |
13 | #include "symbol.h" | 13 | #include "symbol.h" |
14 | #include "top.h" | 14 | #include "top.h" |
15 | #include "../perf.h" | ||
15 | #include <inttypes.h> | 16 | #include <inttypes.h> |
16 | 17 | ||
17 | #define SNPRINTF(buf, size, fmt, args...) \ | 18 | #define SNPRINTF(buf, size, fmt, args...) \ |