diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-17 14:23:08 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 12:01:46 -0400 |
commit | fd20e8111cc0e51ce12fb8ee17c863088fe95065 (patch) | |
tree | a1feb8094ea1c649a508f126b75cddd16e764eba | |
parent | b640985fe40c7446fa5db467e747fbac5c081c86 (diff) |
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 files changed, 59 insertions, 1 deletions
diff --git a/tools/perf/arch/x86/tests/perf-time-to-tsc.c b/tools/perf/arch/x86/tests/perf-time-to-tsc.c index 5c76cc83186a..a8e37f3148c2 100644 --- a/tools/perf/arch/x86/tests/perf-time-to-tsc.c +++ b/tools/perf/arch/x86/tests/perf-time-to-tsc.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <stdio.h> | 2 | #include <stdio.h> |
2 | #include <unistd.h> | 3 | #include <unistd.h> |
3 | #include <linux/types.h> | 4 | #include <linux/types.h> |
diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index 27ebd50ee619..27de0c8c5c19 100644 --- a/tools/perf/bench/numa.c +++ b/tools/perf/bench/numa.c | |||
@@ -4,6 +4,7 @@ | |||
4 | * numa: Simulate NUMA-sensitive workload and measure their NUMA performance | 4 | * numa: Simulate NUMA-sensitive workload and measure their NUMA performance |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <inttypes.h> | ||
7 | /* For the CLR_() macros */ | 8 | /* For the CLR_() macros */ |
8 | #include <pthread.h> | 9 | #include <pthread.h> |
9 | 10 | ||
diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 70c2c773a2b8..cc8156a969ac 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c | |||
@@ -9,6 +9,7 @@ | |||
9 | * Dick Fowles <fowles@inreach.com> | 9 | * Dick Fowles <fowles@inreach.com> |
10 | * Joe Mario <jmario@redhat.com> | 10 | * Joe Mario <jmario@redhat.com> |
11 | */ | 11 | */ |
12 | #include <inttypes.h> | ||
12 | #include <linux/compiler.h> | 13 | #include <linux/compiler.h> |
13 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
14 | #include <linux/stringify.h> | 15 | #include <linux/stringify.h> |
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index cd2605d86984..09be77b13788 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include "util/data.h" | 19 | #include "util/data.h" |
20 | #include "util/config.h" | 20 | #include "util/config.h" |
21 | 21 | ||
22 | #include <inttypes.h> | ||
22 | #include <stdlib.h> | 23 | #include <stdlib.h> |
23 | #include <math.h> | 24 | #include <math.h> |
24 | 25 | ||
diff --git a/tools/perf/builtin-kallsyms.c b/tools/perf/builtin-kallsyms.c index 8ff38c4eb2c0..bcfb363112d3 100644 --- a/tools/perf/builtin-kallsyms.c +++ b/tools/perf/builtin-kallsyms.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * | 7 | * |
8 | * Released under the GPL v2. (and only v2, not any later version) | 8 | * Released under the GPL v2. (and only v2, not any later version) |
9 | */ | 9 | */ |
10 | #include <inttypes.h> | ||
10 | #include "builtin.h" | 11 | #include "builtin.h" |
11 | #include <linux/compiler.h> | 12 | #include <linux/compiler.h> |
12 | #include <subcmd/parse-options.h> | 13 | #include <subcmd/parse-options.h> |
diff --git a/tools/perf/builtin-kmem.c b/tools/perf/builtin-kmem.c index 8f0b94563936..fa6bf1c39b65 100644 --- a/tools/perf/builtin-kmem.c +++ b/tools/perf/builtin-kmem.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
24 | #include <linux/rbtree.h> | 24 | #include <linux/rbtree.h> |
25 | #include <linux/string.h> | 25 | #include <linux/string.h> |
26 | #include <inttypes.h> | ||
26 | #include <locale.h> | 27 | #include <locale.h> |
27 | #include <regex.h> | 28 | #include <regex.h> |
28 | 29 | ||
diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index a7d7f4c6052e..e82a6979327f 100644 --- a/tools/perf/builtin-kvm.c +++ b/tools/perf/builtin-kvm.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
28 | #include <linux/time64.h> | 28 | #include <linux/time64.h> |
29 | #include <inttypes.h> | ||
29 | #include <termios.h> | 30 | #include <termios.h> |
30 | #include <semaphore.h> | 31 | #include <semaphore.h> |
31 | #include <pthread.h> | 32 | #include <pthread.h> |
diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index f74dd869f88b..6f93a6f0e268 100644 --- a/tools/perf/builtin-lock.c +++ b/tools/perf/builtin-lock.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include "builtin.h" | 2 | #include "builtin.h" |
2 | #include "perf.h" | 3 | #include "perf.h" |
3 | 4 | ||
diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c index 643f4faac0d0..1ebc67390898 100644 --- a/tools/perf/builtin-mem.c +++ b/tools/perf/builtin-mem.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include "builtin.h" | 2 | #include "builtin.h" |
2 | #include "perf.h" | 3 | #include "perf.h" |
3 | 4 | ||
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 3191ab063852..65429d1b29c8 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "util/perf-hooks.h" | 40 | #include "util/perf-hooks.h" |
41 | #include "asm/bug.h" | 41 | #include "asm/bug.h" |
42 | 42 | ||
43 | #include <inttypes.h> | ||
43 | #include <unistd.h> | 44 | #include <unistd.h> |
44 | #include <sched.h> | 45 | #include <sched.h> |
45 | #include <sys/mman.h> | 46 | #include <sys/mman.h> |
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index c18158b83eb1..66a2f44518de 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "util/auxtrace.h" | 40 | #include "util/auxtrace.h" |
41 | 41 | ||
42 | #include <dlfcn.h> | 42 | #include <dlfcn.h> |
43 | #include <inttypes.h> | ||
43 | #include <linux/bitmap.h> | 44 | #include <linux/bitmap.h> |
44 | #include <linux/stringify.h> | 45 | #include <linux/stringify.h> |
45 | 46 | ||
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 5cd60882c8d9..d4677fb7f7f5 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/log2.h> | 26 | #include <linux/log2.h> |
27 | #include <sys/prctl.h> | 27 | #include <sys/prctl.h> |
28 | #include <sys/resource.h> | 28 | #include <sys/resource.h> |
29 | #include <inttypes.h> | ||
29 | 30 | ||
30 | #include <semaphore.h> | 31 | #include <semaphore.h> |
31 | #include <pthread.h> | 32 | #include <pthread.h> |
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 36b076653d16..c4e36b4743f4 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "asm/bug.h" | 30 | #include "asm/bug.h" |
31 | #include "util/mem-events.h" | 31 | #include "util/mem-events.h" |
32 | #include "util/dump-insn.h" | 32 | #include "util/dump-insn.h" |
33 | #include <inttypes.h> | ||
33 | 34 | ||
34 | static char const *script_name; | 35 | static char const *script_name; |
35 | static char const *generate_script_lang; | 36 | static char const *generate_script_lang; |
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 610225b6326e..b7199f029073 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -70,6 +70,7 @@ | |||
70 | #include <api/fs/fs.h> | 70 | #include <api/fs/fs.h> |
71 | #include <stdlib.h> | 71 | #include <stdlib.h> |
72 | #include <sys/prctl.h> | 72 | #include <sys/prctl.h> |
73 | #include <inttypes.h> | ||
73 | #include <locale.h> | 74 | #include <locale.h> |
74 | #include <math.h> | 75 | #include <math.h> |
75 | 76 | ||
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 822c8d39ca1d..a24b229a785f 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -12,6 +12,7 @@ | |||
12 | * of the License. | 12 | * of the License. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <inttypes.h> | ||
15 | #include <traceevent/event-parse.h> | 16 | #include <traceevent/event-parse.h> |
16 | 17 | ||
17 | #include "builtin.h" | 18 | #include "builtin.h" |
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index 2792ed1fae43..aba5fac41529 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "syscalltbl.h" | 39 | #include "syscalltbl.h" |
40 | #include "rb_resort.h" | 40 | #include "rb_resort.h" |
41 | 41 | ||
42 | #include <inttypes.h> | ||
42 | #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ | 43 | #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ |
43 | #include <stdlib.h> | 44 | #include <stdlib.h> |
44 | #include <string.h> | 45 | #include <string.h> |
diff --git a/tools/perf/tests/attr.c b/tools/perf/tests/attr.c index 88dc51f4c27b..bb2bc487f703 100644 --- a/tools/perf/tests/attr.c +++ b/tools/perf/tests/attr.c | |||
@@ -18,6 +18,7 @@ | |||
18 | * permissions. All the event text files are stored there. | 18 | * permissions. All the event text files are stored there. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <inttypes.h> | ||
21 | #include <stdlib.h> | 22 | #include <stdlib.h> |
22 | #include <stdio.h> | 23 | #include <stdio.h> |
23 | #include <linux/types.h> | 24 | #include <linux/types.h> |
diff --git a/tools/perf/tests/code-reading.c b/tools/perf/tests/code-reading.c index 99dbd5ae294a..6effcfb7e0c1 100644 --- a/tools/perf/tests/code-reading.c +++ b/tools/perf/tests/code-reading.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <linux/kernel.h> | 1 | #include <linux/kernel.h> |
2 | #include <linux/types.h> | 2 | #include <linux/types.h> |
3 | #include <inttypes.h> | ||
3 | #include <stdlib.h> | 4 | #include <stdlib.h> |
4 | #include <unistd.h> | 5 | #include <unistd.h> |
5 | #include <stdio.h> | 6 | #include <stdio.h> |
diff --git a/tools/perf/tests/dwarf-unwind.c b/tools/perf/tests/dwarf-unwind.c index 1046491de4b2..dfe5c89e2049 100644 --- a/tools/perf/tests/dwarf-unwind.c +++ b/tools/perf/tests/dwarf-unwind.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <linux/compiler.h> | 1 | #include <linux/compiler.h> |
2 | #include <linux/types.h> | 2 | #include <linux/types.h> |
3 | #include <inttypes.h> | ||
3 | #include <unistd.h> | 4 | #include <unistd.h> |
4 | #include "tests.h" | 5 | #include "tests.h" |
5 | #include "debug.h" | 6 | #include "debug.h" |
diff --git a/tools/perf/tests/event-times.c b/tools/perf/tests/event-times.c index 19ef77bd6eb4..8d376e155697 100644 --- a/tools/perf/tests/event-times.c +++ b/tools/perf/tests/event-times.c | |||
@@ -1,4 +1,5 @@ | |||
1 | #include <linux/compiler.h> | 1 | #include <linux/compiler.h> |
2 | #include <inttypes.h> | ||
2 | #include <string.h> | 3 | #include <string.h> |
3 | #include "tests.h" | 4 | #include "tests.h" |
4 | #include "evlist.h" | 5 | #include "evlist.h" |
diff --git a/tools/perf/tests/hists_common.c b/tools/perf/tests/hists_common.c index f6c580e3ed84..00b8dc50f3db 100644 --- a/tools/perf/tests/hists_common.c +++ b/tools/perf/tests/hists_common.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include "perf.h" | 2 | #include "perf.h" |
2 | #include "util/debug.h" | 3 | #include "util/debug.h" |
3 | #include "util/symbol.h" | 4 | #include "util/symbol.h" |
diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c index a7cb80805993..aba40eb4c56f 100644 --- a/tools/perf/tests/mmap-basic.c +++ b/tools/perf/tests/mmap-basic.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | /* For the CLR_() macros */ | 2 | /* For the CLR_() macros */ |
2 | #include <pthread.h> | 3 | #include <pthread.h> |
3 | 4 | ||
diff --git a/tools/perf/tests/mmap-thread-lookup.c b/tools/perf/tests/mmap-thread-lookup.c index 0c5ce44f723f..a5ffb754f8c6 100644 --- a/tools/perf/tests/mmap-thread-lookup.c +++ b/tools/perf/tests/mmap-thread-lookup.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <unistd.h> | 2 | #include <unistd.h> |
2 | #include <sys/syscall.h> | 3 | #include <sys/syscall.h> |
3 | #include <sys/types.h> | 4 | #include <sys/types.h> |
diff --git a/tools/perf/tests/openat-syscall-all-cpus.c b/tools/perf/tests/openat-syscall-all-cpus.c index c8d9592eb142..eb7b1a6d507e 100644 --- a/tools/perf/tests/openat-syscall-all-cpus.c +++ b/tools/perf/tests/openat-syscall-all-cpus.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | /* For the CPU_* macros */ | 2 | /* For the CPU_* macros */ |
2 | #include <pthread.h> | 3 | #include <pthread.h> |
3 | 4 | ||
diff --git a/tools/perf/tests/openat-syscall.c b/tools/perf/tests/openat-syscall.c index d7414128d7fe..5964938d4b85 100644 --- a/tools/perf/tests/openat-syscall.c +++ b/tools/perf/tests/openat-syscall.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <api/fs/tracing_path.h> | 2 | #include <api/fs/tracing_path.h> |
2 | #include <linux/err.h> | 3 | #include <linux/err.h> |
3 | #include "thread_map.h" | 4 | #include "thread_map.h" |
diff --git a/tools/perf/tests/perf-record.c b/tools/perf/tests/perf-record.c index 87893f3ba5f1..a8b6fdaf8df1 100644 --- a/tools/perf/tests/perf-record.c +++ b/tools/perf/tests/perf-record.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | /* For the CLR_() macros */ | 2 | /* For the CLR_() macros */ |
2 | #include <pthread.h> | 3 | #include <pthread.h> |
3 | 4 | ||
diff --git a/tools/perf/tests/sample-parsing.c b/tools/perf/tests/sample-parsing.c index 73b5e47ef20b..bac5c3885b3b 100644 --- a/tools/perf/tests/sample-parsing.c +++ b/tools/perf/tests/sample-parsing.c | |||
@@ -1,4 +1,5 @@ | |||
1 | #include <stdbool.h> | 1 | #include <stdbool.h> |
2 | #include <inttypes.h> | ||
2 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
3 | #include <linux/types.h> | 4 | #include <linux/types.h> |
4 | 5 | ||
diff --git a/tools/perf/tests/sw-clock.c b/tools/perf/tests/sw-clock.c index 4c9fd046d57b..29f11c4b3e60 100644 --- a/tools/perf/tests/sw-clock.c +++ b/tools/perf/tests/sw-clock.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <unistd.h> | 2 | #include <unistd.h> |
2 | #include <stdlib.h> | 3 | #include <stdlib.h> |
3 | #include <signal.h> | 4 | #include <signal.h> |
diff --git a/tools/perf/tests/unit_number__scnprintf.c b/tools/perf/tests/unit_number__scnprintf.c index 623c2aa53c4a..f84cb70ee5e5 100644 --- a/tools/perf/tests/unit_number__scnprintf.c +++ b/tools/perf/tests/unit_number__scnprintf.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <linux/compiler.h> | 2 | #include <linux/compiler.h> |
2 | #include <linux/types.h> | 3 | #include <linux/types.h> |
3 | #include "tests.h" | 4 | #include "tests.h" |
diff --git a/tools/perf/tests/vmlinux-kallsyms.c b/tools/perf/tests/vmlinux-kallsyms.c index 862b043e5924..8456175fc234 100644 --- a/tools/perf/tests/vmlinux-kallsyms.c +++ b/tools/perf/tests/vmlinux-kallsyms.c | |||
@@ -1,5 +1,6 @@ | |||
1 | #include <linux/compiler.h> | 1 | #include <linux/compiler.h> |
2 | #include <linux/rbtree.h> | 2 | #include <linux/rbtree.h> |
3 | #include <inttypes.h> | ||
3 | #include <string.h> | 4 | #include <string.h> |
4 | #include "map.h" | 5 | #include "map.h" |
5 | #include "symbol.h" | 6 | #include "symbol.h" |
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index 9adce112d255..2ed64124276f 100644 --- a/tools/perf/ui/browsers/annotate.c +++ b/tools/perf/ui/browsers/annotate.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "../../util/symbol.h" | 9 | #include "../../util/symbol.h" |
10 | #include "../../util/evsel.h" | 10 | #include "../../util/evsel.h" |
11 | #include "../../util/config.h" | 11 | #include "../../util/config.h" |
12 | #include <inttypes.h> | ||
12 | #include <pthread.h> | 13 | #include <pthread.h> |
13 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
14 | 15 | ||
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index da24072bb76e..a2ea1fa15ae6 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <stdio.h> | 2 | #include <stdio.h> |
2 | #include <stdlib.h> | 3 | #include <stdlib.h> |
3 | #include <string.h> | 4 | #include <string.h> |
diff --git a/tools/perf/ui/gtk/annotate.c b/tools/perf/ui/gtk/annotate.c index 8c9308ac30b7..71359b898b67 100644 --- a/tools/perf/ui/gtk/annotate.c +++ b/tools/perf/ui/gtk/annotate.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #include "util/annotate.h" | 3 | #include "util/annotate.h" |
4 | #include "util/evsel.h" | 4 | #include "util/evsel.h" |
5 | #include "ui/helpline.h" | 5 | #include "ui/helpline.h" |
6 | 6 | #include <inttypes.h> | |
7 | 7 | ||
8 | enum { | 8 | enum { |
9 | ANN_COL__PERCENT, | 9 | ANN_COL__PERCENT, |
diff --git a/tools/perf/ui/hist.c b/tools/perf/ui/hist.c index 5d632dca672a..59addd52d9cd 100644 --- a/tools/perf/ui/hist.c +++ b/tools/perf/ui/hist.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <math.h> | 2 | #include <math.h> |
2 | #include <linux/compiler.h> | 3 | #include <linux/compiler.h> |
3 | 4 | ||
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 45df4a38811a..4d4faf99d52d 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Released under the GPL v2. (and only v2, not any later version) | 7 | * Released under the GPL v2. (and only v2, not any later version) |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <inttypes.h> | ||
10 | #include "util.h" | 11 | #include "util.h" |
11 | #include "ui/ui.h" | 12 | #include "ui/ui.h" |
12 | #include "sort.h" | 13 | #include "sort.h" |
diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 78bd632f144d..a81a402a7459 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c | |||
@@ -13,6 +13,7 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <inttypes.h> | ||
16 | #include <sys/types.h> | 17 | #include <sys/types.h> |
17 | #include <sys/mman.h> | 18 | #include <sys/mman.h> |
18 | #include <stdbool.h> | 19 | #include <stdbool.h> |
diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index 2e5eff5abef0..0096d45a06b3 100644 --- a/tools/perf/util/callchain.c +++ b/tools/perf/util/callchain.c | |||
@@ -9,6 +9,7 @@ | |||
9 | * | 9 | * |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <inttypes.h> | ||
12 | #include <stdlib.h> | 13 | #include <stdlib.h> |
13 | #include <stdio.h> | 14 | #include <stdio.h> |
14 | #include <stdbool.h> | 15 | #include <stdbool.h> |
diff --git a/tools/perf/util/data-convert-bt.c b/tools/perf/util/data-convert-bt.c index b7917519f6cc..ef80221e0d9c 100644 --- a/tools/perf/util/data-convert-bt.c +++ b/tools/perf/util/data-convert-bt.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Released under the GPL v2. (and only v2, not any later version) | 7 | * Released under the GPL v2. (and only v2, not any later version) |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <inttypes.h> | ||
10 | #include <linux/compiler.h> | 11 | #include <linux/compiler.h> |
11 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
12 | #include <babeltrace/ctf-writer/writer.h> | 13 | #include <babeltrace/ctf-writer/writer.h> |
diff --git a/tools/perf/util/debug.c b/tools/perf/util/debug.c index 03eb81f30d0d..4d5df25f155a 100644 --- a/tools/perf/util/debug.c +++ b/tools/perf/util/debug.c | |||
@@ -2,6 +2,7 @@ | |||
2 | 2 | ||
3 | #include "../perf.h" | 3 | #include "../perf.h" |
4 | 4 | ||
5 | #include <inttypes.h> | ||
5 | #include <string.h> | 6 | #include <string.h> |
6 | #include <stdarg.h> | 7 | #include <stdarg.h> |
7 | #include <stdio.h> | 8 | #include <stdio.h> |
diff --git a/tools/perf/util/dwarf-aux.c b/tools/perf/util/dwarf-aux.c index 41e068e94349..5fb186d142f6 100644 --- a/tools/perf/util/dwarf-aux.c +++ b/tools/perf/util/dwarf-aux.c | |||
@@ -17,6 +17,7 @@ | |||
17 | * | 17 | * |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include <inttypes.h> | ||
20 | #include <stdbool.h> | 21 | #include <stdbool.h> |
21 | #include "util.h" | 22 | #include "util.h" |
22 | #include "debug.h" | 23 | #include "debug.h" |
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index a0f59f69f46a..b761b0eb60af 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
2 | #include <linux/types.h> | 3 | #include <linux/types.h> |
3 | #include <uapi/linux/mman.h> /* To get things like MAP_HUGETLB even on older libc headers */ | 4 | #include <uapi/linux/mman.h> /* To get things like MAP_HUGETLB even on older libc headers */ |
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 50420cd35446..cf27039df100 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -8,6 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | #include "util.h" | 9 | #include "util.h" |
10 | #include <api/fs/fs.h> | 10 | #include <api/fs/fs.h> |
11 | #include <inttypes.h> | ||
11 | #include <poll.h> | 12 | #include <poll.h> |
12 | #include "cpumap.h" | 13 | #include "cpumap.h" |
13 | #include "thread_map.h" | 14 | #include "thread_map.h" |
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 3779b9f3f134..99a13a63ff1f 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -8,6 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <byteswap.h> | 10 | #include <byteswap.h> |
11 | #include <inttypes.h> | ||
11 | #include <linux/bitops.h> | 12 | #include <linux/bitops.h> |
12 | #include <api/fs/tracing_path.h> | 13 | #include <api/fs/tracing_path.h> |
13 | #include <traceevent/event-parse.h> | 14 | #include <traceevent/event-parse.h> |
diff --git a/tools/perf/util/evsel_fprintf.c b/tools/perf/util/evsel_fprintf.c index 4ef5184819a0..8000f62d5d53 100644 --- a/tools/perf/util/evsel_fprintf.c +++ b/tools/perf/util/evsel_fprintf.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <stdio.h> | 2 | #include <stdio.h> |
2 | #include <stdbool.h> | 3 | #include <stdbool.h> |
3 | #include <traceevent/event-parse.h> | 4 | #include <traceevent/event-parse.h> |
diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 2ccc7f06db79..0371f3483ede 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include "util.h" | 2 | #include "util.h" |
2 | #include <sys/types.h> | 3 | #include <sys/types.h> |
3 | #include <byteswap.h> | 4 | #include <byteswap.h> |
diff --git a/tools/perf/util/intel-bts.c b/tools/perf/util/intel-bts.c index 6c2eb5da4afc..471ed8b26a1c 100644 --- a/tools/perf/util/intel-bts.c +++ b/tools/perf/util/intel-bts.c | |||
@@ -15,6 +15,7 @@ | |||
15 | 15 | ||
16 | #include <endian.h> | 16 | #include <endian.h> |
17 | #include <byteswap.h> | 17 | #include <byteswap.h> |
18 | #include <inttypes.h> | ||
18 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
19 | #include <linux/types.h> | 20 | #include <linux/types.h> |
20 | #include <linux/bitops.h> | 21 | #include <linux/bitops.h> |
diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index da20cd5612e9..bdd4a28c6cee 100644 --- a/tools/perf/util/intel-pt.c +++ b/tools/perf/util/intel-pt.c | |||
@@ -13,6 +13,7 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <inttypes.h> | ||
16 | #include <stdio.h> | 17 | #include <stdio.h> |
17 | #include <stdbool.h> | 18 | #include <stdbool.h> |
18 | #include <errno.h> | 19 | #include <errno.h> |
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index dfc600446586..15b2a17cf76e 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include "callchain.h" | 2 | #include "callchain.h" |
2 | #include "debug.h" | 3 | #include "debug.h" |
3 | #include "event.h" | 4 | #include "event.h" |
diff --git a/tools/perf/util/ordered-events.c b/tools/perf/util/ordered-events.c index e70e935b1841..df05be69cc9e 100644 --- a/tools/perf/util/ordered-events.c +++ b/tools/perf/util/ordered-events.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <linux/list.h> | 2 | #include <linux/list.h> |
2 | #include <linux/compiler.h> | 3 | #include <linux/compiler.h> |
3 | #include <linux/string.h> | 4 | #include <linux/string.h> |
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index e4b889444447..e61b4b34a929 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -19,6 +19,7 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <inttypes.h> | ||
22 | #include <sys/utsname.h> | 23 | #include <sys/utsname.h> |
23 | #include <sys/types.h> | 24 | #include <sys/types.h> |
24 | #include <sys/stat.h> | 25 | #include <sys/stat.h> |
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 57cd268d4275..9ddd7dad2e6e 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -19,6 +19,7 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <inttypes.h> | ||
22 | #include <sys/utsname.h> | 23 | #include <sys/utsname.h> |
23 | #include <sys/types.h> | 24 | #include <sys/types.h> |
24 | #include <sys/stat.h> | 25 | #include <sys/stat.h> |
diff --git a/tools/perf/util/scripting-engines/trace-event-perl.c b/tools/perf/util/scripting-engines/trace-event-perl.c index dff043a29589..2b12bdb3ce33 100644 --- a/tools/perf/util/scripting-engines/trace-event-perl.c +++ b/tools/perf/util/scripting-engines/trace-event-perl.c | |||
@@ -19,6 +19,7 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <inttypes.h> | ||
22 | #include <stdio.h> | 23 | #include <stdio.h> |
23 | #include <stdlib.h> | 24 | #include <stdlib.h> |
24 | #include <string.h> | 25 | #include <string.h> |
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 783326cfbaa6..dd61213e7a3c 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include <Python.h> | 22 | #include <Python.h> |
23 | 23 | ||
24 | #include <inttypes.h> | ||
24 | #include <stdio.h> | 25 | #include <stdio.h> |
25 | #include <stdlib.h> | 26 | #include <stdlib.h> |
26 | #include <string.h> | 27 | #include <string.h> |
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 7b740a73e595..0695e08d2252 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <linux/kernel.h> | 2 | #include <linux/kernel.h> |
2 | #include <traceevent/event-parse.h> | 3 | #include <traceevent/event-parse.h> |
3 | #include <api/fs/fs.h> | 4 | #include <api/fs/fs.h> |
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 13b9af1d1b45..63ad5374f364 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <sys/mman.h> | 2 | #include <sys/mman.h> |
2 | #include "sort.h" | 3 | #include "sort.h" |
3 | #include "hist.h" | 4 | #include "hist.h" |
diff --git a/tools/perf/util/srcline.c b/tools/perf/util/srcline.c index 778ccb5d99d1..ef192802edc9 100644 --- a/tools/perf/util/srcline.c +++ b/tools/perf/util/srcline.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <stdio.h> | 2 | #include <stdio.h> |
2 | #include <stdlib.h> | 3 | #include <stdlib.h> |
3 | #include <string.h> | 4 | #include <string.h> |
diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index 0d51334a9b46..bbf30b2d1614 100644 --- a/tools/perf/util/stat.c +++ b/tools/perf/util/stat.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <inttypes.h> | ||
1 | #include <math.h> | 2 | #include <math.h> |
2 | #include "stat.h" | 3 | #include "stat.h" |
3 | #include "evlist.h" | 4 | #include "evlist.h" |
diff --git a/tools/perf/util/unwind-libunwind-local.c b/tools/perf/util/unwind-libunwind-local.c index bfb9b7987692..788f4d3c76f5 100644 --- a/tools/perf/util/unwind-libunwind-local.c +++ b/tools/perf/util/unwind-libunwind-local.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <elf.h> | 18 | #include <elf.h> |
19 | #include <gelf.h> | 19 | #include <gelf.h> |
20 | #include <fcntl.h> | 20 | #include <fcntl.h> |
21 | #include <inttypes.h> | ||
21 | #include <string.h> | 22 | #include <string.h> |
22 | #include <unistd.h> | 23 | #include <unistd.h> |
23 | #include <sys/mman.h> | 24 | #include <sys/mman.h> |
diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index 6097d87429e2..524bd3b9d98d 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c | |||
@@ -7,6 +7,7 @@ | |||
7 | #ifdef HAVE_BACKTRACE_SUPPORT | 7 | #ifdef HAVE_BACKTRACE_SUPPORT |
8 | #include <execinfo.h> | 8 | #include <execinfo.h> |
9 | #endif | 9 | #endif |
10 | #include <inttypes.h> | ||
10 | #include <stdio.h> | 11 | #include <stdio.h> |
11 | #include <stdlib.h> | 12 | #include <stdlib.h> |
12 | #include <string.h> | 13 | #include <string.h> |