Skip to contentSkip to conversation

perf tools: Including missing inttypes.h header

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Apr 20, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  fd20e8111cc0e51ce12fb8ee17c863088fe95065
Gitweb:     http://git.kernel.org/tip/fd20e8111cc0e51ce12fb8ee17c863088fe95065
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 17 Apr 2017 15:23:08 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 19 Apr 2017 13:01:46 -0300

perf tools: Including missing inttypes.h header

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

---
 tools/perf/arch/x86/tests/perf-time-to-tsc.c           | 1 +
 tools/perf/bench/numa.c                                | 1 +
 tools/perf/builtin-c2c.c                               | 1 +
 tools/perf/builtin-diff.c                              | 1 +
 tools/perf/builtin-kallsyms.c                          | 1 +
 tools/perf/builtin-kmem.c                              | 1 +
 tools/perf/builtin-kvm.c                               | 1 +
 tools/perf/builtin-lock.c                              | 1 +
 tools/perf/builtin-mem.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/tests/attr.c                                | 1 +
 tools/perf/tests/code-reading.c                        | 1 +
 tools/perf/tests/dwarf-unwind.c                        | 1 +
 tools/perf/tests/event-times.c                         | 1 +
 tools/perf/tests/hists_common.c                        | 1 +
 tools/perf/tests/mmap-basic.c                          | 1 +
 tools/perf/tests/mmap-thread-lookup.c                  | 1 +
 tools/perf/tests/openat-syscall-all-cpus.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/sw-clock.c                            | 1 +
 tools/perf/tests/unit_number__scnprintf.c              | 1 +
 tools/perf/tests/vmlinux-kallsyms.c                    | 1 +
 tools/perf/ui/browsers/annotate.c                      | 1 +
 tools/perf/ui/browsers/hists.c                         | 1 +
 tools/perf/ui/gtk/annotate.c                           | 2 +-
 tools/perf/ui/hist.c                                   | 1 +
 tools/perf/util/annotate.c                             | 1 +
 tools/perf/util/auxtrace.c                             | 1 +
 tools/perf/util/callchain.c                            | 1 +
 tools/perf/util/data-convert-bt.c                      | 1 +
 tools/perf/util/debug.c                                | 1 +
 tools/perf/util/dwarf-aux.c                            | 1 +
 tools/perf/util/event.c                                | 1 +
 tools/perf/util/evlist.c                               | 1 +
 tools/perf/util/evsel.c                                | 1 +
 tools/perf/util/evsel_fprintf.c                        | 1 +
 tools/perf/util/header.c                               | 1 +
 tools/perf/util/intel-bts.c                            | 1 +
 tools/perf/util/intel-pt.c                             | 1 +
 tools/perf/util/machine.c                              | 1 +
 tools/perf/util/ordered-events.c                       | 1 +
 tools/perf/util/probe-event.c                          | 1 +
 tools/perf/util/probe-finder.c                         | 1 +
 tools/perf/util/scripting-engines/trace-event-perl.c   | 1 +
 tools/perf/util/scripting-engines/trace-event-python.c | 1 +
 tools/perf/util/session.c                              | 1 +
 tools/perf/util/sort.c                                 | 1 +
 tools/perf/util/srcline.c                              | 1 +
 tools/perf/util/stat.c                                 | 1 +
 tools/perf/util/unwind-libunwind-local.c               | 1 +
 tools/perf/util/util.c                                 | 1 +
 59 files changed, 59 insertions(+), 1 deletion(-)
tools/perf/arch/x86/tests/perf-time-to-tsc.c +1 -0
index 5c76cc8..a8e37f3 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <linux/types.h>
tools/perf/bench/numa.c +1 -0
index 27ebd50..27de0c8 100644
@@ -4,6 +4,7 @@
  * numa: Simulate NUMA-sensitive workload and measure their NUMA performance
  */
 
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 
tools/perf/builtin-c2c.c +1 -0
index 70c2c77..cc8156a 100644
@@ -9,6 +9,7 @@
  *   Dick Fowles <[email protected]>
  *   Joe Mario <[email protected]>
  */
