perf debug: Remove needless include directives from debug.h
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: 8520a98dbab61e9e340cdfb72dd17ccc8a98961e Gitweb: https://git.kernel.org/tip/8520a98dbab61e9e340cdfb72dd17ccc8a98961e Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Thu, 29 Aug 2019 16:18:59 -03:00 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitterDate: Sat, 31 Aug 2019 19:10:19 -03:00
perf debug: Remove needless include directives from debug.h
All we need there is a forward declaration for 'union perf_event', so remove it from there and add missing header directives in places using things from this indirect include.
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/cs-etm.c | 1 + tools/perf/arch/common.c | 2 ++ tools/perf/arch/x86/tests/bp-modify.c | 1 + tools/perf/arch/x86/tests/insn-x86.c | 1 + tools/perf/arch/x86/tests/rdpmc.c | 2 ++ tools/perf/arch/x86/util/perf_regs.c | 1 + tools/perf/builtin-c2c.c | 2 ++ tools/perf/builtin-config.c | 1 + tools/perf/builtin-data.c | 2 ++ tools/perf/builtin-diff.c | 1 + tools/perf/builtin-ftrace.c | 3 ++- tools/perf/builtin-help.c | 4 ++++ tools/perf/builtin-kmem.c | 1 + tools/perf/builtin-list.c | 1 + tools/perf/builtin-probe.c | 1 + tools/perf/builtin-record.c | 1 + tools/perf/builtin-report.c | 2 ++ tools/perf/builtin-top.c | 1 + tools/perf/builtin-trace.c | 1 + tools/perf/perf.c | 2 ++ tools/perf/tests/attr.c | 1 + tools/perf/tests/backward-ring-buffer.c | 1 + tools/perf/tests/bp_account.c | 1 + tools/perf/tests/bp_signal.c | 1 + tools/perf/tests/bp_signal_overflow.c | 1 + tools/perf/tests/bpf.c | 1 + tools/perf/tests/event-times.c | 1 + tools/perf/tests/expr.c | 1 + tools/perf/tests/kmod-path.c | 2 ++ tools/perf/tests/mmap-basic.c | 1 + tools/perf/tests/openat-syscall-all-cpus.c | 1 + tools/perf/tests/openat-syscall-tp-fields.c | 1 + tools/perf/tests/openat-syscall.c | 1 + tools/perf/tests/perf-record.c | 1 + tools/perf/tests/sample-parsing.c | 1 + tools/perf/tests/task-exit.c | 1 + tools/perf/tests/thread-map.c | 7 +++++++ tools/perf/tests/unit_number__scnprintf.c | 1 + tools/perf/tests/wp.c | 3 +++ tools/perf/ui/browsers/scripts.c | 1 + tools/perf/ui/gtk/helpline.c | 1 + tools/perf/ui/gtk/util.c | 1 + tools/perf/ui/tui/helpline.c | 1 + tools/perf/ui/util.c | 2 +- tools/perf/util/bpf-prologue.c | 1 + tools/perf/util/branch.c | 1 + tools/perf/util/callchain.c | 1 + tools/perf/util/cloexec.c | 2 ++ tools/perf/util/data.c | 1 + tools/perf/util/debug.c | 1 + tools/perf/util/debug.h | 6 ++---- tools/perf/util/dwarf-aux.c | 1 + tools/perf/util/dwarf-aux.h | 2 ++ tools/perf/util/env.c | 1 + tools/perf/util/evlist.c | 1 + tools/perf/util/expr.y | 2 ++ tools/perf/util/hist.c | 1 + tools/perf/util/intel-pt.c | 1 + tools/perf/util/llvm-utils.c | 1 + tools/perf/util/lzma.c | 1 + tools/perf/util/machine.c | 1 + tools/perf/util/map.c | 1 + tools/perf/util/ordered-events.c | 1 + tools/perf/util/parse-branch-options.c | 2 ++ tools/perf/util/perf-hooks.c | 1 + tools/perf/util/probe-finder.c | 1 + tools/perf/util/pstack.c | 1 + tools/perf/util/sort.c | 1 + tools/perf/util/strbuf.c | 4 ++++ tools/perf/util/symbol.c | 1 + tools/perf/util/target.c | 3 +++ tools/perf/util/thread-stack.c | 1 + tools/perf/util/util.c | 1 + tools/perf/util/values.c | 1 + tools/perf/util/zlib.c | 1 + 75 files changed, 104 insertions(+), 6 deletions(-)
tools/perf/arch/arm/util/cs-etm.c +1 -0
@@ -11,6 +11,7 @@#include <linux/coresight-pmu.h> #include <linux/kernel.h> #include <linux/log2.h> +#include <linux/string.h> #include <linux/types.h> #include <linux/zalloc.h>
tools/perf/arch/common.c +2 -0
@@ -1,6 +1,8 @@// SPDX-License-Identifier: GPL-2.0 +#include <limits.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> #include "common.h" #include "../util/env.h"
tools/perf/arch/x86/tests/bp-modify.c +1 -0
@@ -7,6 +7,7 @@#include <unistd.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <sys/ptrace.h> #include <asm/ptrace.h> #include <errno.h>
tools/perf/arch/x86/tests/insn-x86.c +1 -0
@@ -1,5 +1,6 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> +#include <string.h> #include "debug.h" #include "tests/tests.h"
tools/perf/arch/x86/tests/rdpmc.c +2 -0
@@ -6,11 +6,13 @@#include <sys/mman.h> #include <sys/types.h> #include <sys/wait.h> +#include <linux/string.h> #include <linux/types.h> #include "perf-sys.h" #include "debug.h" #include "tests/tests.h" #include "cloexec.h" +#include "event.h" #include "util.h" #include "arch-tests.h"
tools/perf/arch/x86/util/perf_regs.c +1 -0
@@ -7,6 +7,7 @@#include "../../perf-sys.h" #include "../../util/perf_regs.h" #include "../../util/debug.h" +#include "../../util/event.h" const struct sample_reg sample_reg_masks[] = {SMPL_REG (AX ,PERF_REG_X86_AX ),
tools/perf/builtin-c2c.c +2 -0
@@ -20,6 +20,7 @@#include <sys/param.h> #include "debug.h" #include "builtin.h" +#include <subcmd/pager.h> #include <subcmd/parse-options.h> #include "mem-events.h" #include "session.h"
@@ -35,6 +36,7 @@#include "thread.h" #include "mem2node.h" #include "symbol.h" +#include "ui/ui.h" #include "../perf.h" struct c2c_hists {
tools/perf/builtin-config.c +1 -0
@@ -13,6 +13,7 @@#include "util/debug.h" #include "util/config.h" #include <linux/string.h> +#include <stdio.h> #include <stdlib.h> static bool use_system_config, use_user_config;
tools/perf/builtin-data.c +2 -0
@@ -1,5 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> +#include <stdio.h> +#include <string.h> #include "builtin.h" #include "perf.h" #include "debug.h"
tools/perf/builtin-diff.c +1 -0
@@ -24,6 +24,7 @@#include "util/annotate.h" #include "util/map.h" #include <linux/zalloc.h> +#include <subcmd/pager.h> #include <subcmd/parse-options.h> #include <errno.h>
tools/perf/builtin-ftrace.c +2 -1
@@ -13,8 +13,10 @@#include <fcntl.h> #include <poll.h> #include <linux/capability.h> +#include <linux/string.h> #include "debug.h" +#include <subcmd/pager.h> #include <subcmd/parse-options.h> #include <api/fs/tracing_path.h> #include "evlist.h"
@@ -24,7 +26,6 @@#include "util/cap.h" #include "util/config.h" -#define DEFAULT_TRACER "function_graph"struct perf_ftrace {
tools/perf/builtin-help.c +4 -0
@@ -4,7 +4,9 @@* * Builtin help command */ +#include "util/cache.h" #include "util/config.h" +#include "util/strbuf.h" #include "builtin.h" #include <subcmd/exec-cmd.h> #include "common-cmds.h"
@@ -13,10 +15,12 @@#include <subcmd/help.h> #include "util/debug.h" #include <linux/kernel.h> +#include <linux/string.h> #include <linux/zalloc.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h>
tools/perf/builtin-kmem.c +1 -0
@@ -14,6 +14,7 @@#include "util/callchain.h" #include "util/time-utils.h" +#include <subcmd/pager.h> #include <subcmd/parse-options.h> #include "util/trace-event.h" #include "util/data.h"
tools/perf/builtin-list.c +1 -0
@@ -16,6 +16,7 @@#include "util/debug.h" #include "util/metricgroup.h" #include <subcmd/parse-options.h> +#include <stdio.h> static bool desc_flag = true;static bool details_flag;
tools/perf/builtin-probe.c +1 -0
@@ -26,6 +26,7 @@#include "util/probe-finder.h" #include "util/probe-event.h" #include "util/probe-file.h" +#include <linux/string.h> #include <linux/zalloc.h> #define DEFAULT_VAR_FILTER "!__k???tab_* & !__crc_*"
tools/perf/builtin-record.c +1 -0
@@ -53,6 +53,7 @@#include <signal.h> #include <sys/mman.h> #include <sys/wait.h> +#include <linux/string.h> #include <linux/time64.h> #include <linux/zalloc.h>
tools/perf/builtin-report.c +2 -0
@@ -45,6 +45,7 @@#include "util/units.h" #include "util/branch.h" #include "util/util.h" +#include "ui/ui.h" #include <dlfcn.h> #include <errno.h>
@@ -53,6 +54,7 @@#include <linux/ctype.h> #include <signal.h> #include <linux/bitmap.h> +#include <linux/string.h> #include <linux/stringify.h> #include <linux/time64.h> #include <sys/types.h>
tools/perf/builtin-top.c +1 -0
@@ -45,6 +45,7 @@#include "util/intlist.h" #include "util/parse-branch-options.h" #include "arch/common.h" +#include "ui/ui.h" #include "util/debug.h" #include "util/ordered-events.h"
tools/perf/builtin-trace.c +1 -0
@@ -29,6 +29,7 @@#include "util/event.h" #include "util/evlist.h" #include "util/evswitch.h" +#include <subcmd/pager.h> #include <subcmd/exec-cmd.h> #include "util/machine.h" #include "util/map.h"
tools/perf/perf.c +2 -0
@@ -10,6 +10,7 @@#include "builtin.h" #include "perf.h" +#include "util/cache.h" #include "util/env.h" #include <subcmd/exec-cmd.h> #include "util/config.h"
@@ -32,6 +33,7 @@#include <sys/stat.h> #include <unistd.h> #include <linux/kernel.h> +#include <linux/string.h> #include <linux/zalloc.h> const char perf_usage_string[] =
tools/perf/tests/attr.c +1 -0
@@ -32,6 +32,7 @@#include <unistd.h> #include "../perf-sys.h" #include <subcmd/exec-cmd.h> +#include "event.h" #include "tests.h" #define ENV "PERF_TEST_ATTR"
tools/perf/tests/backward-ring-buffer.c +1 -0
@@ -10,6 +10,7 @@#include "tests.h" #include "debug.h" #include <errno.h> +#include <linux/string.h> #define NR_ITERS 111
tools/perf/tests/bp_account.c +1 -0
@@ -19,6 +19,7 @@#include "tests.h" #include "debug.h" +#include "event.h" #include "../perf-sys.h" #include "cloexec.h"
tools/perf/tests/bp_signal.c +1 -0
@@ -25,6 +25,7 @@#include "tests.h" #include "debug.h" +#include "event.h" #include "perf-sys.h" #include "cloexec.h"
tools/perf/tests/bp_signal_overflow.c +1 -0
@@ -24,6 +24,7 @@#include "tests.h" #include "debug.h" +#include "event.h" #include "../perf-sys.h" #include "cloexec.h"
tools/perf/tests/bpf.c +1 -0
@@ -12,6 +12,7 @@#include <linux/bpf.h> #include <linux/filter.h> #include <linux/kernel.h> +#include <linux/string.h> #include <api/fs/fs.h> #include <bpf/bpf.h> #include "tests.h"
tools/perf/tests/event-times.c +1 -0
@@ -1,5 +1,6 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> +#include <linux/string.h> #include <errno.h> #include <inttypes.h> #include <string.h>
tools/perf/tests/expr.c +1 -0
@@ -3,6 +3,7 @@#include "util/expr.h" #include "tests.h" #include <stdlib.h> +#include <string.h> #include <linux/zalloc.h> static int test (struct parse_ctx *ctx,const char *e,double val2)
tools/perf/tests/kmod-path.c +2 -0
@@ -1,9 +1,11 @@// SPDX-License-Identifier: GPL-2.0 #include <stdbool.h> #include <stdlib.h> +#include <string.h> #include "tests.h" #include "dso.h" #include "debug.h" +#include "event.h" static int test (const char *path,bool alloc_name,bool kmod,int comp,const char *name)
tools/perf/tests/mmap-basic.c +1 -0
@@ -13,6 +13,7 @@#include "tests.h" #include <linux/err.h> #include <linux/kernel.h> +#include <linux/string.h> #include <perf/evlist.h> /*
tools/perf/tests/openat-syscall-all-cpus.c +1 -0
@@ -9,6 +9,7 @@#include <fcntl.h> #include <api/fs/fs.h> #include <linux/err.h> +#include <linux/string.h> #include <api/fs/tracing_path.h> #include "evsel.h" #include "tests.h"
tools/perf/tests/openat-syscall-tp-fields.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <stdbool.h> #include <linux/err.h> +#include <linux/string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h>
tools/perf/tests/openat-syscall.c +1 -0
@@ -3,6 +3,7 @@#include <inttypes.h> #include <api/fs/tracing_path.h> #include <linux/err.h> +#include <linux/string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h>
tools/perf/tests/perf-record.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <errno.h> #include <inttypes.h> +#include <linux/string.h> /* For the CLR_() macros */ #include <pthread.h>
tools/perf/tests/sample-parsing.c +1 -0
@@ -2,6 +2,7 @@#include <stdbool.h> #include <inttypes.h> #include <stdlib.h> +#include <string.h> #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/types.h>
tools/perf/tests/task-exit.c +1 -0
@@ -9,6 +9,7 @@#include <errno.h> #include <signal.h> +#include <linux/string.h> #include <perf/evlist.h> static int exited;
tools/perf/tests/thread-map.c +7 -0
@@ -1,12 +1,19 @@// SPDX-License-Identifier: GPL-2.0 #include <stdlib.h> +#include <string.h> #include <sys/types.h> #include <unistd.h> #include <sys/prctl.h> #include "tests.h" #include "thread_map.h" #include "debug.h" +#include "event.h" #include <linux/zalloc.h> +#include <perf/event.h> + +struct perf_sample ; +struct perf_tool ; +struct machine ;#define NAME (const char *) "perf"#define NAMEUL (unsigned long) NAME
tools/perf/tests/unit_number__scnprintf.c +1 -0
@@ -2,6 +2,7 @@#include <inttypes.h> #include <linux/compiler.h> #include <linux/types.h> +#include <string.h> #include "tests.h" #include "units.h" #include "debug.h"
tools/perf/tests/wp.c +3 -0
@@ -1,10 +1,13 @@// SPDX-License-Identifier: GPL-2.0 #include <stdlib.h> +#include <string.h> #include <unistd.h> #include <sys/ioctl.h> #include <linux/hw_breakpoint.h> +#include <linux/kernel.h> #include "tests.h" #include "debug.h" +#include "event.h" #include "cloexec.h" #include "../perf-sys.h"
tools/perf/ui/browsers/scripts.c +1 -0
@@ -9,6 +9,7 @@#include "../browser.h" #include "../libslang.h" #include "config.h" +#include <linux/string.h> #include <linux/zalloc.h> #define SCRIPT_NAMELEN 128
tools/perf/ui/gtk/helpline.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <stdio.h> #include <string.h> +#include <linux/kernel.h> #include "gtk.h" #include "../ui.h"
tools/perf/ui/gtk/util.c +1 -0
@@ -3,6 +3,7 @@#include "../../util/debug.h" #include "gtk.h" +#include <stdlib.h> #include <string.h> #include <linux/zalloc.h>
tools/perf/ui/tui/helpline.c +1 -0
@@ -3,6 +3,7 @@#include <stdlib.h> #include <string.h> #include <pthread.h> +#include <linux/kernel.h> #include "../../util/debug.h" #include "../helpline.h"
tools/perf/ui/util.c +1 -1
@@ -1,7 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include "util.h" #include "../util/debug.h" - +#include <stdio.h> /* * Default error logging functions
tools/perf/util/bpf-prologue.c +1 -0
@@ -13,6 +13,7 @@#include "bpf-prologue.h" #include "probe-finder.h" #include <errno.h> +#include <stdlib.h> #include <dwarf-regs.h> #include <linux/filter.h>
tools/perf/util/branch.c +1 -0
@@ -1,6 +1,7 @@#include "util/util.h" #include "util/debug.h" #include "util/branch.h" +#include <linux/kernel.h> static bool cross_area (u64 addr1,u64 addr2,int size) {
tools/perf/util/callchain.c +1 -0
@@ -16,6 +16,7 @@#include <stdbool.h> #include <errno.h> #include <math.h> +#include <linux/string.h> #include <linux/zalloc.h> #include "asm/bug.h"
tools/perf/util/cloexec.c +2 -0
@@ -4,10 +4,12 @@#include "util.h" #include "../perf-sys.h" #include "cloexec.h" +#include "event.h" #include "asm/bug.h" #include "debug.h" #include <unistd.h> #include <sys/syscall.h> +#include <linux/string.h> static unsigned long flag =PERF_FLAG_FD_CLOEXEC ;
tools/perf/util/data.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/compiler.h> #include <linux/kernel.h> +#include <linux/string.h> #include <linux/zalloc.h> #include <sys/types.h> #include <sys/stat.h>
tools/perf/util/debug.c +1 -0
@@ -19,6 +19,7 @@#include "print_binary.h" #include "util.h" #include "target.h" +#include "ui/helpline.h" #include <linux/ctype.h>
tools/perf/util/debug.h +2 -4
@@ -4,11 +4,7 @@#define __PERF_DEBUG_H#include <stdbool.h> -#include <string.h> #include <linux/compiler.h> -#include "event.h" -#include "../ui/helpline.h" -#include "../ui/progress.h" #include "../ui/util.h" extern int verbose;
@@ -42,6 +38,8 @@ extern int debug_data_convert;#define STRERR_BUFSIZE 128/* For the buffer size of str_error_r */ +union perf_event ; + int dump_printf(const char *fmt, ...) __printf(1, 2);void trace_event (union perf_event *event);
tools/perf/util/dwarf-aux.c +1 -0
@@ -9,6 +9,7 @@#include <stdlib.h> #include "debug.h" #include "dwarf-aux.h" +#include "strbuf.h" #include "string2.h" /**
tools/perf/util/dwarf-aux.h +2 -0
@@ -10,6 +10,8 @@#include <elfutils/libdwfl.h> #include <elfutils/version.h> +struct strbuf ; +/* Find the realpath of the target file */ const char *cu_find_realpath (Dwarf_Die *cu_die,const char *fname);
tools/perf/util/env.c +1 -0
@@ -9,6 +9,7 @@#include <sys/utsname.h> #include <bpf/libbpf.h> #include <stdlib.h> +#include <string.h> struct perf_env perf_env;
tools/perf/util/evlist.c +1 -0
@@ -35,6 +35,7 @@#include <linux/hash.h> #include <linux/log2.h> #include <linux/err.h> +#include <linux/string.h> #include <linux/zalloc.h> #include <perf/evlist.h> #include <perf/evsel.h>
tools/perf/util/expr.y +2 -0
@@ -2,9 +2,11 @@ %{ #include "util.h" #include "util/debug.h" +#include <stdlib.h> // strtod() #define IN_EXPR_Y 1 #include "expr.h" #include "smt.h" +#include <assert.h> #include <string.h> #define MAXIDLEN 256
tools/perf/util/hist.c +1 -0
@@ -19,6 +19,7 @@#include <math.h> #include <inttypes.h> #include <sys/param.h> +#include <linux/string.h> #include <linux/time64.h> #include <linux/zalloc.h>
tools/perf/util/intel-pt.c +1 -0
@@ -9,6 +9,7 @@#include <stdbool.h> #include <errno.h> #include <linux/kernel.h> +#include <linux/string.h> #include <linux/types.h> #include <linux/zalloc.h>
tools/perf/util/llvm-utils.c +1 -0
@@ -9,6 +9,7 @@#include <stdio.h> #include <stdlib.h> #include <linux/err.h> +#include <linux/string.h> #include <linux/zalloc.h> #include "debug.h" #include "llvm-utils.h"
tools/perf/util/lzma.c +1 -0
@@ -9,6 +9,7 @@#include "compress.h" #include "util.h" #include "debug.h" +#include <string.h> #include <unistd.h> #define BUFSIZE 8192
tools/perf/util/machine.c +1 -0
@@ -30,6 +30,7 @@#include <linux/ctype.h> #include <symbol/kallsyms.h> #include <linux/mman.h> +#include <linux/string.h> #include <linux/zalloc.h> static void __machine__remove_thread (struct machine *machine,struct thread *th,bool lock);
tools/perf/util/map.c +1 -0
@@ -20,6 +20,7 @@#include "namespaces.h" #include "unwind.h" #include "srccode.h" +#include "ui/ui.h" static void __maps__insert (struct maps *maps,struct map *map);static void __maps__insert_name (struct maps *maps,struct map *map);
tools/perf/util/ordered-events.c +1 -0
@@ -8,6 +8,7 @@#include "session.h" #include "asm/bug.h" #include "debug.h" +#include "ui/progress.h" #define pr_N (n, fmt, ...) \ eprintf(n, debug_ordered_events, fmt, ##__VA_ARGS__)
tools/perf/util/parse-branch-options.c +2 -0
@@ -1,8 +1,10 @@// SPDX-License-Identifier: GPL-2.0 #include "util/debug.h" +#include "util/event.h" #include <subcmd/parse-options.h> #include "util/parse-branch-options.h" #include <stdlib.h> +#include <string.h> #define BRANCH_OPT (n, m) \ { .name = n, .mode = (m) }
tools/perf/util/perf-hooks.c +1 -0
@@ -8,6 +8,7 @@#include <errno.h> #include <stdlib.h> +#include <string.h> #include <setjmp.h> #include <linux/err.h> #include <linux/kernel.h>
tools/perf/util/probe-finder.c +1 -0
@@ -24,6 +24,7 @@#include "dso.h" #include "debug.h" #include "intlist.h" +#include "strbuf.h" #include "strlist.h" #include "symbol.h" #include "probe-finder.h"
tools/perf/util/pstack.c +1 -0
@@ -10,6 +10,7 @@#include <linux/kernel.h> #include <linux/zalloc.h> #include <stdlib.h> +#include <string.h> struct pstack {unsigned short top;
tools/perf/util/sort.c +1 -0
@@ -22,6 +22,7 @@#include "annotate.h" #include "time-utils.h" #include <linux/kernel.h> +#include <linux/string.h> regex_t parent_regex;const char default_parent_pattern[] ="^sys_|^do_page_fault" ;
tools/perf/util/strbuf.c +4 -0
@@ -1,8 +1,12 @@// SPDX-License-Identifier: GPL-2.0 +#include "cache.h" #include "debug.h" +#include "strbuf.h" #include <linux/kernel.h> +#include <linux/string.h> #include <linux/zalloc.h> #include <errno.h> +#include <stdio.h> #include <stdlib.h> #include <unistd.h>
tools/perf/util/symbol.c +1 -0
@@ -7,6 +7,7 @@#include <linux/capability.h> #include <linux/kernel.h> #include <linux/mman.h> +#include <linux/string.h> #include <linux/time64.h> #include <sys/types.h> #include <sys/stat.h>
tools/perf/util/target.c +3 -0
@@ -10,8 +10,11 @@#include "debug.h" #include <pwd.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> +#include <linux/kernel.h> +#include <linux/string.h> enum target_errno target__validate (struct target *target) {
tools/perf/util/thread-stack.c +1 -0
@@ -10,6 +10,7 @@#include <linux/zalloc.h> #include <errno.h> #include <stdlib.h> +#include <string.h> #include "thread.h" #include "event.h" #include "machine.h"
tools/perf/util/util.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include "util.h" #include "debug.h" +#include "event.h" #include "namespaces.h" #include <api/fs/fs.h> #include <sys/mman.h>
tools/perf/util/values.c +1 -0
@@ -2,6 +2,7 @@#include <inttypes.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <errno.h> #include <linux/zalloc.h>
tools/perf/util/zlib.c +1 -0
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <fcntl.h> #include <stdio.h> +#include <string.h> #include <unistd.h> #include <sys/stat.h> #include <sys/mman.h>