diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-29 14:42:40 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-29 16:38:32 -0400 |
commit | 0ac25fd0a04d8bd52ceac2476e71a4e497489987 (patch) | |
tree | c00396103c4b374aaaec012c968cbe8e696cd0ac | |
parent | c1a604dff486399ae0be95e6396e0158df95ad5d (diff) |
perf tools: Remove perf.h from source files not needing it
With the movement of lots of stuff out of perf.h to other headers we
ended up not needing it in lots of places, remove it from those places.
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-c718m0sxxwp73lp9d8vpihb4@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
48 files changed, 0 insertions, 51 deletions
diff --git a/tools/perf/arch/powerpc/util/perf_regs.c b/tools/perf/arch/powerpc/util/perf_regs.c index f14102b85509..e9c436eeffc9 100644 --- a/tools/perf/arch/powerpc/util/perf_regs.c +++ b/tools/perf/arch/powerpc/util/perf_regs.c | |||
@@ -4,7 +4,6 @@ | |||
4 | #include <regex.h> | 4 | #include <regex.h> |
5 | #include <linux/zalloc.h> | 5 | #include <linux/zalloc.h> |
6 | 6 | ||
7 | #include "../../perf.h" | ||
8 | #include "../../util/perf_regs.h" | 7 | #include "../../util/perf_regs.h" |
9 | #include "../../util/debug.h" | 8 | #include "../../util/debug.h" |
10 | 9 | ||
diff --git a/tools/perf/arch/x86/tests/intel-cqm.c b/tools/perf/arch/x86/tests/intel-cqm.c index 2a105e3b2ad1..3b5cc3373821 100644 --- a/tools/perf/arch/x86/tests/intel-cqm.c +++ b/tools/perf/arch/x86/tests/intel-cqm.c | |||
@@ -1,6 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "tests/tests.h" | 2 | #include "tests/tests.h" |
3 | #include "perf.h" | ||
4 | #include "cloexec.h" | 3 | #include "cloexec.h" |
5 | #include "debug.h" | 4 | #include "debug.h" |
6 | #include "evlist.h" | 5 | #include "evlist.h" |
diff --git a/tools/perf/arch/x86/util/archinsn.c b/tools/perf/arch/x86/util/archinsn.c index 4237bb2e7fa2..62e8e1820132 100644 --- a/tools/perf/arch/x86/util/archinsn.c +++ b/tools/perf/arch/x86/util/archinsn.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "perf.h" | ||
3 | #include "archinsn.h" | 2 | #include "archinsn.h" |
4 | #include "util/intel-pt-decoder/insn.h" | 3 | #include "util/intel-pt-decoder/insn.h" |
5 | #include "machine.h" | 4 | #include "machine.h" |
diff --git a/tools/perf/arch/x86/util/tsc.c b/tools/perf/arch/x86/util/tsc.c index a6ba45d0db6e..c5197a15119b 100644 --- a/tools/perf/arch/x86/util/tsc.c +++ b/tools/perf/arch/x86/util/tsc.c | |||
@@ -5,7 +5,6 @@ | |||
5 | #include <linux/stddef.h> | 5 | #include <linux/stddef.h> |
6 | #include <linux/perf_event.h> | 6 | #include <linux/perf_event.h> |
7 | 7 | ||
8 | #include "../../../perf.h" | ||
9 | #include <linux/types.h> | 8 | #include <linux/types.h> |
10 | #include <asm/barrier.h> | 9 | #include <asm/barrier.h> |
11 | #include "../../../util/debug.h" | 10 | #include "../../../util/debug.h" |
diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index 513cb2f2fa32..62b8ef4bcb1f 100644 --- a/tools/perf/bench/numa.c +++ b/tools/perf/bench/numa.c | |||
@@ -9,7 +9,6 @@ | |||
9 | /* For the CLR_() macros */ | 9 | /* For the CLR_() macros */ |
10 | #include <pthread.h> | 10 | #include <pthread.h> |
11 | 11 | ||
12 | #include "../perf.h" | ||
13 | #include "../builtin.h" | 12 | #include "../builtin.h" |
14 | #include <subcmd/parse-options.h> | 13 | #include <subcmd/parse-options.h> |
15 | #include "../util/cloexec.h" | 14 | #include "../util/cloexec.h" |
diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c index f9d7641ae833..c63eb9a46346 100644 --- a/tools/perf/bench/sched-messaging.c +++ b/tools/perf/bench/sched-messaging.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * | 10 | * |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "../perf.h" | ||
14 | #include "../util/util.h" | 13 | #include "../util/util.h" |
15 | #include <subcmd/parse-options.h> | 14 | #include <subcmd/parse-options.h> |
16 | #include "../builtin.h" | 15 | #include "../builtin.h" |
diff --git a/tools/perf/bench/sched-pipe.c b/tools/perf/bench/sched-pipe.c index 0591be008f2a..35b07f197d48 100644 --- a/tools/perf/bench/sched-pipe.c +++ b/tools/perf/bench/sched-pipe.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c | 9 | * http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c |
10 | * Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> | 10 | * Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> |
11 | */ | 11 | */ |
12 | #include "../perf.h" | ||
13 | #include "../util/util.h" | 12 | #include "../util/util.h" |
14 | #include <subcmd/parse-options.h> | 13 | #include <subcmd/parse-options.h> |
15 | #include "../builtin.h" | 14 | #include "../builtin.h" |
diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c index b8e7c38ef221..c06fe21c8613 100644 --- a/tools/perf/builtin-bench.c +++ b/tools/perf/builtin-bench.c | |||
@@ -16,7 +16,6 @@ | |||
16 | * futex ... Futex performance | 16 | * futex ... Futex performance |
17 | * epoll ... Event poll performance | 17 | * epoll ... Event poll performance |
18 | */ | 18 | */ |
19 | #include "perf.h" | ||
20 | #include <subcmd/parse-options.h> | 19 | #include <subcmd/parse-options.h> |
21 | #include "builtin.h" | 20 | #include "builtin.h" |
22 | #include "bench/bench.h" | 21 | #include "bench/bench.h" |
diff --git a/tools/perf/builtin-buildid-cache.c b/tools/perf/builtin-buildid-cache.c index 7dde3ef0398f..9e756004ef28 100644 --- a/tools/perf/builtin-buildid-cache.c +++ b/tools/perf/builtin-buildid-cache.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <errno.h> | 14 | #include <errno.h> |
15 | #include <unistd.h> | 15 | #include <unistd.h> |
16 | #include "builtin.h" | 16 | #include "builtin.h" |
17 | #include "perf.h" | ||
18 | #include "namespaces.h" | 17 | #include "namespaces.h" |
19 | #include "util/cache.h" | 18 | #include "util/cache.h" |
20 | #include "util/debug.h" | 19 | #include "util/debug.h" |
diff --git a/tools/perf/builtin-buildid-list.c b/tools/perf/builtin-buildid-list.c index f403e19488b5..72bdc0eba990 100644 --- a/tools/perf/builtin-buildid-list.c +++ b/tools/perf/builtin-buildid-list.c | |||
@@ -1,4 +1,3 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
2 | /* | 1 | /* |
3 | * builtin-buildid-list.c | 2 | * builtin-buildid-list.c |
4 | * | 3 | * |
diff --git a/tools/perf/builtin-config.c b/tools/perf/builtin-config.c index 6c1284c87aaa..edfc8f76f1bd 100644 --- a/tools/perf/builtin-config.c +++ b/tools/perf/builtin-config.c | |||
@@ -7,8 +7,6 @@ | |||
7 | */ | 7 | */ |
8 | #include "builtin.h" | 8 | #include "builtin.h" |
9 | 9 | ||
10 | #include "perf.h" | ||
11 | |||
12 | #include "util/cache.h" | 10 | #include "util/cache.h" |
13 | #include <subcmd/parse-options.h> | 11 | #include <subcmd/parse-options.h> |
14 | #include "util/util.h" | 12 | #include "util/util.h" |
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 565db782c1b9..7374f86833fd 100644 --- a/tools/perf/builtin-ftrace.c +++ b/tools/perf/builtin-ftrace.c | |||
@@ -6,7 +6,6 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "builtin.h" | 8 | #include "builtin.h" |
9 | #include "perf.h" | ||
10 | 9 | ||
11 | #include <errno.h> | 10 | #include <errno.h> |
12 | #include <unistd.h> | 11 | #include <unistd.h> |
diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c index a83af92fb0d1..641d4a3f93c3 100644 --- a/tools/perf/builtin-help.c +++ b/tools/perf/builtin-help.c | |||
@@ -4,7 +4,6 @@ | |||
4 | * | 4 | * |
5 | * Builtin help command | 5 | * Builtin help command |
6 | */ | 6 | */ |
7 | #include "perf.h" | ||
8 | #include "util/config.h" | 7 | #include "util/config.h" |
9 | #include "builtin.h" | 8 | #include "builtin.h" |
10 | #include <subcmd/exec-cmd.h> | 9 | #include <subcmd/exec-cmd.h> |
diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index 040142581d20..ae46de46e826 100644 --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin-inject.c | |||
@@ -8,7 +8,6 @@ | |||
8 | */ | 8 | */ |
9 | #include "builtin.h" | 9 | #include "builtin.h" |
10 | 10 | ||
11 | #include "perf.h" | ||
12 | #include "util/color.h" | 11 | #include "util/color.h" |
13 | #include "util/evlist.h" | 12 | #include "util/evlist.h" |
14 | #include "util/evsel.h" | 13 | #include "util/evsel.h" |
diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index e0312a1c4792..dca0d33c1343 100644 --- a/tools/perf/builtin-list.c +++ b/tools/perf/builtin-list.c | |||
@@ -10,8 +10,6 @@ | |||
10 | */ | 10 | */ |
11 | #include "builtin.h" | 11 | #include "builtin.h" |
12 | 12 | ||
13 | #include "perf.h" | ||
14 | |||
15 | #include "util/parse-events.h" | 13 | #include "util/parse-events.h" |
16 | #include "util/cache.h" | 14 | #include "util/cache.h" |
17 | #include "util/pmu.h" | 15 | #include "util/pmu.h" |
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index 3d0ffd41fb55..f45fd7e9723e 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <stdlib.h> | 16 | #include <stdlib.h> |
17 | #include <string.h> | 17 | #include <string.h> |
18 | 18 | ||
19 | #include "perf.h" | ||
20 | #include "builtin.h" | 19 | #include "builtin.h" |
21 | #include "namespaces.h" | 20 | #include "namespaces.h" |
22 | #include "util/strlist.h" | 21 | #include "util/strlist.h" |
diff --git a/tools/perf/scripts/perl/Perf-Trace-Util/Context.c b/tools/perf/scripts/perl/Perf-Trace-Util/Context.c index ead521dd8d79..25c47d23a130 100644 --- a/tools/perf/scripts/perl/Perf-Trace-Util/Context.c +++ b/tools/perf/scripts/perl/Perf-Trace-Util/Context.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include "EXTERN.h" | 19 | #include "EXTERN.h" |
20 | #include "perl.h" | 20 | #include "perl.h" |
21 | #include "XSUB.h" | 21 | #include "XSUB.h" |
22 | #include "../../../perf.h" | ||
23 | #include "../../../util/trace-event.h" | 22 | #include "../../../util/trace-event.h" |
24 | 23 | ||
25 | #ifndef PERL_UNUSED_VAR | 24 | #ifndef PERL_UNUSED_VAR |
diff --git a/tools/perf/scripts/python/Perf-Trace-Util/Context.c b/tools/perf/scripts/python/Perf-Trace-Util/Context.c index 217568bc29ce..0b7096847991 100644 --- a/tools/perf/scripts/python/Perf-Trace-Util/Context.c +++ b/tools/perf/scripts/python/Perf-Trace-Util/Context.c | |||
@@ -6,7 +6,6 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <Python.h> | 8 | #include <Python.h> |
9 | #include "../../../perf.h" | ||
10 | #include "../../../util/trace-event.h" | 9 | #include "../../../util/trace-event.h" |
11 | 10 | ||
12 | #if PY_MAJOR_VERSION < 3 | 11 | #if PY_MAJOR_VERSION < 3 |
diff --git a/tools/perf/tests/hists_common.c b/tools/perf/tests/hists_common.c index 469958cd7fe0..96ad95d3f338 100644 --- a/tools/perf/tests/hists_common.c +++ b/tools/perf/tests/hists_common.c | |||
@@ -1,6 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include <inttypes.h> | 2 | #include <inttypes.h> |
3 | #include "perf.h" | ||
4 | #include "util/debug.h" | 3 | #include "util/debug.h" |
5 | #include "util/map.h" | 4 | #include "util/map.h" |
6 | #include "util/symbol.h" | 5 | #include "util/symbol.h" |
diff --git a/tools/perf/tests/hists_cumulate.c b/tools/perf/tests/hists_cumulate.c index 1f3de85ae18b..93af420ad2e4 100644 --- a/tools/perf/tests/hists_cumulate.c +++ b/tools/perf/tests/hists_cumulate.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "perf.h" | ||
3 | #include "util/debug.h" | 2 | #include "util/debug.h" |
4 | #include "util/event.h" | 3 | #include "util/event.h" |
5 | #include "util/map.h" | 4 | #include "util/map.h" |
diff --git a/tools/perf/tests/hists_filter.c b/tools/perf/tests/hists_filter.c index a274716fc438..41dede2f40d8 100644 --- a/tools/perf/tests/hists_filter.c +++ b/tools/perf/tests/hists_filter.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "perf.h" | ||
3 | #include "util/debug.h" | 2 | #include "util/debug.h" |
4 | #include "util/map.h" | 3 | #include "util/map.h" |
5 | #include "util/symbol.h" | 4 | #include "util/symbol.h" |
diff --git a/tools/perf/tests/hists_link.c b/tools/perf/tests/hists_link.c index b25383aa2e6e..012fe8ac0b24 100644 --- a/tools/perf/tests/hists_link.c +++ b/tools/perf/tests/hists_link.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "perf.h" | ||
3 | #include "tests.h" | 2 | #include "tests.h" |
4 | #include "debug.h" | 3 | #include "debug.h" |
5 | #include "symbol.h" | 4 | #include "symbol.h" |
diff --git a/tools/perf/tests/hists_output.c b/tools/perf/tests/hists_output.c index 009888adf4b3..07f4ca0704fb 100644 --- a/tools/perf/tests/hists_output.c +++ b/tools/perf/tests/hists_output.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "perf.h" | ||
3 | #include "util/debug.h" | 2 | #include "util/debug.h" |
4 | #include "util/event.h" | 3 | #include "util/event.h" |
5 | #include "util/map.h" | 4 | #include "util/map.h" |
diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c index c797a853d3a0..f93d40b1c203 100644 --- a/tools/perf/ui/browser.c +++ b/tools/perf/ui/browser.c | |||
@@ -2,7 +2,6 @@ | |||
2 | #include "../util/util.h" | 2 | #include "../util/util.h" |
3 | #include "../util/string2.h" | 3 | #include "../util/string2.h" |
4 | #include "../util/config.h" | 4 | #include "../util/config.h" |
5 | #include "../perf.h" | ||
6 | #include "libslang.h" | 5 | #include "libslang.h" |
7 | #include "ui.h" | 6 | #include "ui.h" |
8 | #include "util.h" | 7 | #include "util.h" |
diff --git a/tools/perf/util/bpf-loader.c b/tools/perf/util/bpf-loader.c index 80a828e75cf6..c1a57323e25d 100644 --- a/tools/perf/util/bpf-loader.c +++ b/tools/perf/util/bpf-loader.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/string.h> | 14 | #include <linux/string.h> |
15 | #include <linux/zalloc.h> | 15 | #include <linux/zalloc.h> |
16 | #include <errno.h> | 16 | #include <errno.h> |
17 | #include "perf.h" | ||
18 | #include "debug.h" | 17 | #include "debug.h" |
19 | #include "evlist.h" | 18 | #include "evlist.h" |
20 | #include "bpf-loader.h" | 19 | #include "bpf-loader.h" |
diff --git a/tools/perf/util/bpf-prologue.c b/tools/perf/util/bpf-prologue.c index 77e4891e17b0..09e6c76e1c3b 100644 --- a/tools/perf/util/bpf-prologue.c +++ b/tools/perf/util/bpf-prologue.c | |||
@@ -8,7 +8,6 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <bpf/libbpf.h> | 10 | #include <bpf/libbpf.h> |
11 | #include "perf.h" | ||
12 | #include "debug.h" | 11 | #include "debug.h" |
13 | #include "bpf-loader.h" | 12 | #include "bpf-loader.h" |
14 | #include "bpf-prologue.h" | 13 | #include "bpf-prologue.h" |
diff --git a/tools/perf/util/branch.c b/tools/perf/util/branch.c index a4fce2729e50..02d6d839ff24 100644 --- a/tools/perf/util/branch.c +++ b/tools/perf/util/branch.c | |||
@@ -1,4 +1,3 @@ | |||
1 | #include "perf.h" | ||
2 | #include "util/util.h" | 1 | #include "util/util.h" |
3 | #include "util/debug.h" | 2 | #include "util/debug.h" |
4 | #include "util/branch.h" | 3 | #include "util/branch.h" |
diff --git a/tools/perf/util/cacheline.c b/tools/perf/util/cacheline.c index 9361d3f61f75..e98b5250a517 100644 --- a/tools/perf/util/cacheline.c +++ b/tools/perf/util/cacheline.c | |||
@@ -1,6 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "cacheline.h" | 2 | #include "cacheline.h" |
3 | #include "../perf.h" | ||
4 | #include <unistd.h> | 3 | #include <unistd.h> |
5 | 4 | ||
6 | #ifdef _SC_LEVEL1_DCACHE_LINESIZE | 5 | #ifdef _SC_LEVEL1_DCACHE_LINESIZE |
diff --git a/tools/perf/util/cgroup.c b/tools/perf/util/cgroup.c index f73599f271ff..96a931c6f728 100644 --- a/tools/perf/util/cgroup.c +++ b/tools/perf/util/cgroup.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "../perf.h" | ||
3 | #include <subcmd/parse-options.h> | 2 | #include <subcmd/parse-options.h> |
4 | #include "evsel.h" | 3 | #include "evsel.h" |
5 | #include "cgroup.h" | 4 | #include "cgroup.h" |
diff --git a/tools/perf/util/cpumap.c b/tools/perf/util/cpumap.c index b9301e7e9c76..a22c1114e880 100644 --- a/tools/perf/util/cpumap.c +++ b/tools/perf/util/cpumap.c | |||
@@ -1,6 +1,5 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include <api/fs/fs.h> | 2 | #include <api/fs/fs.h> |
3 | #include "../perf.h" | ||
4 | #include "cpumap.h" | 3 | #include "cpumap.h" |
5 | #include "debug.h" | 4 | #include "debug.h" |
6 | #include "event.h" | 5 | #include "event.h" |
diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c index 3780fe42453b..c822c5943340 100644 --- a/tools/perf/util/debug.c +++ b/tools/perf/util/debug.c | |||
@@ -1,8 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* For general debugging purposes */ | 2 | /* For general debugging purposes */ |
3 | 3 | ||
4 | #include "../perf.h" | ||
5 | |||
6 | #include <inttypes.h> | 4 | #include <inttypes.h> |
7 | #include <string.h> | 5 | #include <string.h> |
8 | #include <stdarg.h> | 6 | #include <stdarg.h> |
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index ef7fc574f701..54169ad335c7 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -1,4 +1,3 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
2 | #include <dirent.h> | 1 | #include <dirent.h> |
3 | #include <errno.h> | 2 | #include <errno.h> |
4 | #include <fcntl.h> | 3 | #include <fcntl.h> |
diff --git a/tools/perf/util/genelf.c b/tools/perf/util/genelf.c index bc32f405b26e..f9f18b8b1df9 100644 --- a/tools/perf/util/genelf.c +++ b/tools/perf/util/genelf.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <dwarf.h> | 23 | #include <dwarf.h> |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | #include "perf.h" | ||
27 | #include "genelf.h" | 26 | #include "genelf.h" |
28 | #include "../util/jitdump.h" | 27 | #include "../util/jitdump.h" |
29 | #include <linux/compiler.h> | 28 | #include <linux/compiler.h> |
diff --git a/tools/perf/util/genelf_debug.c b/tools/perf/util/genelf_debug.c index 995e490c17fa..30e9f618f6cd 100644 --- a/tools/perf/util/genelf_debug.c +++ b/tools/perf/util/genelf_debug.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <err.h> | 24 | #include <err.h> |
25 | #include <dwarf.h> | 25 | #include <dwarf.h> |
26 | 26 | ||
27 | #include "perf.h" | ||
28 | #include "genelf.h" | 27 | #include "genelf.h" |
29 | #include "../util/jitdump.h" | 28 | #include "../util/jitdump.h" |
30 | 29 | ||
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index d252124f926d..20fb06162fd4 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "evsel.h" | 26 | #include "evsel.h" |
27 | #include "header.h" | 27 | #include "header.h" |
28 | #include "memswap.h" | 28 | #include "memswap.h" |
29 | #include "../perf.h" | ||
30 | #include "trace-event.h" | 29 | #include "trace-event.h" |
31 | #include "session.h" | 30 | #include "session.h" |
32 | #include "symbol.h" | 31 | #include "symbol.h" |
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index 825a6a3b03a1..825e3690940d 100644 --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/types.h> | 12 | #include <linux/types.h> |
13 | #include <linux/zalloc.h> | 13 | #include <linux/zalloc.h> |
14 | 14 | ||
15 | #include "../perf.h" | ||
16 | #include "session.h" | 15 | #include "session.h" |
17 | #include "machine.h" | 16 | #include "machine.h" |
18 | #include "memswap.h" | 17 | #include "memswap.h" |
diff --git a/tools/perf/util/parse-branch-options.c b/tools/perf/util/parse-branch-options.c index 4ed20c833d44..1430437b9d51 100644 --- a/tools/perf/util/parse-branch-options.c +++ b/tools/perf/util/parse-branch-options.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "perf.h" | ||
3 | #include "util/debug.h" | 2 | #include "util/debug.h" |
4 | #include <subcmd/parse-options.h> | 3 | #include <subcmd/parse-options.h> |
5 | #include "util/parse-branch-options.h" | 4 | #include "util/parse-branch-options.h" |
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 9101568946d2..5f1ba6820cdd 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <fcntl.h> | 10 | #include <fcntl.h> |
11 | #include <sys/param.h> | 11 | #include <sys/param.h> |
12 | #include "term.h" | 12 | #include "term.h" |
13 | #include "../perf.h" | ||
14 | #include "evlist.h" | 13 | #include "evlist.h" |
15 | #include "evsel.h" | 14 | #include "evsel.h" |
16 | #include <subcmd/parse-options.h> | 15 | #include <subcmd/parse-options.h> |
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index 01ebf10b8bf4..800e82d35230 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include <EXTERN.h> | 34 | #include <EXTERN.h> |
35 | #include <perl.h> | 35 | #include <perl.h> |
36 | 36 | ||
37 | #include "../../perf.h" | ||
38 | #include "../callchain.h" | 37 | #include "../callchain.h" |
39 | #include "../machine.h" | 38 | #include "../machine.h" |
40 | #include "../map.h" | 39 | #include "../map.h" |
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 78c8bc9380bd..abfde356be18 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <linux/compiler.h> | 31 | #include <linux/compiler.h> |
32 | #include <linux/time64.h> | 32 | #include <linux/time64.h> |
33 | 33 | ||
34 | #include "../../perf.h" | ||
35 | #include "../counts.h" | 34 | #include "../counts.h" |
36 | #include "../debug.h" | 35 | #include "../debug.h" |
37 | #include "../callchain.h" | 36 | #include "../callchain.h" |
diff --git a/tools/perf/util/svghelper.c b/tools/perf/util/svghelper.c index fef0f8a40e2f..582f4a69cd48 100644 --- a/tools/perf/util/svghelper.c +++ b/tools/perf/util/svghelper.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <perf/cpumap.h> | 20 | #include <perf/cpumap.h> |
21 | 21 | ||
22 | #include "env.h" | 22 | #include "env.h" |
23 | #include "perf.h" | ||
24 | #include "svghelper.h" | 23 | #include "svghelper.h" |
25 | #include "cpumap.h" | 24 | #include "cpumap.h" |
26 | 25 | ||
diff --git a/tools/perf/util/thread.c b/tools/perf/util/thread.c index dbcb9cfb0f2f..5ba1601e8860 100644 --- a/tools/perf/util/thread.c +++ b/tools/perf/util/thread.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "../perf.h" | ||
3 | #include <errno.h> | 2 | #include <errno.h> |
4 | #include <stdlib.h> | 3 | #include <stdlib.h> |
5 | #include <stdio.h> | 4 | #include <stdio.h> |
diff --git a/tools/perf/util/time-utils.c b/tools/perf/util/time-utils.c index c2abc259b51d..9796a2e43f67 100644 --- a/tools/perf/util/time-utils.c +++ b/tools/perf/util/time-utils.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <math.h> | 10 | #include <math.h> |
11 | #include <linux/ctype.h> | 11 | #include <linux/ctype.h> |
12 | 12 | ||
13 | #include "perf.h" | ||
14 | #include "debug.h" | 13 | #include "debug.h" |
15 | #include "time-utils.h" | 14 | #include "time-utils.h" |
16 | #include "session.h" | 15 | #include "session.h" |
diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c index 2f8a0601a546..d63d542b2cde 100644 --- a/tools/perf/util/trace-event-info.c +++ b/tools/perf/util/trace-event-info.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/kernel.h> | 20 | #include <linux/kernel.h> |
21 | #include <linux/zalloc.h> | 21 | #include <linux/zalloc.h> |
22 | 22 | ||
23 | #include "../perf.h" | ||
24 | #include "trace-event.h" | 23 | #include "trace-event.h" |
25 | #include <api/fs/tracing_path.h> | 24 | #include <api/fs/tracing_path.h> |
26 | #include "evsel.h" | 25 | #include "evsel.h" |
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index b3982e1bb4c5..8e31a63045c3 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
@@ -7,7 +7,6 @@ | |||
7 | #include <string.h> | 7 | #include <string.h> |
8 | #include <errno.h> | 8 | #include <errno.h> |
9 | 9 | ||
10 | #include "../perf.h" | ||
11 | #include "debug.h" | 10 | #include "debug.h" |
12 | #include "trace-event.h" | 11 | #include "trace-event.h" |
13 | 12 | ||
diff --git a/tools/perf/util/trace-event-read.c b/tools/perf/util/trace-event-read.c index 13c1cf60d1bc..b6c0db068be0 100644 --- a/tools/perf/util/trace-event-read.c +++ b/tools/perf/util/trace-event-read.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <unistd.h> | 15 | #include <unistd.h> |
16 | #include <errno.h> | 16 | #include <errno.h> |
17 | 17 | ||
18 | #include "../perf.h" | ||
19 | #include "util.h" | 18 | #include "util.h" |
20 | #include "trace-event.h" | 19 | #include "trace-event.h" |
21 | #include "debug.h" | 20 | #include "debug.h" |
diff --git a/tools/perf/util/trace-event-scripting.c b/tools/perf/util/trace-event-scripting.c index dfd2640c763a..714581b0de65 100644 --- a/tools/perf/util/trace-event-scripting.c +++ b/tools/perf/util/trace-event-scripting.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <string.h> | 10 | #include <string.h> |
11 | #include <errno.h> | 11 | #include <errno.h> |
12 | 12 | ||
13 | #include "../perf.h" | ||
14 | #include "debug.h" | 13 | #include "debug.h" |
15 | #include "trace-event.h" | 14 | #include "trace-event.h" |
16 | #include <linux/zalloc.h> | 15 | #include <linux/zalloc.h> |
diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index 44211e483fbf..607daec22943 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c | |||
@@ -1,5 +1,4 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "../perf.h" | ||
3 | #include "util.h" | 2 | #include "util.h" |
4 | #include "debug.h" | 3 | #include "debug.h" |
5 | #include "namespaces.h" | 4 | #include "namespaces.h" |