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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b22bb139
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#include <libunwind.h> #include <libunwind.h>
#include "perf_regs.h" #include "perf_regs.h"
#include "../../util/unwind.h" #include "../../util/unwind.h"
#include "../../util/debug.h"
#endif #endif
#include "../../util/debug.h"
int LIBUNWIND__ARCH_REG_ID(int regnum) int LIBUNWIND__ARCH_REG_ID(int regnum)
{ {
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
* Copyright (C) 2015 Naveen N. Rao, IBM Corporation * Copyright (C) 2015 Naveen N. Rao, IBM Corporation
*/ */
#include "debug.h"
#include "dso.h" #include "dso.h"
#include "symbol.h" #include "symbol.h"
#include "map.h" #include "map.h"
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "tests.h" #include "tests.h"
#include "debug.h"
#include "util.h" #include "util.h"
#include "c++/clang-c.h" #include "c++/clang-c.h"
#include <linux/kernel.h> #include <linux/kernel.h>
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "util/debug.h"
#include "ui/browser.h" #include "ui/browser.h"
#include "ui/keysyms.h" #include "ui/keysyms.h"
#include "ui/ui.h" #include "ui/ui.h"
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include "gtk.h" #include "gtk.h"
#include "../ui.h" #include "../ui.h"
#include "../helpline.h" #include "../helpline.h"
#include "../../util/debug.h"
static void gtk_helpline_pop(void) static void gtk_helpline_pop(void)
{ {
......
// SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
#include "../util.h" #include "../util.h"
#include "../../util/debug.h"
#include "gtk.h" #include "gtk.h"
#include <stdlib.h> #include <stdlib.h>
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "../util/debug.h"
#include "helpline.h" #include "helpline.h"
#include "ui.h" #include "ui.h"
#include "../util/util.h" #include "../util/util.h"
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/string.h> #include <linux/string.h>
#include "../../util/debug.h"
#include "../helpline.h" #include "../helpline.h"
#include "../ui.h" #include "../ui.h"
#include "../libslang.h" #include "../libslang.h"
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/ttydefaults.h> #include <sys/ttydefaults.h>
#include "../../util/debug.h"
#include "../browser.h" #include "../browser.h"
#include "../keysyms.h" #include "../keysyms.h"
#include "../helpline.h" #include "../helpline.h"
......
#include "util/util.h" #include "util/util.h"
#include "util/debug.h"
#include "util/map_symbol.h" #include "util/map_symbol.h"
#include "util/branch.h" #include "util/branch.h"
#include <linux/kernel.h> #include <linux/kernel.h>
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "debug.h"
#include "symbol.h" #include "symbol.h"
#include "demangle-java.h" #include "demangle-java.h"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#define LIBUNWIND__ARCH_REG_SP PERF_REG_ARM64_SP #define LIBUNWIND__ARCH_REG_SP PERF_REG_ARM64_SP
#include "unwind.h" #include "unwind.h"
#include "debug.h"
#include "libunwind-aarch64.h" #include "libunwind-aarch64.h"
#include <../../../../arch/arm64/include/uapi/asm/perf_regs.h> #include <../../../../arch/arm64/include/uapi/asm/perf_regs.h>
#include "../../arch/arm64/util/unwind-libunwind.c" #include "../../arch/arm64/util/unwind-libunwind.c"
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#define LIBUNWIND__ARCH_REG_SP PERF_REG_X86_SP #define LIBUNWIND__ARCH_REG_SP PERF_REG_X86_SP
#include "unwind.h" #include "unwind.h"
#include "debug.h"
#include "libunwind-x86.h" #include "libunwind-x86.h"
#include <../../../../arch/x86/include/uapi/asm/perf_regs.h> #include <../../../../arch/x86/include/uapi/asm/perf_regs.h>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#include "target.h" #include "target.h"
#include "util.h" #include "util.h"
#include "debug.h"
#include <pwd.h> #include <pwd.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
* Copyright (C) Linus Torvalds, 2005 * Copyright (C) Linus Torvalds, 2005
*/ */
#include "util.h" #include "util.h"
#include "debug.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <linux/compiler.h> #include <linux/compiler.h>
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#include "util/compress.h" #include "util/compress.h"
#include "util/util.h" #include "util/util.h"
#include "util/debug.h"
#define CHUNK_SIZE 16384 #define CHUNK_SIZE 16384
......
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