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 places where it is not needed

Pruning a bit more the includes dependency tree. Building this thing on
lots of containers takes time, we better reduce the time per build, each
container is doing 6 builds when clang and clang-devel are available,
and the plan is to do a 'make -C tools/perf build-test' that have many
more.

Also helps when doing normal development, as touching some random file
will have a much reduced chance of triggering lots of rebuilds.

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-r889ur2cxe16m91m2a4pl15p@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+1 -17
+1 -1
tools/perf/arch/arm64/util/unwind-libunwind.c
··· 5 5 #include <libunwind.h> 6 6 #include "perf_regs.h" 7 7 #include "../../util/unwind.h" 8 - #include "../../util/debug.h" 9 8 #endif 9 + #include "../../util/debug.h" 10 10 11 11 int LIBUNWIND__ARCH_REG_ID(int regnum) 12 12 {
-1
tools/perf/arch/powerpc/util/sym-handling.c
··· 4 4 * Copyright (C) 2015 Naveen N. Rao, IBM Corporation 5 5 */ 6 6 7 - #include "debug.h" 8 7 #include "dso.h" 9 8 #include "symbol.h" 10 9 #include "map.h"
-1
tools/perf/tests/clang.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "tests.h" 3 - #include "debug.h" 4 3 #include "util.h" 5 4 #include "c++/clang-c.h" 6 5 #include <linux/kernel.h>
-1
tools/perf/ui/browsers/header.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - #include "util/debug.h" 3 2 #include "ui/browser.h" 4 3 #include "ui/keysyms.h" 5 4 #include "ui/ui.h"
-1
tools/perf/ui/gtk/helpline.c
··· 6 6 #include "gtk.h" 7 7 #include "../ui.h" 8 8 #include "../helpline.h" 9 - #include "../../util/debug.h" 10 9 11 10 static void gtk_helpline_pop(void) 12 11 {
-1
tools/perf/ui/gtk/util.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "../util.h" 3 - #include "../../util/debug.h" 4 3 #include "gtk.h" 5 4 6 5 #include <stdlib.h>
-1
tools/perf/ui/helpline.c
··· 3 3 #include <stdlib.h> 4 4 #include <string.h> 5 5 6 - #include "../util/debug.h" 7 6 #include "helpline.h" 8 7 #include "ui.h" 9 8 #include "../util/util.h"
-1
tools/perf/ui/tui/helpline.c
··· 6 6 #include <linux/kernel.h> 7 7 #include <linux/string.h> 8 8 9 - #include "../../util/debug.h" 10 9 #include "../helpline.h" 11 10 #include "../ui.h" 12 11 #include "../libslang.h"
-1
tools/perf/ui/tui/util.c
··· 5 5 #include <stdlib.h> 6 6 #include <sys/ttydefaults.h> 7 7 8 - #include "../../util/debug.h" 9 8 #include "../browser.h" 10 9 #include "../keysyms.h" 11 10 #include "../helpline.h"
-1
tools/perf/util/branch.c
··· 1 1 #include "util/util.h" 2 - #include "util/debug.h" 3 2 #include "util/map_symbol.h" 4 3 #include "util/branch.h" 5 4 #include <linux/kernel.h>
-1
tools/perf/util/demangle-java.c
··· 3 3 #include <stdio.h> 4 4 #include <stdlib.h> 5 5 #include <string.h> 6 - #include "debug.h" 7 6 #include "symbol.h" 8 7 9 8 #include "demangle-java.h"
-1
tools/perf/util/libunwind/arm64.c
··· 22 22 #define LIBUNWIND__ARCH_REG_SP PERF_REG_ARM64_SP 23 23 24 24 #include "unwind.h" 25 - #include "debug.h" 26 25 #include "libunwind-aarch64.h" 27 26 #include <../../../../arch/arm64/include/uapi/asm/perf_regs.h> 28 27 #include "../../arch/arm64/util/unwind-libunwind.c"
-1
tools/perf/util/libunwind/x86_32.c
··· 22 22 #define LIBUNWIND__ARCH_REG_SP PERF_REG_X86_SP 23 23 24 24 #include "unwind.h" 25 - #include "debug.h" 26 25 #include "libunwind-x86.h" 27 26 #include <../../../../arch/x86/include/uapi/asm/perf_regs.h> 28 27
-1
tools/perf/util/target.c
··· 7 7 8 8 #include "target.h" 9 9 #include "util.h" 10 - #include "debug.h" 11 10 12 11 #include <pwd.h> 13 12 #include <stdio.h>
-1
tools/perf/util/usage.c
··· 8 8 * Copyright (C) Linus Torvalds, 2005 9 9 */ 10 10 #include "util.h" 11 - #include "debug.h" 12 11 #include <stdio.h> 13 12 #include <stdlib.h> 14 13 #include <linux/compiler.h>
-2
tools/perf/util/zlib.c
··· 10 10 11 11 #include "util/compress.h" 12 12 #include "util/util.h" 13 - #include "util/debug.h" 14 - 15 13 16 14 #define CHUNK_SIZE 16384 17 15