+#include <inttypes.h>
 #include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <linux/stringify.h>
tools/perf/builtin-diff.c +1 -0
index cd2605d..09be77b 100644
@@ -19,6 +19,7 @@
 #include "util/data.h"
 #include "util/config.h"
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <math.h>
 
tools/perf/builtin-kallsyms.c +1 -0
index 8ff38c4..bcfb363 100644
@@ -7,6 +7,7 @@
  *
  * Released under the GPL v2. (and only v2, not any later version)
  */
+#include <inttypes.h>
 #include "builtin.h"
 #include <linux/compiler.h>
 #include <subcmd/parse-options.h>
tools/perf/builtin-kmem.c +1 -0
index 8f0b945..fa6bf1c 100644
@@ -23,6 +23,7 @@
 #include <linux/kernel.h>
 #include <linux/rbtree.h>
 #include <linux/string.h>
+#include <inttypes.h>
 #include <locale.h>
 #include <regex.h>
 
tools/perf/builtin-kvm.c +1 -0
index a7d7f4c..e82a697 100644
@@ -26,6 +26,7 @@
 
 #include <linux/kernel.h>
 #include <linux/time64.h>
+#include <inttypes.h>
 #include <termios.h>
 #include <semaphore.h>
 #include <pthread.h>
tools/perf/builtin-lock.c +1 -0
index f74dd86..6f93a6f 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "builtin.h"
 #include "perf.h"
 
tools/perf/builtin-mem.c +1 -0
index 643f4fa..1ebc673 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "builtin.h"
 #include "perf.h"
 
tools/perf/builtin-record.c +1 -0
index 3191ab0..65429d1 100644
@@ -40,6 +40,7 @@
 #include "util/perf-hooks.h"
 #include "asm/bug.h"
 
+#include <inttypes.h>
 #include <unistd.h>
 #include <sched.h>
 #include <sys/mman.h>
tools/perf/builtin-report.c +1 -0
index c18158b..66a2f44 100644
@@ -40,6 +40,7 @@
 #include "util/auxtrace.h"
 
 #include <dlfcn.h>
+#include <inttypes.h>
 #include <linux/bitmap.h>
 #include <linux/stringify.h>
 
tools/perf/builtin-sched.c +1 -0
index 5cd6088..d4677fb 100644
@@ -26,6 +26,7 @@
 #include <linux/log2.h>
 #include <sys/prctl.h>
 #include <sys/resource.h>
+#include <inttypes.h>
 
 #include <semaphore.h>
 #include <pthread.h>
tools/perf/builtin-script.c +1 -0
index 36b0766..c4e36b4 100644
@@ -30,6 +30,7 @@
 #include "asm/bug.h"
 #include "util/mem-events.h"
 #include "util/dump-insn.h"
+#include <inttypes.h>
 
 static char const		*script_name;
 static char const		*generate_script_lang;
tools/perf/builtin-stat.c +1 -0
index 610225b..b7199f0 100644
@@ -70,6 +70,7 @@
 #include <api/fs/fs.h>
 #include <stdlib.h>
 #include <sys/prctl.h>
+#include <inttypes.h>
 #include <locale.h>
 #include <math.h>
 
tools/perf/builtin-timechart.c +1 -0
index 822c8d3..a24b229 100644
@@ -12,6 +12,7 @@
  * of the License.
  */
 
+#include <inttypes.h>
 #include <traceevent/event-parse.h>
 
 #include "builtin.h"
tools/perf/builtin-trace.c +1 -0
index 2792ed1..aba5fac 100644
@@ -39,6 +39,7 @@
 #include "syscalltbl.h"
 #include "rb_resort.h"
 
+#include <inttypes.h>
 #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */
 #include <stdlib.h>
 #include <string.h>
tools/perf/tests/attr.c +1 -0
index 88dc51f..bb2bc48 100644
@@ -18,6 +18,7 @@
  * permissions. All the event text files are stored there.
  */
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <linux/types.h>
tools/perf/tests/code-reading.c +1 -0
index 99dbd5a..6effcfb 100644
@@ -1,5 +1,6 @@
 #include <linux/kernel.h>
 #include <linux/types.h>
