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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent c1a604df
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include <regex.h> #include <regex.h>
#include <linux/zalloc.h> #include <linux/zalloc.h>
#include "../../perf.h"
#include "../../util/perf_regs.h" #include "../../util/perf_regs.h"
#include "../../util/debug.h" #include "../../util/debug.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "tests/tests.h" #include "tests/tests.h"
#include "perf.h"
#include "cloexec.h" #include "cloexec.h"
#include "debug.h" #include "debug.h"
#include "evlist.h" #include "evlist.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "perf.h"
#include "archinsn.h" #include "archinsn.h"
#include "util/intel-pt-decoder/insn.h" #include "util/intel-pt-decoder/insn.h"
#include "machine.h" #include "machine.h"
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/perf_event.h> #include <linux/perf_event.h>
#include "../../../perf.h"
#include <linux/types.h> #include <linux/types.h>
#include <asm/barrier.h> #include <asm/barrier.h>
#include "../../../util/debug.h" #include "../../../util/debug.h"
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
/* For the CLR_() macros */ /* For the CLR_() macros */
#include <pthread.h> #include <pthread.h>
#include "../perf.h"
#include "../builtin.h" #include "../builtin.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
#include "../util/cloexec.h" #include "../util/cloexec.h"
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
* *
*/ */
#include "../perf.h"
#include "../util/util.h" #include "../util/util.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
#include "../builtin.h" #include "../builtin.h"
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
* http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c * http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c
* Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> * Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
*/ */
#include "../perf.h"
#include "../util/util.h" #include "../util/util.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
#include "../builtin.h" #include "../builtin.h"
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
* futex ... Futex performance * futex ... Futex performance
* epoll ... Event poll performance * epoll ... Event poll performance
*/ */
#include "perf.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
#include "builtin.h" #include "builtin.h"
#include "bench/bench.h" #include "bench/bench.h"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include "builtin.h" #include "builtin.h"
#include "perf.h"
#include "namespaces.h" #include "namespaces.h"
#include "util/cache.h" #include "util/cache.h"
#include "util/debug.h" #include "util/debug.h"
......
// SPDX-License-Identifier: GPL-2.0
/* /*
* builtin-buildid-list.c * builtin-buildid-list.c
* *
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
*/ */
#include "builtin.h" #include "builtin.h"
#include "perf.h"
#include "util/cache.h" #include "util/cache.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
#include "util/util.h" #include "util/util.h"
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
*/ */
#include "builtin.h" #include "builtin.h"
#include "perf.h"
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
* *
* Builtin help command * Builtin help command
*/ */
#include "perf.h"
#include "util/config.h" #include "util/config.h"
#include "builtin.h" #include "builtin.h"
#include <subcmd/exec-cmd.h> #include <subcmd/exec-cmd.h>
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
*/ */
#include "builtin.h" #include "builtin.h"
#include "perf.h"
#include "util/color.h" #include "util/color.h"
#include "util/evlist.h" #include "util/evlist.h"
#include "util/evsel.h" #include "util/evsel.h"
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
*/ */
#include "builtin.h" #include "builtin.h"
#include "perf.h"
#include "util/parse-events.h" #include "util/parse-events.h"
#include "util/cache.h" #include "util/cache.h"
#include "util/pmu.h" #include "util/pmu.h"
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "perf.h"
#include "builtin.h" #include "builtin.h"
#include "namespaces.h" #include "namespaces.h"
#include "util/strlist.h" #include "util/strlist.h"
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "EXTERN.h" #include "EXTERN.h"
#include "perl.h" #include "perl.h"
#include "XSUB.h" #include "XSUB.h"
#include "../../../perf.h"
#include "../../../util/trace-event.h" #include "../../../util/trace-event.h"
#ifndef PERL_UNUSED_VAR #ifndef PERL_UNUSED_VAR
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
*/ */
#include <Python.h> #include <Python.h>
#include "../../../perf.h"
#include "../../../util/trace-event.h" #include "../../../util/trace-event.h"
#if PY_MAJOR_VERSION < 3 #if PY_MAJOR_VERSION < 3
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include <inttypes.h> #include <inttypes.h>
#include "perf.h"
#include "util/debug.h" #include "util/debug.h"
#include "util/map.h" #include "util/map.h"
#include "util/symbol.h" #include "util/symbol.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "perf.h"
#include "util/debug.h" #include "util/debug.h"
#include "util/event.h" #include "util/event.h"
#include "util/map.h" #include "util/map.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "perf.h"
#include "util/debug.h" #include "util/debug.h"
#include "util/map.h" #include "util/map.h"
#include "util/symbol.h" #include "util/symbol.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "perf.h"
#include "tests.h" #include "tests.h"
#include "debug.h" #include "debug.h"
#include "symbol.h" #include "symbol.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "perf.h"
#include "util/debug.h" #include "util/debug.h"
#include "util/event.h" #include "util/event.h"
#include "util/map.h" #include "util/map.h"
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
#include "../util/util.h" #include "../util/util.h"
#include "../util/string2.h" #include "../util/string2.h"
#include "../util/config.h" #include "../util/config.h"
#include "../perf.h"
#include "libslang.h" #include "libslang.h"
#include "ui.h" #include "ui.h"
#include "util.h" #include "util.h"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <linux/string.h> #include <linux/string.h>
#include <linux/zalloc.h> #include <linux/zalloc.h>
#include <errno.h> #include <errno.h>
#include "perf.h"
#include "debug.h" #include "debug.h"
#include "evlist.h" #include "evlist.h"
#include "bpf-loader.h" #include "bpf-loader.h"
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
*/ */
#include <bpf/libbpf.h> #include <bpf/libbpf.h>
#include "perf.h"
#include "debug.h" #include "debug.h"
#include "bpf-loader.h" #include "bpf-loader.h"
#include "bpf-prologue.h" #include "bpf-prologue.h"
......
#include "perf.h"
#include "util/util.h" #include "util/util.h"
#include "util/debug.h" #include "util/debug.h"
#include "util/branch.h" #include "util/branch.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "cacheline.h" #include "cacheline.h"
#include "../perf.h"
#include <unistd.h> #include <unistd.h>
#ifdef _SC_LEVEL1_DCACHE_LINESIZE #ifdef _SC_LEVEL1_DCACHE_LINESIZE
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "../perf.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
#include "evsel.h" #include "evsel.h"
#include "cgroup.h" #include "cgroup.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include <api/fs/fs.h> #include <api/fs/fs.h>
#include "../perf.h"
#include "cpumap.h" #include "cpumap.h"
#include "debug.h" #include "debug.h"
#include "event.h" #include "event.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* For general debugging purposes */ /* For general debugging purposes */
#include "../perf.h"
#include <inttypes.h> #include <inttypes.h>
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
......
// SPDX-License-Identifier: GPL-2.0
#include <dirent.h> #include <dirent.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include <dwarf.h> #include <dwarf.h>
#endif #endif
#include "perf.h"
#include "genelf.h" #include "genelf.h"
#include "../util/jitdump.h" #include "../util/jitdump.h"
#include <linux/compiler.h> #include <linux/compiler.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <err.h> #include <err.h>
#include <dwarf.h> #include <dwarf.h>
#include "perf.h"
#include "genelf.h" #include "genelf.h"
#include "../util/jitdump.h" #include "../util/jitdump.h"
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#include "evsel.h" #include "evsel.h"
#include "header.h" #include "header.h"
#include "memswap.h" #include "memswap.h"
#include "../perf.h"
#include "trace-event.h" #include "trace-event.h"
#include "session.h" #include "session.h"
#include "symbol.h" #include "symbol.h"
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/zalloc.h> #include <linux/zalloc.h>
#include "../perf.h"
#include "session.h" #include "session.h"
#include "machine.h" #include "machine.h"
#include "memswap.h" #include "memswap.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "perf.h"
#include "util/debug.h" #include "util/debug.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
#include "util/parse-branch-options.h" #include "util/parse-branch-options.h"
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <sys/param.h> #include <sys/param.h>
#include "term.h" #include "term.h"
#include "../perf.h"
#include "evlist.h" #include "evlist.h"
#include "evsel.h" #include "evsel.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <EXTERN.h> #include <EXTERN.h>
#include <perl.h> #include <perl.h>
#include "../../perf.h"
#include "../callchain.h" #include "../callchain.h"
#include "../machine.h" #include "../machine.h"
#include "../map.h" #include "../map.h"
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/time64.h> #include <linux/time64.h>
#include "../../perf.h"
#include "../counts.h" #include "../counts.h"
#include "../debug.h" #include "../debug.h"
#include "../callchain.h" #include "../callchain.h"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <perf/cpumap.h> #include <perf/cpumap.h>
#include "env.h" #include "env.h"
#include "perf.h"
#include "svghelper.h" #include "svghelper.h"
#include "cpumap.h" #include "cpumap.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "../perf.h"
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <math.h> #include <math.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#include "perf.h"
#include "debug.h" #include "debug.h"
#include "time-utils.h" #include "time-utils.h"
#include "session.h" #include "session.h"
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/zalloc.h> #include <linux/zalloc.h>
#include "../perf.h"
#include "trace-event.h" #include "trace-event.h"
#include <api/fs/tracing_path.h> #include <api/fs/tracing_path.h>
#include "evsel.h" #include "evsel.h"
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "../perf.h"
#include "debug.h" #include "debug.h"
#include "trace-event.h" #include "trace-event.h"
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include "../perf.h"
#include "util.h" #include "util.h"
#include "trace-event.h" #include "trace-event.h"
#include "debug.h" #include "debug.h"
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include "../perf.h"
#include "debug.h" #include "debug.h"
#include "trace-event.h" #include "trace-event.h"
#include <linux/zalloc.h> #include <linux/zalloc.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "../perf.h"
#include "util.h" #include "util.h"
#include "debug.h" #include "debug.h"
#include "namespaces.h" #include "namespaces.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment