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

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

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