Browse Source

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>
Arnaldo Carvalho de Melo 8 years ago
parent
commit
fd20e8111c
59 changed files with 59 additions and 1 deletions
  1. 1 0
      tools/perf/arch/x86/tests/perf-time-to-tsc.c
  2. 1 0
      tools/perf/bench/numa.c
  3. 1 0
      tools/perf/builtin-c2c.c
  4. 1 0
      tools/perf/builtin-diff.c
  5. 1 0
      tools/perf/builtin-kallsyms.c
  6. 1 0
      tools/perf/builtin-kmem.c
  7. 1 0
      tools/perf/builtin-kvm.c
  8. 1 0
      tools/perf/builtin-lock.c
  9. 1 0
      tools/perf/builtin-mem.c
  10. 1 0
      tools/perf/builtin-record.c
  11. 1 0
      tools/perf/builtin-report.c
  12. 1 0
      tools/perf/builtin-sched.c
  13. 1 0
      tools/perf/builtin-script.c
  14. 1 0
      tools/perf/builtin-stat.c
  15. 1 0
      tools/perf/builtin-timechart.c
  16. 1 0
      tools/perf/builtin-trace.c
  17. 1 0
      tools/perf/tests/attr.c
  18. 1 0
      tools/perf/tests/code-reading.c
  19. 1 0
      tools/perf/tests/dwarf-unwind.c
  20. 1 0
      tools/perf/tests/event-times.c
  21. 1 0
      tools/perf/tests/hists_common.c
  22. 1 0
      tools/perf/tests/mmap-basic.c
  23. 1 0
      tools/perf/tests/mmap-thread-lookup.c
  24. 1 0
      tools/perf/tests/openat-syscall-all-cpus.c
  25. 1 0
      tools/perf/tests/openat-syscall.c
  26. 1 0
      tools/perf/tests/perf-record.c
  27. 1 0
      tools/perf/tests/sample-parsing.c
  28. 1 0
      tools/perf/tests/sw-clock.c
  29. 1 0
      tools/perf/tests/unit_number__scnprintf.c
  30. 1 0
      tools/perf/tests/vmlinux-kallsyms.c
  31. 1 0
      tools/perf/ui/browsers/annotate.c
  32. 1 0
      tools/perf/ui/browsers/hists.c
  33. 1 1
      tools/perf/ui/gtk/annotate.c
  34. 1 0
      tools/perf/ui/hist.c
  35. 1 0
      tools/perf/util/annotate.c
  36. 1 0
      tools/perf/util/auxtrace.c
  37. 1 0
      tools/perf/util/callchain.c
  38. 1 0
      tools/perf/util/data-convert-bt.c
  39. 1 0
      tools/perf/util/debug.c
  40. 1 0
      tools/perf/util/dwarf-aux.c
  41. 1 0
      tools/perf/util/event.c
  42. 1 0
      tools/perf/util/evlist.c
  43. 1 0
      tools/perf/util/evsel.c
  44. 1 0
      tools/perf/util/evsel_fprintf.c
  45. 1 0
      tools/perf/util/header.c
  46. 1 0
      tools/perf/util/intel-bts.c
  47. 1 0
      tools/perf/util/intel-pt.c
  48. 1 0
      tools/perf/util/machine.c
  49. 1 0
      tools/perf/util/ordered-events.c
  50. 1 0
      tools/perf/util/probe-event.c
  51. 1 0
      tools/perf/util/probe-finder.c
  52. 1 0
      tools/perf/util/scripting-engines/trace-event-perl.c
  53. 1 0
      tools/perf/util/scripting-engines/trace-event-python.c
  54. 1 0
      tools/perf/util/session.c
  55. 1 0
      tools/perf/util/sort.c
  56. 1 0
      tools/perf/util/srcline.c
  57. 1 0
      tools/perf/util/stat.c
  58. 1 0
      tools/perf/util/unwind-libunwind-local.c
  59. 1 0
      tools/perf/util/util.c

+ 1 - 0
tools/perf/arch/x86/tests/perf-time-to-tsc.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <linux/types.h>

