perf tools: Remove debug.h from header files not needing it
A message that is not in the archive (sent off-list or not yet received): [email protected]
The following commit has been merged into the perf/core branch of tip:
Commit-ID: b42090256fba05dce1a0482a4ccd9bb6464cc499 Gitweb: https://git.kernel.org/tip/b42090256fba05dce1a0482a4ccd9bb6464cc499 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 29 Aug 2019 15:56:40 -03:00 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitterDate: Thu, 29 Aug 2019 17:38:32 -03:00
perf tools: Remove debug.h from header files not needing it
And fix the fallout, adding it to places that must have it since they use its definitions.
Cc Adrian Hunter <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/arch/arm/util/auxtrace.c | 1 + tools/perf/arch/arm/util/cs-etm.c | 1 + tools/perf/arch/x86/tests/perf-time-to-tsc.c | 1 + tools/perf/tests/code-reading.c | 1 + tools/perf/tests/keep-tracking.c | 1 + tools/perf/tests/mmap-basic.c | 1 + tools/perf/tests/sw-clock.c | 2 ++ tools/perf/tests/switch-tracking.c | 1 + tools/perf/tests/task-exit.c | 1 + tools/perf/ui/browsers/annotate.c | 1 + tools/perf/ui/browsers/hists.c | 1 + tools/perf/ui/hist.c | 1 + tools/perf/util/auxtrace.h | 2 +- tools/perf/util/config.c | 1 + tools/perf/util/hist.c | 1 + tools/perf/util/llvm-utils.h | 2 +- tools/perf/util/metricgroup.c | 2 ++ tools/perf/util/python.c | 1 + tools/perf/util/record.c | 1 + tools/perf/util/session.c | 1 + tools/perf/util/sort.c | 1 + tools/perf/util/stat.c | 1 + tools/perf/util/trigger.h | 1 - 23 files changed, 24 insertions(+), 3 deletions(-)
tools/perf/arch/arm/util/auxtrace.c +1 -0
@@ -9,6 +9,7 @@#include <linux/zalloc.h> #include "../../util/auxtrace.h" +#include "../../util/debug.h" #include "../../util/evlist.h" #include "../../util/pmu.h" #include "cs-etm.h"
tools/perf/arch/arm/util/cs-etm.c +1 -0
@@ -15,6 +15,7 @@#include <linux/zalloc.h> #include "cs-etm.h" +#include "../../util/debug.h" #include "../../util/record.h" #include "../../util/auxtrace.h" #include "../../util/cpumap.h"
tools/perf/arch/x86/tests/perf-time-to-tsc.c +1 -0
@@ -9,6 +9,7 @@#include <perf/cpumap.h> #include <perf/evlist.h> +#include "debug.h" #include "parse-events.h" #include "evlist.h" #include "evsel.h"
tools/perf/tests/code-reading.c +1 -0
@@ -11,6 +11,7 @@#include <perf/cpumap.h> #include <perf/evlist.h> +#include "debug.h" #include "parse-events.h" #include "evlist.h" #include "evsel.h"
tools/perf/tests/keep-tracking.c +1 -0
@@ -5,6 +5,7 @@#include <perf/cpumap.h> #include <perf/evlist.h> +#include "debug.h" #include "parse-events.h" #include "evlist.h" #include "evsel.h"
tools/perf/tests/mmap-basic.c +1 -0
@@ -5,6 +5,7 @@#include <pthread.h> #include <perf/cpumap.h> +#include "debug.h" #include "evlist.h" #include "evsel.h" #include "thread_map.h"
tools/perf/tests/sw-clock.c +2 -0
@@ -5,8 +5,10 @@#include <stdlib.h> #include <signal.h> #include <sys/mman.h> +#include <linux/string.h> #include "tests.h" +#include "util/debug.h" #include "util/evsel.h" #include "util/evlist.h" #include "util/cpumap.h"
tools/perf/tests/switch-tracking.c +1 -0
@@ -8,6 +8,7 @@#include <perf/cpumap.h> #include <perf/evlist.h> +#include "debug.h" #include "parse-events.h" #include "evlist.h" #include "evsel.h"
tools/perf/tests/task-exit.c +1 -0
@@ -1,4 +1,5 @@// SPDX-License-Identifier: GPL-2.0 +#include "debug.h" #include "evlist.h" #include "evsel.h" #include "target.h"
tools/perf/ui/browsers/annotate.c +1 -0
@@ -4,6 +4,7 @@#include "../ui.h" #include "../util.h" #include "../../util/annotate.h" +#include "../../util/debug.h" #include "../../util/hist.h" #include "../../util/sort.h" #include "../../util/map.h"
tools/perf/ui/browsers/hists.c +1 -0
@@ -11,6 +11,7 @@#include <linux/time64.h> #include <linux/zalloc.h> +#include "../../util/debug.h" #include "../../util/callchain.h" #include "../../util/evsel.h" #include "../../util/evlist.h"
tools/perf/ui/hist.c +1 -0
@@ -4,6 +4,7 @@#include <linux/compiler.h> #include "../util/callchain.h" +#include "../util/debug.h" #include "../util/hist.h" #include "../util/util.h" #include "../util/sort.h"
tools/perf/util/auxtrace.h +1 -1
@@ -19,7 +19,6 @@#include "event.h" #include "session.h" -#include "debug.h" union perf_event ;struct perf_session ;
@@ -614,6 +613,7 @@ void itrace_synth_opts__clear_time_range(struct itrace_synth_opts *opts) }#else +#include "debug.h" static inline struct auxtrace_record * auxtrace_record__init(struct evlist *evlist __maybe_unused,
tools/perf/util/config.c +1 -0
@@ -18,6 +18,7 @@#include "util/hist.h" /* perf_hist_config */ #include "util/llvm-utils.h" /* perf_llvm_config */ #include "config.h" +#include "debug.h" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h>
tools/perf/util/hist.c +1 -0
@@ -1,5 +1,6 @@// SPDX-License-Identifier: GPL-2.0 #include "callchain.h" +#include "debug.h" #include "build-id.h" #include "hist.h" #include "map.h"
tools/perf/util/llvm-utils.h +1 -1
@@ -6,7 +6,7 @@#ifndef __LLVM_UTILS_H#define __LLVM_UTILS_H -#include "debug.h" +#include <stdbool.h> struct llvm_param {/* Path of clang executable */
tools/perf/util/metricgroup.c +2 -0
@@ -6,6 +6,7 @@/* Manage metrics and groups of metrics from JSON files */ #include "metricgroup.h" +#include "debug.h" #include "evlist.h" #include "evsel.h" #include "strbuf.h"
@@ -18,6 +19,7 @@#include "strlist.h" #include <assert.h> #include <linux/ctype.h> +#include <linux/string.h> #include <linux/zalloc.h> #include <subcmd/parse-options.h>
tools/perf/util/python.c +1 -0
@@ -5,6 +5,7 @@#include <poll.h> #include <linux/err.h> #include <perf/cpumap.h> +#include "debug.h" #include "evlist.h" #include "callchain.h" #include "evsel.h"
tools/perf/util/record.c +1 -0
@@ -1,4 +1,5 @@// SPDX-License-Identifier: GPL-2.0 +#include "debug.h" #include "evlist.h" #include "evsel.h" #include "cpumap.h"
tools/perf/util/session.c +1 -0
@@ -12,6 +12,7 @@#include <sys/mman.h> #include <perf/cpumap.h> +#include "debug.h" #include "evlist.h" #include "evsel.h" #include "memswap.h"
tools/perf/util/sort.c +1 -0
@@ -4,6 +4,7 @@#include <regex.h> #include <linux/mman.h> #include <linux/time64.h> +#include "debug.h" #include "sort.h" #include "hist.h" #include "cacheline.h"
tools/perf/util/stat.c +1 -0
@@ -3,6 +3,7 @@#include <inttypes.h> #include <math.h> #include "counts.h" +#include "debug.h" #include "stat.h" #include "target.h" #include "evlist.h"
tools/perf/util/trigger.h +0 -1
@@ -2,7 +2,6 @@#ifndef __TRIGGER_H_#define __TRIGGER_H_ 1 -#include "util/debug.h" #include "asm/bug.h" /*