perf tools: Remove perf.h from source files not needing it
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Aug 2019 18:42:40 +0000 (15:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Aug 2019 20:38:32 +0000 (17:38 -0300)
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:
tools/perf/arch/powerpc/util/perf_regs.c
tools/perf/arch/x86/tests/intel-cqm.c
tools/perf/arch/x86/util/archinsn.c
tools/perf/arch/x86/util/tsc.c
tools/perf/bench/numa.c
tools/perf/bench/sched-messaging.c
tools/perf/bench/sched-pipe.c
tools/perf/builtin-bench.c
tools/perf/builtin-buildid-cache.c
tools/perf/builtin-buildid-list.c
tools/perf/builtin-config.c
tools/perf/builtin-ftrace.c
tools/perf/builtin-help.c
tools/perf/builtin-inject.c
tools/perf/builtin-list.c
tools/perf/builtin-probe.c
tools/perf/scripts/perl/Perf-Trace-Util/Context.c
tools/perf/scripts/python/Perf-Trace-Util/Context.c
tools/perf/tests/hists_common.c
tools/perf/tests/hists_cumulate.c
tools/perf/tests/hists_filter.c
tools/perf/tests/hists_link.c
tools/perf/tests/hists_output.c
tools/perf/ui/browser.c
tools/perf/util/bpf-loader.c
tools/perf/util/bpf-prologue.c
tools/perf/util/branch.c
tools/perf/util/cacheline.c
tools/perf/util/cgroup.c
tools/perf/util/cpumap.c
tools/perf/util/debug.c
tools/perf/util/event.c
tools/perf/util/genelf.c
tools/perf/util/genelf_debug.c
tools/perf/util/header.c
tools/perf/util/intel-pt.c
tools/perf/util/parse-branch-options.c
tools/perf/util/parse-events.c
tools/perf/util/scripting-engines/trace-event-perl.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/svghelper.c
tools/perf/util/thread.c
tools/perf/util/time-utils.c
tools/perf/util/trace-event-info.c
tools/perf/util/trace-event-parse.c
tools/perf/util/trace-event-read.c
tools/perf/util/trace-event-scripting.c
tools/perf/util/util.c

index f14102b855098f37296e95d321767f433c97b533..e9c436eeffc9d8f390eb564619283e49897c0adf 100644 (file)
@@ -4,7 +4,6 @@
 #include <regex.h>
 #include <linux/zalloc.h>
 
-#include "../../perf.h"
 #include "../../util/perf_regs.h"
 #include "../../util/debug.h"
 
index 2a105e3b2ad177774be71841945304165781c16e..3b5cc33738213455a1567962c63f192ef701e6ac 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 #include "tests/tests.h"
-#include "perf.h"
 #include "cloexec.h"
 #include "debug.h"
 #include "evlist.h"
index 4237bb2e7fa29f71a609999fcc15037d3fd64b42..62e8e18201327fdfb86e380f8381f8cfe9f80a21 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "perf.h"
 #include "archinsn.h"
 #include "util/intel-pt-decoder/insn.h"
 #include "machine.h"
index a6ba45d0db6ea3e0ffe3a0ccb4c69e4a46b28248..c5197a15119b075fafe144efa49323c62522b238 100644 (file)
@@ -5,7 +5,6 @@
 #include <linux/stddef.h>
 #include <linux/perf_event.h>
 
-#include "../../../perf.h"
 #include <linux/types.h>
 #include <asm/barrier.h>
 #include "../../../util/debug.h"
index 513cb2f2fa32e08e3d4b531b4709d53b28c4b07a..62b8ef4bcb1f18ced6e6515ad678680bbe667a82 100644 (file)
@@ -9,7 +9,6 @@
 /* For the CLR_() macros */
 #include <pthread.h>
 
-#include "../perf.h"
 #include "../builtin.h"
 #include <subcmd/parse-options.h>
 #include "../util/cloexec.h"
index f9d7641ae8338770d67bc238c3b14d3e93e0b6d2..c63eb9a46346a2204284155b64079bf7a70cdf12 100644 (file)
@@ -10,7 +10,6 @@
  *
  */
 
-#include "../perf.h"
 #include "../util/util.h"
 #include <subcmd/parse-options.h>
 #include "../builtin.h"
index 0591be008f2aeba41ba33dcdb71c75f01e0374e6..35b07f197d485b49c6f025d958f6daa804f6f6a3 100644 (file)
@@ -9,7 +9,6 @@
  *  http://people.redhat.com/mingo/cfs-scheduler/tools/pipe-test-1m.c
  * Ported to perf by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
  */
-#include "../perf.h"
 #include "../util/util.h"
 #include <subcmd/parse-options.h>
 #include "../builtin.h"
index b8e7c38ef221898a103549d82078dbd755145ec4..c06fe21c86134423fc1da3dd6bd4091a0f9cd2e5 100644 (file)
@@ -16,7 +16,6 @@
  *  futex ... Futex performance
  *  epoll ... Event poll performance
  */
-#include "perf.h"
 #include <subcmd/parse-options.h>
 #include "builtin.h"
 #include "bench/bench.h"
index 7dde3ef0398f05579b40626547d61b3ab99556c9..9e756004ef28dd773204691e88ddebfbab64e448 100644 (file)
@@ -14,7 +14,6 @@
 #include <errno.h>
 #include <unistd.h>
 #include "builtin.h"
-#include "perf.h"
 #include "namespaces.h"
 #include "util/cache.h"
 #include "util/debug.h"
index f403e19488b5e4c6607ad1c9a5ccd5bfe968bd78..72bdc0eba9904b69160951c1a608895b3d782e6d 100644 (file)
@@ -1,4 +1,3 @@
-// SPDX-License-Identifier: GPL-2.0
 /*
  * builtin-buildid-list.c
  *
index 6c1284c87aaa35cf051c6bf9a20eeedbd982993f..edfc8f76f1bd1214177a0106f1ec499e5e92c795 100644 (file)
@@ -7,8 +7,6 @@
  */
 #include "builtin.h"
 
-#include "perf.h"
-
 #include "util/cache.h"
 #include <subcmd/parse-options.h>
 #include "util/util.h"
index 565db782c1b926ae42228d6668c4bb2929934664..7374f86833fd4934bbd6c9348b3c1d3ebc8ffa8d 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include "builtin.h"
-#include "perf.h"
 
 #include <errno.h>
 #include <unistd.h>
index a83af92fb0d1a753c7c99ad95f8347a0b315e621..641d4a3f93c395b4db4748dd7703a21c75c906ff 100644 (file)
@@ -4,7 +4,6 @@
  *
  * Builtin help command
  */
-#include "perf.h"
 #include "util/config.h"
 #include "builtin.h"
 #include <subcmd/exec-cmd.h>
index 040142581d20492b6961eac67a40a73f1fc3c182..ae46de46e826e1278883fbfca88000ed6703a420 100644 (file)
@@ -8,7 +8,6 @@
  */
 #include "builtin.h"
 
-#include "perf.h"
 #include "util/color.h"
 #include "util/evlist.h"
 #include "util/evsel.h"
index e0312a1c4792ae49d08d7cb0d33d28e2f9d44f15..dca0d33c1343c152aef144a599c113a4d27e0c3f 100644 (file)
@@ -10,8 +10,6 @@
  */
 #include "builtin.h"
 
-#include "perf.h"
-
 #include "util/parse-events.h"
 #include "util/cache.h"
 #include "util/pmu.h"
index 3d0ffd41fb55777c2a0dec7cb9489aaffc794681..f45fd7e9723e3814a117aef2aa665be99efea173 100644 (file)
@@ -16,7 +16,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "perf.h"
 #include "builtin.h"
 #include "namespaces.h"
 #include "util/strlist.h"
index ead521dd8d79f9176247932b596d290bf84ce428..25c47d23a130ce1396f23561459a06755db4af15 100644 (file)
@@ -19,7 +19,6 @@
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
-#include "../../../perf.h"
 #include "../../../util/trace-event.h"
 
 #ifndef PERL_UNUSED_VAR
index 217568bc29ced9673ee9acec199f796082b39d35..0b709684799182102098a7648956f996dd571b12 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include <Python.h>
-#include "../../../perf.h"
 #include "../../../util/trace-event.h"
 
 #if PY_MAJOR_VERSION < 3
index 469958cd7fe0ffea642f68c93d1e3865e57896de..96ad95d3f33869961a21bc6921eda16e1002917f 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <inttypes.h>
-#include "perf.h"
 #include "util/debug.h"
 #include "util/map.h"
 #include "util/symbol.h"
index 1f3de85ae18b52ebce95cda24a80d2dfbf9b90df..93af420ad2e4ee2b2f1a658b45e78b97ce671cbf 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "perf.h"
 #include "util/debug.h"
 #include "util/event.h"
 #include "util/map.h"
index a274716fc4384e19f5fc8482116bc4ee6392ad77..41dede2f40d8b94eabeef0a4355d806853cbb73f 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "perf.h"
 #include "util/debug.h"
 #include "util/map.h"
 #include "util/symbol.h"
index b25383aa2e6e7b10a8f07c226a20b72ed694b611..012fe8ac0b249f53440dc5235fc43a8b4aa4dec3 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "perf.h"
 #include "tests.h"
 #include "debug.h"
 #include "symbol.h"
index 009888adf4b382ce7dd8ed146616e60dc049b4bd..07f4ca0704fbc749990a092457167686b5298486 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "perf.h"
 #include "util/debug.h"
 #include "util/event.h"
 #include "util/map.h"
index c797a853d3a0843b169b64b916517d4ebc02110a..f93d40b1c203aaa54309e3957f6ba019ded6d73f 100644 (file)
@@ -2,7 +2,6 @@
 #include "../util/util.h"
 #include "../util/string2.h"
 #include "../util/config.h"
-#include "../perf.h"
 #include "libslang.h"
 #include "ui.h"
 #include "util.h"
index 80a828e75cf6e55beff649300ca4656a73290e38..c1a57323e25da44c97583da8c301473da6674a51 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/string.h>
 #include <linux/zalloc.h>
 #include <errno.h>
-#include "perf.h"
 #include "debug.h"
 #include "evlist.h"
 #include "bpf-loader.h"
index 77e4891e17b0aa9ef2492d70fe77209a7d28439a..09e6c76e1c3b500c35b8950a7e02e96c303cfeb0 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include <bpf/libbpf.h>
-#include "perf.h"
 #include "debug.h"
 #include "bpf-loader.h"
 #include "bpf-prologue.h"
index a4fce2729e505021472a172f3ac6f9abe2cd9a37..02d6d839ff248ac6f4087d83de32af297675435f 100644 (file)
@@ -1,4 +1,3 @@
-#include "perf.h"
 #include "util/util.h"
 #include "util/debug.h"
 #include "util/branch.h"
index 9361d3f61f750c40692daac464604d53d697cd7e..e98b5250a517d4b60b8f8b1a4e12124a502bb0bb 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 #include "cacheline.h"
-#include "../perf.h"
 #include <unistd.h>
 
 #ifdef _SC_LEVEL1_DCACHE_LINESIZE
index f73599f271ff49953d7403ebdd379c75154e7581..96a931c6f728025f54c6fac9c731f863b02ac2fc 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "../perf.h"
 #include <subcmd/parse-options.h>
 #include "evsel.h"
 #include "cgroup.h"
index b9301e7e9c76bd1ca712a27f7eea6581043ae826..a22c1114e880da0a9ca9f3fd063b7000e5254d56 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 #include <api/fs/fs.h>
-#include "../perf.h"
 #include "cpumap.h"
 #include "debug.h"
 #include "event.h"
index 3780fe42453b7537affd07d1b59e4126500b06fb..c822c5943340771211c5cc0e75346210c1d23a63 100644 (file)
@@ -1,8 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0
 /* For general debugging purposes */
 
-#include "../perf.h"
-
 #include <inttypes.h>
 #include <string.h>
 #include <stdarg.h>
index ef7fc574f7015ea95f354a624033da90b4c6c88f..54169ad335c75547045ab26fdc0305e5b98de2e7 100644 (file)
@@ -1,4 +1,3 @@
-// SPDX-License-Identifier: GPL-2.0
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
index bc32f405b26e3123c73e64f0d7901540c66a9861..f9f18b8b1df9a2e3973aadb6938cb2c20c025b79 100644 (file)
@@ -23,7 +23,6 @@
 #include <dwarf.h>
 #endif
 
-#include "perf.h"
 #include "genelf.h"
 #include "../util/jitdump.h"
 #include <linux/compiler.h>
index 995e490c17fa6c89058bfe2a75cd1fe7d23e572a..30e9f618f6cdf22f04f073becff135aa3f10b822 100644 (file)
@@ -24,7 +24,6 @@
 #include <err.h>
 #include <dwarf.h>
 
-#include "perf.h"
 #include "genelf.h"
 #include "../util/jitdump.h"
 
index d252124f926d3e97194073c3ea4cf4ac73566021..20fb06162fd436a64fca7bf906a2aa686065656f 100644 (file)
@@ -26,7 +26,6 @@
 #include "evsel.h"
 #include "header.h"
 #include "memswap.h"
-#include "../perf.h"
 #include "trace-event.h"
 #include "session.h"
 #include "symbol.h"
index 825a6a3b03a1696b4b63a3593836d2ab912fb64c..825e3690940dfb90d771310eb7adb140dfb819ed 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/types.h>
 #include <linux/zalloc.h>
 
-#include "../perf.h"
 #include "session.h"
 #include "machine.h"
 #include "memswap.h"
index 4ed20c833d44872516bd52c12af46c68358ec05b..1430437b9d51705c41db0ad12421025331b17b96 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "perf.h"
 #include "util/debug.h"
 #include <subcmd/parse-options.h>
 #include "util/parse-branch-options.h"
index 9101568946d25340b59cca15f33fe10b9db6359f..5f1ba6820cdddd591b8ceb2a55100666c603fb37 100644 (file)
@@ -10,7 +10,6 @@
 #include <fcntl.h>
 #include <sys/param.h>
 #include "term.h"
-#include "../perf.h"
 #include "evlist.h"
 #include "evsel.h"
 #include <subcmd/parse-options.h>
index 01ebf10b8bf46bf6474b32466618137b5838522a..800e82d3523030ac44e2dd4510c0458990e23c09 100644 (file)
@@ -34,7 +34,6 @@
 #include <EXTERN.h>
 #include <perl.h>
 
-#include "../../perf.h"
 #include "../callchain.h"
 #include "../machine.h"
 #include "../map.h"
index 78c8bc9380bd1d323decd18d9b18d98a59a960a3..abfde356be18369172ef21a8592dec6be7e26692 100644 (file)
@@ -31,7 +31,6 @@
 #include <linux/compiler.h>
 #include <linux/time64.h>
 
-#include "../../perf.h"
 #include "../counts.h"
 #include "../debug.h"
 #include "../callchain.h"
index fef0f8a40e2f673f35896c0f1116dcd6022a40f3..582f4a69cd48dc3ede8bb99e2fbf8fa3915ef7e4 100644 (file)
@@ -20,7 +20,6 @@
 #include <perf/cpumap.h>
 
 #include "env.h"
-#include "perf.h"
 #include "svghelper.h"
 #include "cpumap.h"
 
index dbcb9cfb0f2f5e912b3509cf9d1b5250f3bd586e..5ba1601e88609473ece0d6cd3d1a128636dba842 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "../perf.h"
 #include <errno.h>
 #include <stdlib.h>
 #include <stdio.h>
index c2abc259b51dc331c4bc673e57614d88f2975347..9796a2e43f67636f8a491fcfb81bd9023446d972 100644 (file)
@@ -10,7 +10,6 @@
 #include <math.h>
 #include <linux/ctype.h>
 
-#include "perf.h"
 #include "debug.h"
 #include "time-utils.h"
 #include "session.h"
index 2f8a0601a546ea6c2c934acf5b5acee262024867..d63d542b2cdeae79fc69abb0f110fbb47ddcc1d6 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/kernel.h>
 #include <linux/zalloc.h>
 
-#include "../perf.h"
 #include "trace-event.h"
 #include <api/fs/tracing_path.h>
 #include "evsel.h"
index b3982e1bb4c55f65c9fe4f105023dba41a408e37..8e31a63045c3d7913619a91a9bbb3a92d84c4dbc 100644 (file)
@@ -7,7 +7,6 @@
 #include <string.h>
 #include <errno.h>
 
-#include "../perf.h"
 #include "debug.h"
 #include "trace-event.h"
 
index 13c1cf60d1bc4e4a55b5112648caad4488f9207e..b6c0db068be0ffb95c4b0b95c322967ba82ea9a1 100644 (file)
@@ -15,7 +15,6 @@
 #include <unistd.h>
 #include <errno.h>
 
-#include "../perf.h"
 #include "util.h"
 #include "trace-event.h"
 #include "debug.h"
index dfd2640c763a67092ac8081f9b030ef53916f815..714581b0de6574a19c91a099f96d2bd7b5e6c40a 100644 (file)
@@ -10,7 +10,6 @@
 #include <string.h>
 #include <errno.h>
 
-#include "../perf.h"
 #include "debug.h"
 #include "trace-event.h"
 #include <linux/zalloc.h>
index 44211e483fbf2ad7622b05f12a4e874b7e4c15be..607daec229432c32af9fd7e26f34e9fcb8c2aa92 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0
-#include "../perf.h"
 #include "util.h"
 #include "debug.h"
 #include "namespaces.h"