Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-51
-1
tools/perf/arch/powerpc/util/perf_regs.c
··· 4 4 #include <regex.h> 5 5 #include <linux/zalloc.h> 6 6 7 - #include "../../perf.h" 8 7 #include "../../util/perf_regs.h" 9 8 #include "../../util/debug.h" 10 9
-1
tools/perf/arch/x86/tests/intel-cqm.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "tests/tests.h" 3 - #include "perf.h" 4 3 #include "cloexec.h" 5 4 #include "debug.h" 6 5 #include "evlist.h"
-1
tools/perf/arch/x86/util/archinsn.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "perf.h" 3 2 #include "archinsn.h" 4 3 #include "util/intel-pt-decoder/insn.h" 5 4 #include "machine.h"
-1
tools/perf/arch/x86/util/tsc.c
··· 5 5 #include <linux/stddef.h> 6 6 #include <linux/perf_event.h> 7 7 8 - #include "../../../perf.h" 9 8 #include <linux/types.h> 10 9 #include <asm/barrier.h> 11 10 #include "../../../util/debug.h"
-1
tools/perf/bench/numa.c
··· 9 9 /* For the CLR_() macros */ 10 10 #include <pthread.h> 11 11 12 - #include "../perf.h" 13 12 #include "../builtin.h" 14 13 #include <subcmd/parse-options.h> 15 14 #include "../util/cloexec.h"
-1
tools/perf/bench/sched-messaging.c
··· 10 10 * 11 11 */ 12 12 13 - #include "../perf.h" 14 13 #include "../util/util.h" 15 14 #include <subcmd/parse-options.h> 16 15 #include "../builtin.h"
-1
tools/perf/bench/sched-pipe.c
··· 9 9 * http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c 10 10 * Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> 11 11 */ 12 - #include "../perf.h" 13 12 #include "../util/util.h" 14 13 #include <subcmd/parse-options.h> 15 14 #include "../builtin.h"
-1
tools/perf/builtin-bench.c
··· 16 16 * futex ... Futex performance 17 17 * epoll ... Event poll performance 18 18 */ 19 - #include "perf.h" 20 19 #include <subcmd/parse-options.h> 21 20 #include "builtin.h" 22 21 #include "bench/bench.h"
-1
tools/perf/builtin-buildid-cache.c
··· 14 14 #include <errno.h> 15 15 #include <unistd.h> 16 16 #include "builtin.h" 17 - #include "perf.h" 18 17 #include "namespaces.h" 19 18 #include "util/cache.h" 20 19 #include "util/debug.h"
-1
tools/perf/builtin-buildid-list.c
··· 1 - // SPDX-License-Identifier: GPL-2.0 2 1 /* 3 2 * builtin-buildid-list.c 4 3 *
-2
tools/perf/builtin-config.c
··· 7 7 */ 8 8 #include "builtin.h" 9 9 10 - #include "perf.h" 11 - 12 10 #include "util/cache.h" 13 11 #include <subcmd/parse-options.h> 14 12 #include "util/util.h"
-1
tools/perf/builtin-ftrace.c
··· 6 6 */ 7 7 8 8 #include "builtin.h" 9 - #include "perf.h" 10 9 11 10 #include <errno.h> 12 11 #include <unistd.h>
-1
tools/perf/builtin-help.c
··· 4 4 * 5 5 * Builtin help command 6 6 */ 7 - #include "perf.h" 8 7 #include "util/config.h" 9 8 #include "builtin.h" 10 9 #include <subcmd/exec-cmd.h>
-1
tools/perf/builtin-inject.c
··· 8 8 */ 9 9 #include "builtin.h" 10 10 11 - #include "perf.h" 12 11 #include "util/color.h" 13 12 #include "util/evlist.h" 14 13 #include "util/evsel.h"
-2
tools/perf/builtin-list.c
··· 10 10 */ 11 11 #include "builtin.h" 12 12 13 - #include "perf.h" 14 - 15 13 #include "util/parse-events.h" 16 14 #include "util/cache.h" 17 15 #include "util/pmu.h"
-1
tools/perf/builtin-probe.c
··· 16 16 #include <stdlib.h> 17 17 #include <string.h> 18 18 19 - #include "perf.h" 20 19 #include "builtin.h" 21 20 #include "namespaces.h" 22 21 #include "util/strlist.h"
-1
tools/perf/scripts/perl/Perf-Trace-Util/Context.c
··· 19 19 #include "EXTERN.h" 20 20 #include "perl.h" 21 21 #include "XSUB.h" 22 - #include "../../../perf.h" 23 22 #include "../../../util/trace-event.h" 24 23 25 24 #ifndef PERL_UNUSED_VAR
-1
tools/perf/scripts/python/Perf-Trace-Util/Context.c
··· 6 6 */ 7 7 8 8 #include <Python.h> 9 - #include "../../../perf.h" 10 9 #include "../../../util/trace-event.h" 11 10 12 11 #if PY_MAJOR_VERSION < 3
-1
tools/perf/tests/hists_common.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include <inttypes.h> 3 - #include "perf.h" 4 3 #include "util/debug.h" 5 4 #include "util/map.h" 6 5 #include "util/symbol.h"
-1
tools/perf/tests/hists_cumulate.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "perf.h" 3 2 #include "util/debug.h" 4 3 #include "util/event.h" 5 4 #include "util/map.h"
-1
tools/perf/tests/hists_filter.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "perf.h" 3 2 #include "util/debug.h" 4 3 #include "util/map.h" 5 4 #include "util/symbol.h"
-1
tools/perf/tests/hists_link.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "perf.h" 3 2 #include "tests.h" 4 3 #include "debug.h" 5 4 #include "symbol.h"
-1
tools/perf/tests/hists_output.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "perf.h" 3 2 #include "util/debug.h" 4 3 #include "util/event.h" 5 4 #include "util/map.h"
-1
tools/perf/ui/browser.c
··· 2 2 #include "../util/util.h" 3 3 #include "../util/string2.h" 4 4 #include "../util/config.h" 5 - #include "../perf.h" 6 5 #include "libslang.h" 7 6 #include "ui.h" 8 7 #include "util.h"
-1
tools/perf/util/bpf-loader.c
··· 14 14 #include <linux/string.h> 15 15 #include <linux/zalloc.h> 16 16 #include <errno.h> 17 - #include "perf.h" 18 17 #include "debug.h" 19 18 #include "evlist.h" 20 19 #include "bpf-loader.h"
-1
tools/perf/util/bpf-prologue.c
··· 8 8 */ 9 9 10 10 #include <bpf/libbpf.h> 11 - #include "perf.h" 12 11 #include "debug.h" 13 12 #include "bpf-loader.h" 14 13 #include "bpf-prologue.h"
-1
tools/perf/util/branch.c
··· 1 - #include "perf.h" 2 1 #include "util/util.h" 3 2 #include "util/debug.h" 4 3 #include "util/branch.h"
-1
tools/perf/util/cacheline.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "cacheline.h" 3 - #include "../perf.h" 4 3 #include <unistd.h> 5 4 6 5 #ifdef _SC_LEVEL1_DCACHE_LINESIZE
-1
tools/perf/util/cgroup.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "../perf.h" 3 2 #include <subcmd/parse-options.h> 4 3 #include "evsel.h" 5 4 #include "cgroup.h"
-1
tools/perf/util/cpumap.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include <api/fs/fs.h> 3 - #include "../perf.h" 4 3 #include "cpumap.h" 5 4 #include "debug.h" 6 5 #include "event.h"
-2
tools/perf/util/debug.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 /* For general debugging purposes */ 3 3 4 - #include "../perf.h" 5 - 6 4 #include <inttypes.h> 7 5 #include <string.h> 8 6 #include <stdarg.h>
-1
tools/perf/util/event.c
··· 1 - // SPDX-License-Identifier: GPL-2.0 2 1 #include <dirent.h> 3 2 #include <errno.h> 4 3 #include <fcntl.h>
-1
tools/perf/util/genelf.c
··· 23 23 #include <dwarf.h> 24 24 #endif 25 25 26 - #include "perf.h" 27 26 #include "genelf.h" 28 27 #include "../util/jitdump.h" 29 28 #include <linux/compiler.h>
-1
tools/perf/util/genelf_debug.c
··· 24 24 #include <err.h> 25 25 #include <dwarf.h> 26 26 27 - #include "perf.h" 28 27 #include "genelf.h" 29 28 #include "../util/jitdump.h" 30 29
-1
tools/perf/util/header.c
··· 26 26 #include "evsel.h" 27 27 #include "header.h" 28 28 #include "memswap.h" 29 - #include "../perf.h" 30 29 #include "trace-event.h" 31 30 #include "session.h" 32 31 #include "symbol.h"
-1
tools/perf/util/intel-pt.c
··· 12 12 #include <linux/types.h> 13 13 #include <linux/zalloc.h> 14 14 15 - #include "../perf.h" 16 15 #include "session.h" 17 16 #include "machine.h" 18 17 #include "memswap.h"
-1
tools/perf/util/parse-branch-options.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "perf.h" 3 2 #include "util/debug.h" 4 3 #include <subcmd/parse-options.h> 5 4 #include "util/parse-branch-options.h"
-1
tools/perf/util/parse-events.c
··· 10 10 #include <fcntl.h> 11 11 #include <sys/param.h> 12 12 #include "term.h" 13 - #include "../perf.h" 14 13 #include "evlist.h" 15 14 #include "evsel.h" 16 15 #include <subcmd/parse-options.h>
-1
tools/perf/util/scripting-engines/trace-event-perl.c
··· 34 34 #include <EXTERN.h> 35 35 #include <perl.h> 36 36 37 - #include "../../perf.h" 38 37 #include "../callchain.h" 39 38 #include "../machine.h" 40 39 #include "../map.h"
-1
tools/perf/util/scripting-engines/trace-event-python.c
··· 31 31 #include <linux/compiler.h> 32 32 #include <linux/time64.h> 33 33 34 - #include "../../perf.h" 35 34 #include "../counts.h" 36 35 #include "../debug.h" 37 36 #include "../callchain.h"
-1
tools/perf/util/svghelper.c
··· 20 20 #include <perf/cpumap.h> 21 21 22 22 #include "env.h" 23 - #include "perf.h" 24 23 #include "svghelper.h" 25 24 #include "cpumap.h" 26 25
-1
tools/perf/util/thread.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "../perf.h" 3 2 #include <errno.h> 4 3 #include <stdlib.h> 5 4 #include <stdio.h>
-1
tools/perf/util/time-utils.c
··· 10 10 #include <math.h> 11 11 #include <linux/ctype.h> 12 12 13 - #include "perf.h" 14 13 #include "debug.h" 15 14 #include "time-utils.h" 16 15 #include "session.h"
-1
tools/perf/util/trace-event-info.c
··· 20 20 #include <linux/kernel.h> 21 21 #include <linux/zalloc.h> 22 22 23 - #include "../perf.h" 24 23 #include "trace-event.h" 25 24 #include <api/fs/tracing_path.h> 26 25 #include "evsel.h"
-1
tools/perf/util/trace-event-parse.c
··· 7 7 #include <string.h> 8 8 #include <errno.h> 9 9 10 - #include "../perf.h" 11 10 #include "debug.h" 12 11 #include "trace-event.h" 13 12
-1
tools/perf/util/trace-event-read.c
··· 15 15 #include <unistd.h> 16 16 #include <errno.h> 17 17 18 - #include "../perf.h" 19 18 #include "util.h" 20 19 #include "trace-event.h" 21 20 #include "debug.h"
-1
tools/perf/util/trace-event-scripting.c
··· 10 10 #include <string.h> 11 11 #include <errno.h> 12 12 13 - #include "../perf.h" 14 13 #include "debug.h" 15 14 #include "trace-event.h" 16 15 #include <linux/zalloc.h>
-1
tools/perf/util/util.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "../perf.h" 3 2 #include "util.h" 4 3 #include "debug.h" 5 4 #include "namespaces.h"