+ 1 - 0
tools/perf/bench/numa.c

@@ -4,6 +4,7 @@
  * numa: Simulate NUMA-sensitive workload and measure their NUMA performance
  */
 
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 

+ 1 - 0
tools/perf/builtin-c2c.c

@@ -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>

+ 1 - 0
tools/perf/builtin-diff.c

@@ -19,6 +19,7 @@
 #include "util/data.h"
 #include "util/config.h"
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <math.h>
 

+ 1 - 0
tools/perf/builtin-kallsyms.c

@@ -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>

+ 1 - 0
tools/perf/builtin-kmem.c

@@ -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>
 

+ 1 - 0
tools/perf/builtin-kvm.c

@@ -26,6 +26,7 @@
 
 #include <linux/kernel.h>
 #include <linux/time64.h>
+#include <inttypes.h>
 #include <termios.h>
 #include <semaphore.h>
 #include <pthread.h>

+ 1 - 0
tools/perf/builtin-lock.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "builtin.h"
 #include "perf.h"
 

+ 1 - 0
tools/perf/builtin-mem.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "builtin.h"
 #include "perf.h"
 

+ 1 - 0
tools/perf/builtin-record.c

@@ -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>

+ 1 - 0
tools/perf/builtin-report.c

@@ -40,6 +40,7 @@
 #include "util/auxtrace.h"
 
 #include <dlfcn.h>
+#include <inttypes.h>
 #include <linux/bitmap.h>
 #include <linux/stringify.h>
 

+ 1 - 0
tools/perf/builtin-sched.c

@@ -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>

+ 1 - 0
tools/perf/builtin-script.c

@@ -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;

+ 1 - 0
tools/perf/builtin-stat.c

@@ -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>
 

+ 1 - 0
tools/perf/builtin-timechart.c

@@ -12,6 +12,7 @@
  * of the License.
  */
 
+#include <inttypes.h>
 #include <traceevent/event-parse.h>
 
 #include "builtin.h"

+ 1 - 0
tools/perf/builtin-trace.c

@@ -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>

+ 1 - 0
tools/perf/tests/attr.c

@@ -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>

+ 1 - 0
tools/perf/tests/code-reading.c

@@ -1,5 +1,6 @@
 #include <linux/kernel.h>
 #include <linux/types.h>
+#include <inttypes.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdio.h>

+ 1 - 0
tools/perf/tests/dwarf-unwind.c

@@ -1,5 +1,6 @@
 #include <linux/compiler.h>
 #include <linux/types.h>
+#include <inttypes.h>
 #include <unistd.h>
 #include "tests.h"
 #include "debug.h"

+ 1 - 0
tools/perf/tests/event-times.c

@@ -1,4 +1,5 @@
 #include <linux/compiler.h>
+#include <inttypes.h>
 #include <string.h>
 #include "tests.h"
 #include "evlist.h"

+ 1 - 0
tools/perf/tests/hists_common.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "perf.h"
 #include "util/debug.h"
 #include "util/symbol.h"

+ 1 - 0
tools/perf/tests/mmap-basic.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 

+ 1 - 0
tools/perf/tests/mmap-thread-lookup.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/types.h>

+ 1 - 0
tools/perf/tests/openat-syscall-all-cpus.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CPU_* macros */
 #include <pthread.h>
 

+ 1 - 0
tools/perf/tests/openat-syscall.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <api/fs/tracing_path.h>
 #include <linux/err.h>
 #include "thread_map.h"

+ 1 - 0
tools/perf/tests/perf-record.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 /* For the CLR_() macros */
 #include <pthread.h>
 

+ 1 - 0
tools/perf/tests/sample-parsing.c

@@ -1,4 +1,5 @@
 #include <stdbool.h>
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 

+ 1 - 0
tools/perf/tests/sw-clock.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <unistd.h>
 #include <stdlib.h>
 #include <signal.h>

+ 1 - 0
tools/perf/tests/unit_number__scnprintf.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/compiler.h>
 #include <linux/types.h>
 #include "tests.h"

