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

perf tools: Including missing inttypes.h header

Needed to use the PRI[xu](32,64) formatting macros.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-wkbho8kaw24q67dd11q0j39f@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+59 -1
+1
tools/perf/arch/x86/tests/perf-time-to-tsc.c
··· 1 + #include <inttypes.h> 1 2 #include <stdio.h> 2 3 #include <unistd.h> 3 4 #include <linux/types.h>
+1
tools/perf/bench/numa.c
··· 4 4 * numa: Simulate NUMA-sensitive workload and measure their NUMA performance 5 5 */ 6 6 7 + #include <inttypes.h> 7 8 /* For the CLR_() macros */ 8 9 #include <pthread.h> 9 10
+1
tools/perf/builtin-c2c.c
··· 9 9 * Dick Fowles <fowles@inreach.com> 10 10 * Joe Mario <jmario@redhat.com> 11 11 */ 12 + #include <inttypes.h> 12 13 #include <linux/compiler.h> 13 14 #include <linux/kernel.h> 14 15 #include <linux/stringify.h>
+1
tools/perf/builtin-diff.c
··· 19 19 #include "util/data.h" 20 20 #include "util/config.h" 21 21 22 + #include <inttypes.h> 22 23 #include <stdlib.h> 23 24 #include <math.h> 24 25
+1
tools/perf/builtin-kallsyms.c
··· 7 7 * 8 8 * Released under the GPL v2. (and only v2, not any later version) 9 9 */ 10 + #include <inttypes.h> 10 11 #include "builtin.h" 11 12 #include <linux/compiler.h> 12 13 #include <subcmd/parse-options.h>
+1
tools/perf/builtin-kmem.c
··· 23 23 #include <linux/kernel.h> 24 24 #include <linux/rbtree.h> 25 25 #include <linux/string.h> 26 + #include <inttypes.h> 26 27 #include <locale.h> 27 28 #include <regex.h> 28 29
+1
tools/perf/builtin-kvm.c
··· 26 26 27 27 #include <linux/kernel.h> 28 28 #include <linux/time64.h> 29 + #include <inttypes.h> 29 30 #include <termios.h> 30 31 #include <semaphore.h> 31 32 #include <pthread.h>
+1
tools/perf/builtin-lock.c
··· 1 + #include <inttypes.h> 1 2 #include "builtin.h" 2 3 #include "perf.h" 3 4
+1
tools/perf/builtin-mem.c
··· 1 + #include <inttypes.h> 1 2 #include "builtin.h" 2 3 #include "perf.h" 3 4
+1
tools/perf/builtin-record.c
··· 40 40 #include "util/perf-hooks.h" 41 41 #include "asm/bug.h" 42 42 43 + #include <inttypes.h> 43 44 #include <unistd.h> 44 45 #include <sched.h> 45 46 #include <sys/mman.h>
+1
tools/perf/builtin-report.c
··· 40 40 #include "util/auxtrace.h" 41 41 42 42 #include <dlfcn.h> 43 + #include <inttypes.h> 43 44 #include <linux/bitmap.h> 44 45 #include <linux/stringify.h> 45 46
+1
tools/perf/builtin-sched.c
··· 26 26 #include <linux/log2.h> 27 27 #include <sys/prctl.h> 28 28 #include <sys/resource.h> 29 + #include <inttypes.h> 29 30 30 31 #include <semaphore.h> 31 32 #include <pthread.h>
+1
tools/perf/builtin-script.c
··· 30 30 #include "asm/bug.h" 31 31 #include "util/mem-events.h" 32 32 #include "util/dump-insn.h" 33 + #include <inttypes.h> 33 34 34 35 static char const *script_name; 35 36 static char const *generate_script_lang;
+1
tools/perf/builtin-stat.c
··· 70 70 #include <api/fs/fs.h> 71 71 #include <stdlib.h> 72 72 #include <sys/prctl.h> 73 + #include <inttypes.h> 73 74 #include <locale.h> 74 75 #include <math.h> 75 76
+1
tools/perf/builtin-timechart.c
··· 12 12 * of the License. 13 13 */ 14 14 15 + #include <inttypes.h> 15 16 #include <traceevent/event-parse.h> 16 17 17 18 #include "builtin.h"
+1
tools/perf/builtin-trace.c
··· 39 39 #include "syscalltbl.h" 40 40 #include "rb_resort.h" 41 41 42 + #include <inttypes.h> 42 43 #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ 43 44 #include <stdlib.h> 44 45 #include <string.h>
+1
tools/perf/tests/attr.c
··· 18 18 * permissions. All the event text files are stored there. 19 19 */ 20 20 21 + #include <inttypes.h> 21 22 #include <stdlib.h> 22 23 #include <stdio.h> 23 24 #include <linux/types.h>
+1
tools/perf/tests/code-reading.c
··· 1 1 #include <linux/kernel.h> 2 2 #include <linux/types.h> 3 + #include <inttypes.h> 3 4 #include <stdlib.h> 4 5 #include <unistd.h> 5 6 #include <stdio.h>
+1
tools/perf/tests/dwarf-unwind.c
··· 1 1 #include <linux/compiler.h> 2 2 #include <linux/types.h> 3 + #include <inttypes.h> 3 4 #include <unistd.h> 4 5 #include "tests.h" 5 6 #include "debug.h"
+1
tools/perf/tests/event-times.c
··· 1 1 #include <linux/compiler.h> 2 + #include <inttypes.h> 2 3 #include <string.h> 3 4 #include "tests.h" 4 5 #include "evlist.h"
+1
tools/perf/tests/hists_common.c
··· 1 + #include <inttypes.h> 1 2 #include "perf.h" 2 3 #include "util/debug.h" 3 4 #include "util/symbol.h"
+1
tools/perf/tests/mmap-basic.c
··· 1 + #include <inttypes.h> 1 2 /* For the CLR_() macros */ 2 3 #include <pthread.h> 3 4
+1
tools/perf/tests/mmap-thread-lookup.c
··· 1 + #include <inttypes.h> 1 2 #include <unistd.h> 2 3 #include <sys/syscall.h> 3 4 #include <sys/types.h>
+1
tools/perf/tests/openat-syscall-all-cpus.c
··· 1 + #include <inttypes.h> 1 2 /* For the CPU_* macros */ 2 3 #include <pthread.h> 3 4
+1
tools/perf/tests/openat-syscall.c
··· 1 + #include <inttypes.h> 1 2 #include <api/fs/tracing_path.h> 2 3 #include <linux/err.h> 3 4 #include "thread_map.h"
+1
tools/perf/tests/perf-record.c
··· 1 + #include <inttypes.h> 1 2 /* For the CLR_() macros */ 2 3 #include <pthread.h> 3 4
+1
tools/perf/tests/sample-parsing.c
··· 1 1 #include <stdbool.h> 2 + #include <inttypes.h> 2 3 #include <linux/kernel.h> 3 4 #include <linux/types.h> 4 5
+1
tools/perf/tests/sw-clock.c
··· 1 + #include <inttypes.h> 1 2 #include <unistd.h> 2 3 #include <stdlib.h> 3 4 #include <signal.h>
+1
tools/perf/tests/unit_number__scnprintf.c
··· 1 + #include <inttypes.h> 1 2 #include <linux/compiler.h> 2 3 #include <linux/types.h> 3 4 #include "tests.h"
+1
tools/perf/tests/vmlinux-kallsyms.c
··· 1 1 #include <linux/compiler.h> 2 2 #include <linux/rbtree.h> 3 + #include <inttypes.h> 3 4 #include <string.h> 4 5 #include "map.h" 5 6 #include "symbol.h"
+1
tools/perf/ui/browsers/annotate.c
··· 9 9 #include "../../util/symbol.h" 10 10 #include "../../util/evsel.h" 11 11 #include "../../util/config.h" 12 + #include <inttypes.h> 12 13 #include <pthread.h> 13 14 #include <linux/kernel.h> 14 15
+1
tools/perf/ui/browsers/hists.c
··· 1 + #include <inttypes.h> 1 2 #include <stdio.h> 2 3 #include <stdlib.h> 3 4 #include <string.h>
+1 -1
tools/perf/ui/gtk/annotate.c
··· 3 3 #include "util/annotate.h" 4 4 #include "util/evsel.h" 5 5 #include "ui/helpline.h" 6 - 6 + #include <inttypes.h> 7 7 8 8 enum { 9 9 ANN_COL__PERCENT,
+1
tools/perf/ui/hist.c
··· 1 + #include <inttypes.h> 1 2 #include <math.h> 2 3 #include <linux/compiler.h> 3 4
+1
tools/perf/util/annotate.c
··· 7 7 * Released under the GPL v2. (and only v2, not any later version) 8 8 */ 9 9 10 + #include <inttypes.h> 10 11 #include "util.h" 11 12 #include "ui/ui.h" 12 13 #include "sort.h"
+1
tools/perf/util/auxtrace.c
··· 13 13 * 14 14 */ 15 15 16 + #include <inttypes.h> 16 17 #include <sys/types.h> 17 18 #include <sys/mman.h> 18 19 #include <stdbool.h>
+1
tools/perf/util/callchain.c
··· 9 9 * 10 10 */ 11 11 12 + #include <inttypes.h> 12 13 #include <stdlib.h> 13 14 #include <stdio.h> 14 15 #include <stdbool.h>
+1
tools/perf/util/data-convert-bt.c
··· 7 7 * Released under the GPL v2. (and only v2, not any later version) 8 8 */ 9 9 10 + #include <inttypes.h> 10 11 #include <linux/compiler.h> 11 12 #include <linux/kernel.h> 12 13 #include <babeltrace/ctf-writer/writer.h>
+1
tools/perf/util/debug.c
··· 2 2 3 3 #include "../perf.h" 4 4 5 + #include <inttypes.h> 5 6 #include <string.h> 6 7 #include <stdarg.h> 7 8 #include <stdio.h>
+1
tools/perf/util/dwarf-aux.c
··· 17 17 * 18 18 */ 19 19 20 + #include <inttypes.h> 20 21 #include <stdbool.h> 21 22 #include "util.h" 22 23 #include "debug.h"
+1
tools/perf/util/event.c
··· 1 + #include <inttypes.h> 1 2 #include <linux/kernel.h> 2 3 #include <linux/types.h> 3 4 #include <uapi/linux/mman.h> /* To get things like MAP_HUGETLB even on older libc headers */
+1
tools/perf/util/evlist.c
··· 8 8 */ 9 9 #include "util.h" 10 10 #include <api/fs/fs.h> 11 + #include <inttypes.h> 11 12 #include <poll.h> 12 13 #include "cpumap.h" 13 14 #include "thread_map.h"
+1
tools/perf/util/evsel.c
··· 8 8 */ 9 9 10 10 #include <byteswap.h> 11 + #include <inttypes.h> 11 12 #include <linux/bitops.h> 12 13 #include <api/fs/tracing_path.h> 13 14 #include <traceevent/event-parse.h>
+1
tools/perf/util/evsel_fprintf.c
··· 1 + #include <inttypes.h> 1 2 #include <stdio.h> 2 3 #include <stdbool.h> 3 4 #include <traceevent/event-parse.h>
+1
tools/perf/util/header.c
··· 1 + #include <inttypes.h> 1 2 #include "util.h" 2 3 #include <sys/types.h> 3 4 #include <byteswap.h>
+1
tools/perf/util/intel-bts.c
··· 15 15 16 16 #include <endian.h> 17 17 #include <byteswap.h> 18 + #include <inttypes.h> 18 19 #include <linux/kernel.h> 19 20 #include <linux/types.h> 20 21 #include <linux/bitops.h>
+1
tools/perf/util/intel-pt.c
··· 13 13 * 14 14 */ 15 15 16 + #include <inttypes.h> 16 17 #include <stdio.h> 17 18 #include <stdbool.h> 18 19 #include <errno.h>
+1
tools/perf/util/machine.c
··· 1 + #include <inttypes.h> 1 2 #include "callchain.h" 2 3 #include "debug.h" 3 4 #include "event.h"
+1
tools/perf/util/ordered-events.c
··· 1 + #include <inttypes.h> 1 2 #include <linux/list.h> 2 3 #include <linux/compiler.h> 3 4 #include <linux/string.h>
+1
tools/perf/util/probe-event.c
··· 19 19 * 20 20 */ 21 21 22 + #include <inttypes.h> 22 23 #include <sys/utsname.h> 23 24 #include <sys/types.h> 24 25 #include <sys/stat.h>
+1
tools/perf/util/probe-finder.c
··· 19 19 * 20 20 */ 21 21 22 + #include <inttypes.h> 22 23 #include <sys/utsname.h> 23 24 #include <sys/types.h> 24 25 #include <sys/stat.h>
+1
tools/perf/util/scripting-engines/trace-event-perl.c
··· 19 19 * 20 20 */ 21 21 22 + #include <inttypes.h> 22 23 #include <stdio.h> 23 24 #include <stdlib.h> 24 25 #include <string.h>
+1
tools/perf/util/scripting-engines/trace-event-python.c
··· 21 21 22 22 #include <Python.h> 23 23 24 + #include <inttypes.h> 24 25 #include <stdio.h> 25 26 #include <stdlib.h> 26 27 #include <string.h>
+1
tools/perf/util/session.c
··· 1 + #include <inttypes.h> 1 2 #include <linux/kernel.h> 2 3 #include <traceevent/event-parse.h> 3 4 #include <api/fs/fs.h>
+1
tools/perf/util/sort.c
··· 1 + #include <inttypes.h> 1 2 #include <sys/mman.h> 2 3 #include "sort.h" 3 4 #include "hist.h"
+1
tools/perf/util/srcline.c
··· 1 + #include <inttypes.h> 1 2 #include <stdio.h> 2 3 #include <stdlib.h> 3 4 #include <string.h>
+1
tools/perf/util/stat.c
··· 1 + #include <inttypes.h> 1 2 #include <math.h> 2 3 #include "stat.h" 3 4 #include "evlist.h"
+1
tools/perf/util/unwind-libunwind-local.c
··· 18 18 #include <elf.h> 19 19 #include <gelf.h> 20 20 #include <fcntl.h> 21 + #include <inttypes.h> 21 22 #include <string.h> 22 23 #include <unistd.h> 23 24 #include <sys/mman.h>
+1
tools/perf/util/util.c
··· 7 7 #ifdef HAVE_BACKTRACE_SUPPORT 8 8 #include <execinfo.h> 9 9 #endif 10 + #include <inttypes.h> 10 11 #include <stdio.h> 11 12 #include <stdlib.h> 12 13 #include <string.h>