+#include <inttypes.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
tools/perf/tests/dwarf-unwind.c +1 -0
index 1046491..dfe5c89 100644
@@ -1,5 +1,6 @@
 #include <linux/compiler.h>
 #include <linux/types.h>
+#include <inttypes.h>
 #include <unistd.h>
 #include "tests.h"
 #include "debug.h"
tools/perf/tests/event-times.c +1 -0
index 19ef77b..8d376e1 100644
@@ -1,4 +1,5 @@
 #include <linux/compiler.h>
+#include <inttypes.h>
 #include <string.h>
 #include "tests.h"
 #include "evlist.h"
tools/perf/tests/hists_common.c +1 -0
index f6c580e..00b8dc5 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "perf.h"
 #include "util/debug.h"
 #include "util/symbol.h"
tools/perf/tests/mmap-basic.c +1 -0
index a7cb808..aba40eb 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 
tools/perf/tests/mmap-thread-lookup.c +1 -0
index 0c5ce44..a5ffb75 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
tools/perf/tests/openat-syscall-all-cpus.c +1 -0
index c8d9592..eb7b1a6 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CPU_* macros */
 #include <pthread.h>
 
tools/perf/tests/openat-syscall.c +1 -0
index d741412..5964938 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <api/fs/tracing_path.h>
 #include <linux/err.h>
 #include "thread_map.h"
tools/perf/tests/perf-record.c +1 -0
index 87893f3..a8b6fda 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 
tools/perf/tests/sample-parsing.c +1 -0
index 73b5e47..bac5c38 100644
@@ -1,4 +1,5 @@
 #include <stdbool.h>
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 
tools/perf/tests/sw-clock.c +1 -0
index 4c9fd04..29f11c4 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <signal.h>
tools/perf/tests/unit_number__scnprintf.c +1 -0
index 623c2aa..f84cb70 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include "tests.h"
tools/perf/tests/vmlinux-kallsyms.c +1 -0
index 862b043..8456175 100644
@@ -1,5 +1,6 @@
 #include <linux/compiler.h>
 #include <linux/rbtree.h>
+#include <inttypes.h>
 #include <string.h>
 #include "map.h"
 #include "symbol.h"
tools/perf/ui/browsers/annotate.c +1 -0
index 9adce11..2ed6412 100644
@@ -9,6 +9,7 @@
 #include "../../util/symbol.h"
 #include "../../util/evsel.h"
 #include "../../util/config.h"
+#include <inttypes.h>
 #include <pthread.h>
 #include <linux/kernel.h>
 
tools/perf/ui/browsers/hists.c +1 -0
index da24072..a2ea1fa 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
tools/perf/ui/gtk/annotate.c +1 -1
index 8c9308a..71359b8 100644
@@ -3,7 +3,7 @@
 #include "util/annotate.h"
 #include "util/evsel.h"
 #include "ui/helpline.h"
