perf tools: Include errno.h where needed
Subsystems (2)
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: a43783aeec5fac8ef372ff8c0a5bbb3056fc0604 Gitweb: http://git.kernel.org/tip/a43783aeec5fac8ef372ff8c0a5bbb3056fc0604 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 18 Apr 2017 10:46:11 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 19 Apr 2017 13:01:51 -0300
perf tools: Include errno.h where needed
Removing it from util.h, part of an effort to disentangle the includes hell, that makes changes to util.h or something included by it to cause a complete rebuild of the tools.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/arch/arm64/util/dwarf-regs.c | 1 + tools/perf/arch/powerpc/util/kvm-stat.c | 1 + tools/perf/arch/powerpc/util/perf_regs.c | 1 + tools/perf/arch/s390/util/kvm-stat.c | 1 + tools/perf/arch/x86/tests/intel-cqm.c | 1 + tools/perf/arch/x86/tests/perf-time-to-tsc.c | 1 + tools/perf/arch/x86/util/auxtrace.c | 1 + tools/perf/arch/x86/util/intel-bts.c | 1 + tools/perf/arch/x86/util/intel-pt.c | 1 + tools/perf/arch/x86/util/kvm-stat.c | 1 + tools/perf/arch/x86/util/perf_regs.c | 1 + tools/perf/builtin-annotate.c | 1 + tools/perf/builtin-buildid-cache.c | 1 + tools/perf/builtin-buildid-list.c | 1 + tools/perf/builtin-c2c.c | 1 + tools/perf/builtin-diff.c | 1 + tools/perf/builtin-ftrace.c | 1 + tools/perf/builtin-help.c | 1 + tools/perf/builtin-inject.c | 1 + tools/perf/builtin-kmem.c | 1 + tools/perf/builtin-kvm.c | 1 + tools/perf/builtin-lock.c | 1 + tools/perf/builtin-record.c | 1 + tools/perf/builtin-report.c | 1 + tools/perf/builtin-sched.c | 1 + tools/perf/builtin-script.c | 1 + tools/perf/builtin-stat.c | 1 + tools/perf/builtin-timechart.c | 1 + tools/perf/builtin-trace.c | 1 + tools/perf/perf.c | 1 + tools/perf/tests/attr.c | 1 + tools/perf/tests/backward-ring-buffer.c | 1 + tools/perf/tests/bpf.c | 1 + tools/perf/tests/builtin-test.c | 1 + tools/perf/tests/code-reading.c | 1 + tools/perf/tests/event-times.c | 1 + tools/perf/tests/evsel-roundtrip-name.c | 1 + tools/perf/tests/hists_link.c | 1 + 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/parse-events.c | 1 + tools/perf/tests/perf-record.c | 1 + tools/perf/tests/pmu.c | 1 + tools/perf/tests/sdt.c | 1 + tools/perf/tests/sw-clock.c | 1 + tools/perf/tests/switch-tracking.c | 1 + tools/perf/tests/task-exit.c | 1 + tools/perf/ui/browsers/hists.c | 1 + tools/perf/util/annotate.c | 1 + tools/perf/util/auxtrace.h | 1 + tools/perf/util/bpf-loader.c | 1 + tools/perf/util/bpf-loader.h | 2 ++ tools/perf/util/bpf-prologue.c | 1 + tools/perf/util/bpf-prologue.h | 2 ++ tools/perf/util/build-id.c | 1 + tools/perf/util/c++/clang-c.h | 1 + tools/perf/util/cloexec.c | 1 + tools/perf/util/comm.c | 1 + tools/perf/util/config.c | 1 + tools/perf/util/counts.c | 1 + tools/perf/util/data-convert-bt.c | 1 + tools/perf/util/data.c | 1 + tools/perf/util/drv_configs.c | 1 + tools/perf/util/dso.c | 1 + tools/perf/util/dwarf-aux.c | 1 + tools/perf/util/env.c | 1 + tools/perf/util/event.c | 1 + tools/perf/util/evlist.c | 1 + tools/perf/util/evsel.c | 1 + tools/perf/util/header.c | 1 + tools/perf/util/hist.c | 1 + tools/perf/util/intel-bts.c | 1 + tools/perf/util/jitdump.c | 1 + tools/perf/util/lzma.c | 1 + tools/perf/util/machine.c | 1 + tools/perf/util/ordered-events.c | 1 + tools/perf/util/parse-events.c | 1 + tools/perf/util/pmu.c | 1 + tools/perf/util/probe-file.c | 1 + tools/perf/util/quote.c | 1 + tools/perf/util/record.c | 1 + tools/perf/util/session.c | 1 + tools/perf/util/sort.c | 1 + tools/perf/util/stat.c | 1 + tools/perf/util/strbuf.c | 1 + tools/perf/util/strfilter.c | 1 + tools/perf/util/symbol-minimal.c | 1 + tools/perf/util/thread-stack.c | 1 + tools/perf/util/thread.c | 1 + tools/perf/util/thread_map.c | 1 + tools/perf/util/unwind-libunwind-local.c | 1 + tools/perf/util/util.h | 1 - tools/perf/util/vdso.c | 2 +- 95 files changed, 96 insertions(+), 2 deletions(-)
tools/perf/arch/arm64/util/dwarf-regs.c +1 -0
@@ -8,6 +8,7 @@* published by the Free Software Foundation. */ +#include <errno.h> #include <stddef.h> #include <dwarf-regs.h> #include <linux/ptrace.h> /* for struct user_pt_regs */
tools/perf/arch/powerpc/util/kvm-stat.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include "util/kvm-stat.h" #include "util/parse-events.h" #include "util/debug.h"
tools/perf/arch/powerpc/util/perf_regs.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <string.h> #include <regex.h>
tools/perf/arch/s390/util/kvm-stat.c +1 -0
@@ -9,6 +9,7 @@* as published by the Free Software Foundation. */ +#include <errno.h> #include "../../util/kvm-stat.h" #include <asm/sie.h>
tools/perf/arch/x86/tests/intel-cqm.c +1 -0
@@ -7,6 +7,7 @@#include "arch-tests.h" #include <sys/mman.h> +#include <errno.h> #include <string.h> static pid_t spawn (void )
tools/perf/arch/x86/tests/perf-time-to-tsc.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <stdio.h> #include <unistd.h>
tools/perf/arch/x86/util/auxtrace.c +1 -0
@@ -13,6 +13,7 @@* */ +#include <errno.h> #include <stdbool.h> #include "../../util/header.h"
tools/perf/arch/x86/util/intel-bts.c +1 -0
@@ -13,6 +13,7 @@* */ +#include <errno.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/bitops.h>
tools/perf/arch/x86/util/intel-pt.c +1 -0
@@ -13,6 +13,7 @@* */ +#include <errno.h> #include <stdbool.h> #include <linux/kernel.h> #include <linux/types.h>
tools/perf/arch/x86/util/kvm-stat.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include "../../util/kvm-stat.h" #include <asm/svm.h> #include <asm/vmx.h>
tools/perf/arch/x86/util/perf_regs.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <string.h> #include <regex.h>
tools/perf/builtin-annotate.c +1 -0
@@ -33,6 +33,7 @@#include "util/block-range.h" #include <dlfcn.h> +#include <errno.h> #include <linux/bitmap.h> struct perf_annotate {
tools/perf/builtin-buildid-cache.c +1 -0
@@ -10,6 +10,7 @@#include <sys/time.h> #include <time.h> #include <dirent.h> +#include <errno.h> #include <unistd.h> #include "builtin.h" #include "perf.h"
tools/perf/builtin-buildid-list.c +1 -0
@@ -16,6 +16,7 @@#include "util/session.h" #include "util/symbol.h" #include "util/data.h" +#include <errno.h> static int sysfs__fprintf_build_id (FILE *fp) {
tools/perf/builtin-c2c.c +1 -0
@@ -9,6 +9,7 @@* Dick Fowles <[email protected]> * Joe Mario <[email protected]> */ +#include <errno.h> #include <inttypes.h> #include <linux/compiler.h> #include <linux/kernel.h>
tools/perf/builtin-diff.c +1 -0
@@ -19,6 +19,7 @@#include "util/data.h" #include "util/config.h" +#include <errno.h> #include <inttypes.h> #include <stdlib.h> #include <math.h>
tools/perf/builtin-ftrace.c +1 -0
@@ -9,6 +9,7 @@#include "builtin.h" #include "perf.h" +#include <errno.h> #include <unistd.h> #include <signal.h> #include <fcntl.h>
tools/perf/builtin-help.c +1 -0
@@ -13,6 +13,7 @@#include <subcmd/help.h> #include "util/debug.h" #include <linux/kernel.h> +#include <errno.h> static struct man_viewer_list { struct man_viewer_list *next;
tools/perf/builtin-inject.c +1 -0
@@ -22,6 +22,7 @@#include <subcmd/parse-options.h> #include <linux/list.h> +#include <errno.h> struct perf_inject {struct perf_tool tool;
tools/perf/builtin-kmem.c +1 -0
@@ -23,6 +23,7 @@#include <linux/kernel.h> #include <linux/rbtree.h> #include <linux/string.h> +#include <errno.h> #include <inttypes.h> #include <locale.h> #include <regex.h>
tools/perf/builtin-kvm.c +1 -0
@@ -26,6 +26,7 @@#include <linux/kernel.h> #include <linux/time64.h> +#include <errno.h> #include <inttypes.h> #include <termios.h> #include <semaphore.h>
tools/perf/builtin-lock.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include "builtin.h" #include "perf.h"
tools/perf/builtin-record.c +1 -0
@@ -40,6 +40,7 @@#include "util/perf-hooks.h" #include "asm/bug.h" +#include <errno.h> #include <inttypes.h> #include <unistd.h> #include <sched.h>
tools/perf/builtin-report.c +1 -0
@@ -40,6 +40,7 @@#include "util/auxtrace.h" #include <dlfcn.h> +#include <errno.h> #include <inttypes.h> #include <linux/bitmap.h> #include <linux/stringify.h>
tools/perf/builtin-sched.c +1 -0
@@ -28,6 +28,7 @@#include <sys/resource.h> #include <inttypes.h> +#include <errno.h> #include <semaphore.h> #include <pthread.h> #include <math.h>
tools/perf/builtin-script.c +1 -0
@@ -32,6 +32,7 @@#include "asm/bug.h" #include "util/mem-events.h" #include "util/dump-insn.h" +#include <errno.h> #include <inttypes.h> #include "sane_ctype.h"
tools/perf/builtin-stat.c +1 -0
@@ -69,6 +69,7 @@#include <linux/time64.h> #include <api/fs/fs.h> +#include <errno.h> #include <stdlib.h> #include <sys/prctl.h> #include <inttypes.h>
tools/perf/builtin-timechart.c +1 -0
@@ -12,6 +12,7 @@* of the License. */ +#include <errno.h> #include <inttypes.h> #include <traceevent/event-parse.h>
tools/perf/builtin-trace.c +1 -0
@@ -41,6 +41,7 @@#include "syscalltbl.h" #include "rb_resort.h" +#include <errno.h> #include <inttypes.h> #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ #include <stdlib.h>
tools/perf/perf.c +1 -0
@@ -19,6 +19,7 @@#include "util/debug.h" #include <api/fs/fs.h> #include <api/fs/tracing_path.h> +#include <errno.h> #include <pthread.h> #include <stdlib.h> #include <time.h>
tools/perf/tests/attr.c +1 -0
@@ -18,6 +18,7 @@* permissions. All the event text files are stored there. */ +#include <errno.h> #include <inttypes.h> #include <stdlib.h> #include <stdio.h>
tools/perf/tests/backward-ring-buffer.c +1 -0
@@ -8,6 +8,7 @@#include <sys/prctl.h> #include "tests.h" #include "debug.h" +#include <errno.h> #define NR_ITERS 111
tools/perf/tests/bpf.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <stdio.h> #include <sys/epoll.h> #include <util/util.h>
tools/perf/tests/builtin-test.c +1 -0
@@ -3,6 +3,7 @@* * Builtin regression testing command: ever growing number of sanity tests */ +#include <errno.h> #include <unistd.h> #include <string.h> #include "builtin.h"
tools/perf/tests/code-reading.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <linux/kernel.h> #include <linux/types.h> #include <inttypes.h>
tools/perf/tests/event-times.c +1 -0
@@ -1,4 +1,5 @@#include <linux/compiler.h> +#include <errno.h> #include <inttypes.h> #include <string.h> #include "tests.h"
tools/perf/tests/evsel-roundtrip-name.c +1 -0
@@ -3,6 +3,7 @@#include "parse-events.h" #include "tests.h" #include "debug.h" +#include <errno.h> #include <linux/kernel.h> static int perf_evsel__roundtrip_cache_name_test (void )
tools/perf/tests/hists_link.c +1 -0
@@ -9,6 +9,7 @@#include "thread.h" #include "parse-events.h" #include "hists_common.h" +#include <errno.h> #include <linux/kernel.h> struct sample {
tools/perf/tests/mmap-basic.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> /* For the CLR_() macros */ #include <pthread.h>
tools/perf/tests/openat-syscall-all-cpus.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> /* For the CPU_* macros */ #include <pthread.h>
tools/perf/tests/openat-syscall-tp-fields.c +1 -0
@@ -5,6 +5,7 @@#include "thread_map.h" #include "tests.h" #include "debug.h" +#include <errno.h> #ifndef O_DIRECTORY #define O_DIRECTORY 00200000
tools/perf/tests/openat-syscall.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <api/fs/tracing_path.h> #include <linux/err.h>
tools/perf/tests/parse-events.c +1 -0
@@ -5,6 +5,7 @@#include "tests.h" #include "debug.h" #include "util.h" +#include <errno.h> #include <linux/kernel.h> #include <linux/hw_breakpoint.h> #include <api/fs/fs.h>
tools/perf/tests/perf-record.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> /* For the CLR_() macros */ #include <pthread.h>
tools/perf/tests/pmu.c +1 -0
@@ -2,6 +2,7 @@#include "pmu.h" #include "util.h" #include "tests.h" +#include <errno.h> #include <linux/kernel.h> /* Simulated format definitions. */
tools/perf/tests/sdt.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <stdio.h> #include <sys/epoll.h> #include <util/util.h>
tools/perf/tests/sw-clock.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <unistd.h> #include <stdlib.h>
tools/perf/tests/switch-tracking.c +1 -0
@@ -1,5 +1,6 @@#include <sys/time.h> #include <sys/prctl.h> +#include <errno.h> #include <time.h> #include <stdlib.h>
tools/perf/tests/task-exit.c +1 -0
@@ -4,6 +4,7 @@#include "cpumap.h" #include "tests.h" +#include <errno.h> #include <signal.h> static int exited;
tools/perf/ui/browsers/hists.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h>
tools/perf/util/annotate.c +1 -0
@@ -7,6 +7,7 @@* Released under the GPL v2. (and only v2, not any later version) */ +#include <errno.h> #include <inttypes.h> #include "util.h" #include "ui/ui.h"
tools/perf/util/auxtrace.h +1 -0
@@ -17,6 +17,7 @@#define __PERF_AUXTRACE_H#include <sys/types.h> +#include <errno.h> #include <stdbool.h> #include <stddef.h> #include <linux/list.h>
tools/perf/util/bpf-loader.c +1 -0
@@ -11,6 +11,7 @@#include <linux/err.h> #include <linux/kernel.h> #include <linux/string.h> +#include <errno.h> #include "perf.h" #include "debug.h" #include "bpf-loader.h"
tools/perf/util/bpf-loader.h +2 -0
@@ -85,6 +85,8 @@ int bpf__strerror_setup_stdout(struct perf_evlist *evlist, int err, char *buf, size_t size);#else +#include <errno.h> +static inline struct bpf_object *bpf__prepare_load (const char *filename__maybe_unused ,bool source__maybe_unused )
tools/perf/util/bpf-prologue.c +1 -0
@@ -12,6 +12,7 @@#include "bpf-loader.h" #include "bpf-prologue.h" #include "probe-finder.h" +#include <errno.h> #include <dwarf-regs.h> #include <linux/filter.h>
tools/perf/util/bpf-prologue.h +2 -0
@@ -18,6 +18,8 @@ int bpf__gen_prologue(struct probe_trace_arg *args, int nargs, struct bpf_insn *new_prog, size_t *new_cnt, size_t cnt_space);#else +#include <errno.h> + static inline int bpf__gen_prologue(struct probe_trace_arg *args __maybe_unused, int nargs __maybe_unused,
tools/perf/util/build-id.c +1 -0
@@ -7,6 +7,7 @@* Copyright (C) 2009, 2010 Arnaldo Carvalho de Melo <[email protected]> */ #include "util.h" +#include <errno.h> #include <stdio.h> #include "build-id.h" #include "event.h"
tools/perf/util/c++/clang-c.h +1 -0
@@ -20,6 +20,7 @@ extern int perf_clang__compile_bpf(const char *filename, size_t *p_obj_buf_sz);#else +#include <errno.h> static inline void perf_clang__init (void ) { }static inline void perf_clang__cleanup (void ) { }
tools/perf/util/cloexec.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <sched.h> #include "util.h" #include "../perf.h"
tools/perf/util/comm.c +1 -0
@@ -1,5 +1,6 @@#include "comm.h" #include "util.h" +#include <errno.h> #include <stdlib.h> #include <stdio.h> #include <linux/refcount.h>
tools/perf/util/config.c +1 -0
@@ -8,6 +8,7 @@* Copyright (C) Johannes Schindelin, 2005 * */ +#include <errno.h> #include "util.h" #include "cache.h" #include <subcmd/exec-cmd.h>
tools/perf/util/counts.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <stdlib.h> #include "evsel.h" #include "counts.h"
tools/perf/util/data-convert-bt.c +1 -0
@@ -7,6 +7,7 @@* Released under the GPL v2. (and only v2, not any later version) */ +#include <errno.h> #include <inttypes.h> #include <linux/compiler.h> #include <linux/kernel.h>
tools/perf/util/data.c +1 -0
@@ -2,6 +2,7 @@#include <linux/kernel.h> #include <sys/types.h> #include <sys/stat.h> +#include <errno.h> #include <unistd.h> #include <string.h>
tools/perf/util/drv_configs.c +1 -0
@@ -17,6 +17,7 @@#include "evlist.h" #include "evsel.h" #include "pmu.h" +#include <errno.h> static int perf_evsel__apply_drv_configs(struct perf_evsel *evsel,
tools/perf/util/dso.c +1 -0
@@ -2,6 +2,7 @@#include <linux/kernel.h> #include <sys/time.h> #include <sys/resource.h> +#include <errno.h> #include "symbol.h" #include "dso.h" #include "machine.h"
tools/perf/util/dwarf-aux.c +1 -0
@@ -17,6 +17,7 @@* */ +#include <errno.h> #include <inttypes.h> #include <stdbool.h> #include "util.h"
tools/perf/util/env.c +1 -0
@@ -1,6 +1,7 @@#include "cpumap.h" #include "env.h" #include "util.h" +#include <errno.h> struct perf_env perf_env;
tools/perf/util/event.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <linux/kernel.h> #include <linux/types.h>
tools/perf/util/evlist.c +1 -0
@@ -8,6 +8,7 @@*/ #include "util.h" #include <api/fs/fs.h> +#include <errno.h> #include <inttypes.h> #include <poll.h> #include "cpumap.h"
tools/perf/util/evsel.c +1 -0
@@ -8,6 +8,7 @@*/ #include <byteswap.h> +#include <errno.h> #include <inttypes.h> #include <linux/bitops.h> #include <api/fs/tracing_path.h>
tools/perf/util/header.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include "util.h" #include "string2.h"
tools/perf/util/hist.c +1 -0
@@ -10,6 +10,7 @@#include "annotate.h" #include "srcline.h" #include "ui/progress.h" +#include <errno.h> #include <math.h> static bool hists__filter_entry_by_dso(struct hists *hists,
tools/perf/util/intel-bts.c +1 -0
@@ -14,6 +14,7 @@*/ #include <endian.h> +#include <errno.h> #include <byteswap.h> #include <inttypes.h> #include <linux/kernel.h>
tools/perf/util/jitdump.c +1 -0
@@ -1,5 +1,6 @@#include <sys/sysmacros.h> #include <sys/types.h> +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h>
tools/perf/util/lzma.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <lzma.h> #include <stdio.h> #include <linux/compiler.h>
tools/perf/util/machine.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include "callchain.h" #include "debug.h"
tools/perf/util/ordered-events.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <linux/list.h> #include <linux/compiler.h>
tools/perf/util/parse-events.c +1 -0
@@ -1,5 +1,6 @@#include <linux/hw_breakpoint.h> #include <linux/err.h> +#include <errno.h> #include "util.h" #include "../perf.h" #include "evlist.h"
tools/perf/util/pmu.c +1 -0
@@ -1,6 +1,7 @@#include <linux/list.h> #include <linux/compiler.h> #include <sys/types.h> +#include <errno.h> #include <unistd.h> #include <stdio.h> #include <stdbool.h>
tools/perf/util/probe-file.c +1 -0
@@ -14,6 +14,7 @@* GNU General Public License for more details. * */ +#include <errno.h> #include <sys/uio.h> #include "util.h" #include "event.h"
tools/perf/util/quote.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <stdlib.h> #include "strbuf.h" #include "quote.h"
tools/perf/util/record.c +1 -0
@@ -2,6 +2,7 @@#include "evsel.h" #include "cpumap.h" #include "parse-events.h" +#include <errno.h> #include <api/fs/fs.h> #include "util.h" #include "cloexec.h"
tools/perf/util/session.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <linux/kernel.h> #include <traceevent/event-parse.h>
tools/perf/util/sort.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <sys/mman.h> #include "sort.h"
tools/perf/util/stat.c +1 -0
@@ -1,3 +1,4 @@ +#include <errno.h> #include <inttypes.h> #include <math.h> #include "stat.h"
tools/perf/util/strbuf.c +1 -0
@@ -1,6 +1,7 @@#include "debug.h" #include "util.h" #include <linux/kernel.h> +#include <errno.h> int prefixcmp (const char *str,const char *prefix) {
tools/perf/util/strfilter.c +1 -0
@@ -2,6 +2,7 @@#include "string2.h" #include "strfilter.h" +#include <errno.h> #include "sane_ctype.h" /* Operators */
tools/perf/util/symbol-minimal.c +1 -0
@@ -1,6 +1,7 @@#include "symbol.h" #include "util.h" +#include <errno.h> #include <stdio.h> #include <fcntl.h> #include <string.h>
tools/perf/util/thread-stack.c +1 -0
@@ -15,6 +15,7 @@#include <linux/rbtree.h> #include <linux/list.h> +#include <errno.h> #include "thread.h" #include "event.h" #include "machine.h"
tools/perf/util/thread.c +1 -0
@@ -1,4 +1,5 @@#include "../perf.h" +#include <errno.h> #include <stdlib.h> #include <stdio.h> #include <string.h>
tools/perf/util/thread_map.c +1 -0
@@ -1,4 +1,5 @@#include <dirent.h> +#include <errno.h> #include <limits.h> #include <stdbool.h> #include <stdlib.h>
tools/perf/util/unwind-libunwind-local.c +1 -0
@@ -16,6 +16,7 @@*/ #include <elf.h> +#include <errno.h> #include <gelf.h> #include <fcntl.h> #include <inttypes.h>
tools/perf/util/util.h +0 -1
@@ -18,7 +18,6 @@#include <stdarg.h> #include <string.h> #include <term.h> -#include <errno.h> #include <limits.h> #include <sys/param.h> #include <sys/types.h>
tools/perf/util/vdso.c +1 -1
@@ -1,4 +1,4 @@ - +#include <errno.h> #include <unistd.h> #include <stdio.h> #include <string.h>