+ 1 - 0
tools/perf/tests/vmlinux-kallsyms.c

@@ -1,5 +1,6 @@
 #include <linux/compiler.h>
 #include <linux/rbtree.h>
+#include <inttypes.h>
 #include <string.h>
 #include "map.h"
 #include "symbol.h"

+ 1 - 0
tools/perf/ui/browsers/annotate.c

@@ -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>
 

+ 1 - 0
tools/perf/ui/browsers/hists.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 1 - 1
tools/perf/ui/gtk/annotate.c

@@ -3,7 +3,7 @@
 #include "util/annotate.h"
 #include "util/evsel.h"
 #include "ui/helpline.h"
-
+#include <inttypes.h>
 
 enum {
 	ANN_COL__PERCENT,

+ 1 - 0
tools/perf/ui/hist.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <math.h>
 #include <linux/compiler.h>
 

+ 1 - 0
tools/perf/util/annotate.c

@@ -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"

+ 1 - 0
tools/perf/util/auxtrace.c

@@ -13,6 +13,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/types.h>
 #include <sys/mman.h>
 #include <stdbool.h>

+ 1 - 0
tools/perf/util/callchain.c

@@ -9,6 +9,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdbool.h>

+ 1 - 0
tools/perf/util/data-convert-bt.c

@@ -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>

+ 1 - 0
tools/perf/util/debug.c

@@ -2,6 +2,7 @@
 
 #include "../perf.h"
 
+#include <inttypes.h>
 #include <string.h>
 #include <stdarg.h>
 #include <stdio.h>

+ 1 - 0
tools/perf/util/dwarf-aux.c

@@ -17,6 +17,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdbool.h>
 #include "util.h"
 #include "debug.h"

+ 1 - 0
tools/perf/util/event.c

@@ -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 */

+ 1 - 0
tools/perf/util/evlist.c

@@ -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"

+ 1 - 0
tools/perf/util/evsel.c

@@ -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>

+ 1 - 0
tools/perf/util/evsel_fprintf.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <traceevent/event-parse.h>

+ 1 - 0
tools/perf/util/header.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "util.h"
 #include <sys/types.h>
 #include <byteswap.h>

+ 1 - 0
tools/perf/util/intel-bts.c

@@ -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>

+ 1 - 0
tools/perf/util/intel-pt.c

@@ -13,6 +13,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdbool.h>
 #include <errno.h>

+ 1 - 0
tools/perf/util/machine.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include "callchain.h"
 #include "debug.h"
 #include "event.h"

+ 1 - 0
tools/perf/util/ordered-events.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/list.h>
 #include <linux/compiler.h>
 #include <linux/string.h>

+ 1 - 0
tools/perf/util/probe-event.c

@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/utsname.h>
 #include <sys/types.h>
 #include <sys/stat.h>

+ 1 - 0
tools/perf/util/probe-finder.c

@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <sys/utsname.h>
 #include <sys/types.h>
 #include <sys/stat.h>

+ 1 - 0
tools/perf/util/scripting-engines/trace-event-perl.c

@@ -19,6 +19,7 @@
  *
  */
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 1 - 0
tools/perf/util/scripting-engines/trace-event-python.c

@@ -21,6 +21,7 @@
 
 #include <Python.h>
 
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 1 - 0
tools/perf/util/session.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <linux/kernel.h>
 #include <traceevent/event-parse.h>
 #include <api/fs/fs.h>

+ 1 - 0
tools/perf/util/sort.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <sys/mman.h>
 #include "sort.h"
 #include "hist.h"

+ 1 - 0
tools/perf/util/srcline.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 1 - 0
tools/perf/util/stat.c

@@ -1,3 +1,4 @@
+#include <inttypes.h>
 #include <math.h>
 #include "stat.h"
 #include "evlist.h"

+ 1 - 0
tools/perf/util/unwind-libunwind-local.c

@@ -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>

+ 1 - 0
tools/perf/util/util.c

@@ -7,6 +7,7 @@
 #ifdef HAVE_BACKTRACE_SUPPORT
 #include <execinfo.h>
 #endif
+#include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>