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

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 <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-1s3jel4i26chq2g0lydoz7i3@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+24 -3
+1
tools/perf/arch/arm/util/auxtrace.c
··· 9 9 #include <linux/zalloc.h> 10 10 11 11 #include "../../util/auxtrace.h" 12 + #include "../../util/debug.h" 12 13 #include "../../util/evlist.h" 13 14 #include "../../util/pmu.h" 14 15 #include "cs-etm.h"
+1
tools/perf/arch/arm/util/cs-etm.c
··· 15 15 #include <linux/zalloc.h> 16 16 17 17 #include "cs-etm.h" 18 + #include "../../util/debug.h" 18 19 #include "../../util/record.h" 19 20 #include "../../util/auxtrace.h" 20 21 #include "../../util/cpumap.h"
+1
tools/perf/arch/x86/tests/perf-time-to-tsc.c
··· 9 9 #include <perf/cpumap.h> 10 10 #include <perf/evlist.h> 11 11 12 + #include "debug.h" 12 13 #include "parse-events.h" 13 14 #include "evlist.h" 14 15 #include "evsel.h"
+1
tools/perf/tests/code-reading.c
··· 11 11 #include <perf/cpumap.h> 12 12 #include <perf/evlist.h> 13 13 14 + #include "debug.h" 14 15 #include "parse-events.h" 15 16 #include "evlist.h" 16 17 #include "evsel.h"
+1
tools/perf/tests/keep-tracking.c
··· 5 5 #include <perf/cpumap.h> 6 6 #include <perf/evlist.h> 7 7 8 + #include "debug.h" 8 9 #include "parse-events.h" 9 10 #include "evlist.h" 10 11 #include "evsel.h"
+1
tools/perf/tests/mmap-basic.c
··· 5 5 #include <pthread.h> 6 6 #include <perf/cpumap.h> 7 7 8 + #include "debug.h" 8 9 #include "evlist.h" 9 10 #include "evsel.h" 10 11 #include "thread_map.h"
+2
tools/perf/tests/sw-clock.c
··· 5 5 #include <stdlib.h> 6 6 #include <signal.h> 7 7 #include <sys/mman.h> 8 + #include <linux/string.h> 8 9 9 10 #include "tests.h" 11 + #include "util/debug.h" 10 12 #include "util/evsel.h" 11 13 #include "util/evlist.h" 12 14 #include "util/cpumap.h"
+1
tools/perf/tests/switch-tracking.c
··· 8 8 #include <perf/cpumap.h> 9 9 #include <perf/evlist.h> 10 10 11 + #include "debug.h" 11 12 #include "parse-events.h" 12 13 #include "evlist.h" 13 14 #include "evsel.h"
+1
tools/perf/tests/task-exit.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 + #include "debug.h" 2 3 #include "evlist.h" 3 4 #include "evsel.h" 4 5 #include "target.h"
+1
tools/perf/ui/browsers/annotate.c
··· 4 4 #include "../ui.h" 5 5 #include "../util.h" 6 6 #include "../../util/annotate.h" 7 + #include "../../util/debug.h" 7 8 #include "../../util/hist.h" 8 9 #include "../../util/sort.h" 9 10 #include "../../util/map.h"
+1
tools/perf/ui/browsers/hists.c
··· 11 11 #include <linux/time64.h> 12 12 #include <linux/zalloc.h> 13 13 14 + #include "../../util/debug.h" 14 15 #include "../../util/callchain.h" 15 16 #include "../../util/evsel.h" 16 17 #include "../../util/evlist.h"
+1
tools/perf/ui/hist.c
··· 4 4 #include <linux/compiler.h> 5 5 6 6 #include "../util/callchain.h" 7 + #include "../util/debug.h" 7 8 #include "../util/hist.h" 8 9 #include "../util/util.h" 9 10 #include "../util/sort.h"
+1 -1
tools/perf/util/auxtrace.h
··· 19 19 20 20 #include "event.h" 21 21 #include "session.h" 22 - #include "debug.h" 23 22 24 23 union perf_event; 25 24 struct perf_session; ··· 613 614 } 614 615 615 616 #else 617 + #include "debug.h" 616 618 617 619 static inline struct auxtrace_record * 618 620 auxtrace_record__init(struct evlist *evlist __maybe_unused,
+1
tools/perf/util/config.c
··· 18 18 #include "util/hist.h" /* perf_hist_config */ 19 19 #include "util/llvm-utils.h" /* perf_llvm_config */ 20 20 #include "config.h" 21 + #include "debug.h" 21 22 #include <sys/types.h> 22 23 #include <sys/stat.h> 23 24 #include <unistd.h>
+1
tools/perf/util/hist.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "callchain.h" 3 + #include "debug.h" 3 4 #include "build-id.h" 4 5 #include "hist.h" 5 6 #include "map.h"
+1 -1
tools/perf/util/llvm-utils.h
··· 6 6 #ifndef __LLVM_UTILS_H 7 7 #define __LLVM_UTILS_H 8 8 9 - #include "debug.h" 9 + #include <stdbool.h> 10 10 11 11 struct llvm_param { 12 12 /* Path of clang executable */
+2
tools/perf/util/metricgroup.c
··· 6 6 /* Manage metrics and groups of metrics from JSON files */ 7 7 8 8 #include "metricgroup.h" 9 + #include "debug.h" 9 10 #include "evlist.h" 10 11 #include "evsel.h" 11 12 #include "strbuf.h" ··· 19 18 #include "strlist.h" 20 19 #include <assert.h> 21 20 #include <linux/ctype.h> 21 + #include <linux/string.h> 22 22 #include <linux/zalloc.h> 23 23 #include <subcmd/parse-options.h> 24 24
+1
tools/perf/util/python.c
··· 5 5 #include <poll.h> 6 6 #include <linux/err.h> 7 7 #include <perf/cpumap.h> 8 + #include "debug.h" 8 9 #include "evlist.h" 9 10 #include "callchain.h" 10 11 #include "evsel.h"
+1
tools/perf/util/record.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 + #include "debug.h" 2 3 #include "evlist.h" 3 4 #include "evsel.h" 4 5 #include "cpumap.h"
+1
tools/perf/util/session.c
··· 12 12 #include <sys/mman.h> 13 13 #include <perf/cpumap.h> 14 14 15 + #include "debug.h" 15 16 #include "evlist.h" 16 17 #include "evsel.h" 17 18 #include "memswap.h"
+1
tools/perf/util/sort.c
··· 4 4 #include <regex.h> 5 5 #include <linux/mman.h> 6 6 #include <linux/time64.h> 7 + #include "debug.h" 7 8 #include "sort.h" 8 9 #include "hist.h" 9 10 #include "cacheline.h"
+1
tools/perf/util/stat.c
··· 3 3 #include <inttypes.h> 4 4 #include <math.h> 5 5 #include "counts.h" 6 + #include "debug.h" 6 7 #include "stat.h" 7 8 #include "target.h" 8 9 #include "evlist.h"
-1
tools/perf/util/trigger.h
··· 2 2 #ifndef __TRIGGER_H_ 3 3 #define __TRIGGER_H_ 1 4 4 5 - #include "util/debug.h" 6 5 #include "asm/bug.h" 7 6 8 7 /*