-
+#include <inttypes.h>
 
 enum {
 	ANN_COL__PERCENT,
tools/perf/ui/hist.c +1 -0
index 5d632dc..59addd5 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <math.h>
 #include <linux/compiler.h>
 
tools/perf/util/annotate.c +1 -0
index 45df4a3..4d4faf9 100644
@@ -7,6 +7,7 @@
  * Released under the GPL v2. (and only v2, not any later version)
  */
 
+#include <inttypes.h>
 #include "util.h"
 #include "ui/ui.h"
 #include "sort.h"
tools/perf/util/auxtrace.c +1 -0
index 78bd632..a81a402 100644
@@ -13,6 +13,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <stdbool.h>
tools/perf/util/callchain.c +1 -0
index 2e5eff5..0096d45 100644
@@ -9,6 +9,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdbool.h>
tools/perf/util/data-convert-bt.c +1 -0
index b791751..ef80221 100644
@@ -7,6 +7,7 @@
  * Released under the GPL v2. (and only v2, not any later version)
  */
 
+#include <inttypes.h>
 #include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <babeltrace/ctf-writer/writer.h>
tools/perf/util/debug.c +1 -0
index 03eb81f..4d5df25 100644
@@ -2,6 +2,7 @@
 
 #include "../perf.h"
 
+#include <inttypes.h>
 #include <string.h>
 #include <stdarg.h>
 #include <stdio.h>
tools/perf/util/dwarf-aux.c +1 -0
index 41e068e..5fb186d 100644
@@ -17,6 +17,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdbool.h>
 #include "util.h"
 #include "debug.h"
tools/perf/util/event.c +1 -0
index a0f59f6..b761b0e 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <uapi/linux/mman.h> /* To get things like MAP_HUGETLB even on older libc headers */
tools/perf/util/evlist.c +1 -0
index 50420cd..cf27039 100644
@@ -8,6 +8,7 @@
  */
 #include "util.h"
 #include <api/fs/fs.h>
+#include <inttypes.h>
 #include <poll.h>
 #include "cpumap.h"
 #include "thread_map.h"
tools/perf/util/evsel.c +1 -0
index 3779b9f..99a13a6 100644
@@ -8,6 +8,7 @@
  */
 
 #include <byteswap.h>
+#include <inttypes.h>
 #include <linux/bitops.h>
 #include <api/fs/tracing_path.h>
 #include <traceevent/event-parse.h>
tools/perf/util/evsel_fprintf.c +1 -0
index 4ef5184..8000f62 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <traceevent/event-parse.h>
tools/perf/util/header.c +1 -0
index 2ccc7f0..0371f34 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "util.h"
 #include <sys/types.h>
 #include <byteswap.h>
tools/perf/util/intel-bts.c +1 -0
index 6c2eb5d..471ed8b 100644
@@ -15,6 +15,7 @@
 
 #include <endian.h>
 #include <byteswap.h>
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <linux/bitops.h>
tools/perf/util/intel-pt.c +1 -0
index da20cd5..bdd4a28 100644
@@ -13,6 +13,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <errno.h>
tools/perf/util/machine.c +1 -0
index dfc6004..15b2a17c 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "callchain.h"
 #include "debug.h"
 #include "event.h"
tools/perf/util/ordered-events.c +1 -0
index e70e935..df05be6 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/list.h>
 #include <linux/compiler.h>
 #include <linux/string.h>
tools/perf/util/probe-event.c +1 -0
index e4b8894..e61b4b3 100644
@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/utsname.h>
 #include <sys/types.h>
 #include <sys/stat.h>
tools/perf/util/probe-finder.c +1 -0
index 57cd268..9ddd7da 100644
@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/utsname.h>
 #include <sys/types.h>
 #include <sys/stat.h>
tools/perf/util/scripting-engines/trace-event-perl.c +1 -0
index dff043a..2b12bdb 100644
@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
tools/perf/util/scripting-engines/trace-event-python.c +1 -0
index 783326c..dd61213 100644
@@ -21,6 +21,7 @@
 
 #include <Python.h>
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
tools/perf/util/session.c +1 -0
index 7b740a7..0695e08 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <traceevent/event-parse.h>
 #include <api/fs/fs.h>
tools/perf/util/sort.c +1 -0
index 13b9af1..63ad537 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <sys/mman.h>
 #include "sort.h"
 #include "hist.h"
tools/perf/util/srcline.c +1 -0
index 778ccb5..ef19280 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
tools/perf/util/stat.c +1 -0
index 0d51334..bbf30b2 100644
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <math.h>
 #include "stat.h"
 #include "evlist.h"
tools/perf/util/unwind-libunwind-local.c +1 -0
index bfb9b79..788f4d3 100644
@@ -18,6 +18,7 @@
 #include <elf.h>
 #include <gelf.h>
 #include <fcntl.h>
+#include <inttypes.h>
 #include <string.h>
 #include <unistd.h>
 #include <sys/mman.h>
tools/perf/util/util.c +1 -0
index 6097d87..524bd3b 100644
@@ -7,6 +7,7 @@
 #ifdef HAVE_BACKTRACE_SUPPORT
 #include <execinfo.h>
 #endif
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>