perf tools: Including missing inttypes.h header
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Apr 2017 18:23:08 +0000 (15:23 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Apr 2017 16:01:46 +0000 (13:01 -0300)
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:
tools/perf/arch/x86/tests/perf-time-to-tsc.c
tools/perf/bench/numa.c
tools/perf/builtin-c2c.c
tools/perf/builtin-diff.c
tools/perf/builtin-kallsyms.c
tools/perf/builtin-kmem.c
tools/perf/builtin-kvm.c
tools/perf/builtin-lock.c
tools/perf/builtin-mem.c
tools/perf/builtin-record.c
tools/perf/builtin-report.c
tools/perf/builtin-sched.c
tools/perf/builtin-script.c
tools/perf/builtin-stat.c
tools/perf/builtin-timechart.c
tools/perf/builtin-trace.c
tools/perf/tests/attr.c
tools/perf/tests/code-reading.c
tools/perf/tests/dwarf-unwind.c
tools/perf/tests/event-times.c
tools/perf/tests/hists_common.c
tools/perf/tests/mmap-basic.c
tools/perf/tests/mmap-thread-lookup.c
tools/perf/tests/openat-syscall-all-cpus.c
tools/perf/tests/openat-syscall.c
tools/perf/tests/perf-record.c
tools/perf/tests/sample-parsing.c
tools/perf/tests/sw-clock.c
tools/perf/tests/unit_number__scnprintf.c
tools/perf/tests/vmlinux-kallsyms.c
tools/perf/ui/browsers/annotate.c
tools/perf/ui/browsers/hists.c
tools/perf/ui/gtk/annotate.c
tools/perf/ui/hist.c
tools/perf/util/annotate.c
tools/perf/util/auxtrace.c
tools/perf/util/callchain.c
tools/perf/util/data-convert-bt.c
tools/perf/util/debug.c
tools/perf/util/dwarf-aux.c
tools/perf/util/event.c
tools/perf/util/evlist.c
tools/perf/util/evsel.c
tools/perf/util/evsel_fprintf.c
tools/perf/util/header.c
tools/perf/util/intel-bts.c
tools/perf/util/intel-pt.c
tools/perf/util/machine.c
tools/perf/util/ordered-events.c
tools/perf/util/probe-event.c
tools/perf/util/probe-finder.c
tools/perf/util/scripting-engines/trace-event-perl.c
tools/perf/util/scripting-engines/trace-event-python.c
tools/perf/util/session.c
tools/perf/util/sort.c
tools/perf/util/srcline.c
tools/perf/util/stat.c
tools/perf/util/unwind-libunwind-local.c
tools/perf/util/util.c

index 5c76cc83186a24ae0df5f3986a922dc75e4ff959..a8e37f3148c264b9a726bf022bbdba79c62afa8e 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <linux/types.h>
index 27ebd50ee619aade7d4f402d5ab4a0d6929bc156..27de0c8c5c19a19e42f20c15f4d198cf31405857 100644 (file)
@@ -4,6 +4,7 @@
  * numa: Simulate NUMA-sensitive workload and measure their NUMA performance
  */
 
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 
index 70c2c773a2b84668bfb705fa399cec9ef69c0529..cc8156a969acbaef08974c4cbd8b3a4add3cb696 100644 (file)
@@ -9,6 +9,7 @@
  *   Dick Fowles <fowles@inreach.com>
  *   Joe Mario <jmario@redhat.com>
  */
+#include <inttypes.h>
 #include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <linux/stringify.h>
index cd2605d86984a21860fa6f70a1bbd695bd44de2f..09be77b1378837dd00afdd861deafb8d67d37088 100644 (file)
@@ -19,6 +19,7 @@
 #include "util/data.h"
 #include "util/config.h"
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <math.h>
 
index 8ff38c4eb2c0b4ebb444168d35133dae9287e7c0..bcfb363112d3c999b7b09d2d99b771c04358fdfa 100644 (file)
@@ -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>
index 8f0b94563936c8a20d064e38504fc50f6079c3de..fa6bf1c39b65efe21e64b131ce5ef9850ee6a399 100644 (file)
@@ -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>
 
index a7d7f4c6052e2ff89ff492cf395807189eaeeb05..e82a6979327f1de64148954b499829a4ebdd275d 100644 (file)
@@ -26,6 +26,7 @@
 
 #include <linux/kernel.h>
 #include <linux/time64.h>
+#include <inttypes.h>
 #include <termios.h>
 #include <semaphore.h>
 #include <pthread.h>
index f74dd869f88b95d5506ef63e0be5f316f6266551..6f93a6f0e26840d4341616d43c4fd32f17a4f3fd 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "builtin.h"
 #include "perf.h"
 
index 643f4faac0d003439f848fed0de73ecf6f76be01..1ebc67390898f504ee206a28b7b0d77bc9e454d5 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "builtin.h"
 #include "perf.h"
 
index 3191ab0638525928f16a71a6e78d2944f7f1cd81..65429d1b29c880dd8b8b328026f64c0ebf5c0f5d 100644 (file)
@@ -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>
index c18158b83eb1229e373bbba53851c12a3e9660d0..66a2f44518de2bd792f4eecba1d09a9075c7d1fc 100644 (file)
@@ -40,6 +40,7 @@
 #include "util/auxtrace.h"
 
 #include <dlfcn.h>
+#include <inttypes.h>
 #include <linux/bitmap.h>
 #include <linux/stringify.h>
 
index 5cd60882c8d924b90c67fae6aff89d29378bef72..d4677fb7f7f5ba6a26eb75313b0e0116bb6c383e 100644 (file)
@@ -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>
index 36b076653d1674b4dc8079a97a2f6d1c3f210851..c4e36b4743f4f267356349620d548e3c9a485da7 100644 (file)
@@ -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;
index 610225b6326e492c0c9906009182d797a88bfc02..b7199f02907365f66a4296ded70a3c03856e3d9c 100644 (file)
@@ -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>
 
index 822c8d39ca1d50f0b77a582ec76a97b256920495..a24b229a785f7bd28e291a888f6494f5eb151e68 100644 (file)
@@ -12,6 +12,7 @@
  * of the License.
  */
 
+#include <inttypes.h>
 #include <traceevent/event-parse.h>
 
 #include "builtin.h"
index 2792ed1fae438dfb1d60e889fea9fed80edcdb77..aba5fac4152923faf50e6be2e1723ad98964b3e9 100644 (file)
@@ -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>
index 88dc51f4c27b2df8c5d8dc482a189b9831cb2832..bb2bc487f703fecd7efdcb5ac7402eb5cb7fa630 100644 (file)
@@ -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>
index 99dbd5ae294a70ae34a37e808349eca1849e6601..6effcfb7e0c13e06fc9e83819d7b47141ae44bd1 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/kernel.h>
 #include <linux/types.h>
+#include <inttypes.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>
index 1046491de4b295830f0a3ecea7616e018859d1aa..dfe5c89e2049f03fdb1305f8161928fa9f71f37e 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/compiler.h>
 #include <linux/types.h>
+#include <inttypes.h>
 #include <unistd.h>
 #include "tests.h"
 #include "debug.h"
index 19ef77bd6eb4152b539dc46638d4ef3a8db972e3..8d376e155697baf25a9d011dc3ed58a60769c49d 100644 (file)
@@ -1,4 +1,5 @@
 #include <linux/compiler.h>
+#include <inttypes.h>
 #include <string.h>
 #include "tests.h"
 #include "evlist.h"
index f6c580e3ed843eb5dad552de0c8edbe53adafe30..00b8dc50f3dba8ffa1cbcc75938d15718741d75b 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "perf.h"
 #include "util/debug.h"
 #include "util/symbol.h"
index a7cb80805993ed3248f1e52bd26dbee5e5a5b330..aba40eb4c56fc5b03fdcc22f6cb043504a45737c 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 
index 0c5ce44f723fcbfd9c43b6c15377c27d2d503038..a5ffb754f8c66d56f1bc816769df0c99cdcb8ccf 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
index c8d9592eb142dd08ef4cf216dd67e6e6614996b7..eb7b1a6d507eaf9b988e17f5f1330de8be32280f 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CPU_* macros */
 #include <pthread.h>
 
index d7414128d7fe40d150dcb2424082dd858f6779d1..5964938d4b85d9773cd72332d7152f2ac1631319 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <api/fs/tracing_path.h>
 #include <linux/err.h>
 #include "thread_map.h"
index 87893f3ba5f1766cffa093ce44db50de45526279..a8b6fdaf8df11caa50b69f828938b64eb8c4620b 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 
index 73b5e47ef20b29c3b107b5aa2dac87c8f20e46c3..bac5c3885b3be58180eb4fc258c72b9b0c8241be 100644 (file)
@@ -1,4 +1,5 @@
 #include <stdbool.h>
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 
index 4c9fd046d57b1772422747fbf7deea8be036d68f..29f11c4b3e603d51c26670b456bc2439c4dda22b 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <signal.h>
index 623c2aa53c4aa37e109a595ed31d799bc2205564..f84cb70ee5e584333c2e26315a1f9d924f980f1a 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include "tests.h"
index 862b043e59243588671c75298b337d8cd4e29c3b..8456175fc23458091aaf787a465d3a7123fd5f71 100644 (file)
@@ -1,5 +1,6 @@
 #include <linux/compiler.h>
 #include <linux/rbtree.h>
+#include <inttypes.h>
 #include <string.h>
 #include "map.h"
 #include "symbol.h"
index 9adce112d255b1a1beb0cbdaa87447636ba09d46..2ed64124276f83826376a43fbef1d970efb00819 100644 (file)
@@ -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>
 
index da24072bb76ec29ca481c1badfad9b9a6e1954ba..a2ea1fa15ae6a460bcd72dd8b18b609e9da60826 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 8c9308ac30b7e77024170e441ef97be14ccb4865..71359b898b67350049910b1256992e4973de0dc1 100644 (file)
@@ -3,7 +3,7 @@
 #include "util/annotate.h"
 #include "util/evsel.h"
 #include "ui/helpline.h"
-
+#include <inttypes.h>
 
 enum {
        ANN_COL__PERCENT,
index 5d632dca672aef2851778fb50be672e39c99bf50..59addd52d9cd51ab2d8789989a9d377d2ce23eb5 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <math.h>
 #include <linux/compiler.h>
 
index 45df4a38811a41bcb872c7f18b22e889887f0376..4d4faf99d52d91e7ce4f16f29dd47218b8b52688 100644 (file)
@@ -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"
index 78bd632f144d0eed2846467ca7b45b4338990610..a81a402a74591ed67c595d23b7d91fd32e99e158 100644 (file)
@@ -13,6 +13,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <stdbool.h>
index 2e5eff5abef06693fc7e90620efbd5975a0d25a0..0096d45a06b3d0a290284805c77e539fb7a534c7 100644 (file)
@@ -9,6 +9,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdbool.h>
index b7917519f6cc735b608f1ac5adacd9a340f6af12..ef80221e0d9cb24c7dc85d9b3ba4059cf50dd57f 100644 (file)
@@ -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>
index 03eb81f30d0d0d471fdff09e8779ed02fd73eb36..4d5df25f155a12a5e6708227c00f00a4de1bf7f2 100644 (file)
@@ -2,6 +2,7 @@
 
 #include "../perf.h"
 
+#include <inttypes.h>
 #include <string.h>
 #include <stdarg.h>
 #include <stdio.h>
index 41e068e943499d2e7ce7a1794936eff09afd7077..5fb186d142f6907178060727997203acb37ae2f6 100644 (file)
@@ -17,6 +17,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdbool.h>
 #include "util.h"
 #include "debug.h"
index a0f59f69f46a01e8d984492b6dbbea86546ee80c..b761b0eb60aff29c0c02c4e6366711c774e4b9e7 100644 (file)
@@ -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 */
index 50420cd354467361615d8606d6dde73f5e588a45..cf27039df1007f084e78dc8c41e442113422f06e 100644 (file)
@@ -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"
index 3779b9f3f134c456ff8240aad1353ce64e11c2c5..99a13a63ff1f7504fd18e6cbb055e5f3bc4d405b 100644 (file)
@@ -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>
index 4ef5184819a0975d592aecff5204d9d273494b4f..8000f62d5d53a70e1771e742853abd0faa8c210d 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <traceevent/event-parse.h>
index 2ccc7f06db799446a6b06d06a692d77dd2410ed7..0371f3483ede146437e29c3d16fb9dd276570f09 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "util.h"
 #include <sys/types.h>
 #include <byteswap.h>
index 6c2eb5da4afc0d290786881ebd9a7d9c5f83775f..471ed8b26a1c177e2e8d3b3ad57df51adf199768 100644 (file)
@@ -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>
index da20cd5612e97f53853a3fdfb79502cdfa5d3a6b..bdd4a28c6cee13e296b425d40343fb3b6e11a861 100644 (file)
@@ -13,6 +13,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <errno.h>
index dfc600446586957f620fd22a53760f2982bff94f..15b2a17cf76ec81c0177076ecca7c8ce92fc8582 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "callchain.h"
 #include "debug.h"
 #include "event.h"
index e70e935b1841967fecd4620bea5c94d2ed62d1e6..df05be69cc9ee8fa133425dcccf42b35e84919fd 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/list.h>
 #include <linux/compiler.h>
 #include <linux/string.h>
index e4b889444447d410687b7a5d640717da9a6c74e3..e61b4b34a929fb0d49e2c283cac1a0fde33e07e6 100644 (file)
@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/utsname.h>
 #include <sys/types.h>
 #include <sys/stat.h>
index 57cd268d4275bd2c8a3f8f1e43f29fab1fe1a835..9ddd7dad2e6e736dbc03b946eb076d03e0626f2f 100644 (file)
@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/utsname.h>
 #include <sys/types.h>
 #include <sys/stat.h>
index dff043a2958921f61e0e9ee7f803bdcfb9bfc5bf..2b12bdb3ce33d0fbc9b8d5387fc5323153511b6e 100644 (file)
@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 783326cfbaa6bfdaeef277dc9545f55213ffa942..dd61213e7a3cba0be614691ff326b3caba08bb3b 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <Python.h>
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 7b740a73e595eb04701bea546ff5ebdcc797edbf..0695e08d22526c923861880f7d6d41bc320cef3f 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <traceevent/event-parse.h>
 #include <api/fs/fs.h>
index 13b9af1d1b454d3908e857c2243c42a1f8decf57..63ad5374f364efcc88edd47e994171c4e3d4bac2 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <sys/mman.h>
 #include "sort.h"
 #include "hist.h"
index 778ccb5d99d14c3bcc1d742c3feefc6fe34531b2..ef192802edc96dc1056e25e957d18fd52f587ca7 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 0d51334a9b4628090f35ffe4da921b4e0ecb15b0..bbf30b2d16143af633006fcbccbcafa28efb3b9d 100644 (file)
@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <math.h>
 #include "stat.h"
 #include "evlist.h"
index bfb9b7987692ee583104c54f7756c43ca13cf52e..788f4d3c76f51afc7662c79e64f8da4f73310bf1 100644 (file)
@@ -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>
index 6097d87429e2b2d14f19c34e5249434eb9b1c65a..524bd3b9d98d426f0aaedce737091630a7b649d9 100644 (file)
@@ -7,6 +7,7 @@
 #ifdef HAVE_BACKTRACE_SUPPORT
 #include <execinfo.h>
 #endif
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>