Skip to content

Commit fd20e81

Browse files
committed
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>
1 parent b640985 commit fd20e81

59 files changed

Lines changed: 59 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎tools/perf/arch/x86/tests/perf-time-to-tsc.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <inttypes.h>
12
#include <stdio.h>
23
#include <unistd.h>
34
#include <linux/types.h>

‎tools/perf/bench/numa.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* numa: Simulate NUMA-sensitive workload and measure their NUMA performance
55
*/
66

7+
#include <inttypes.h>
78
/* For the CLR_() macros */
89
#include <pthread.h>
910

‎tools/perf/builtin-c2c.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Dick Fowles <fowles@inreach.com>
1010
* Joe Mario <jmario@redhat.com>
1111
*/
12+
#include <inttypes.h>
1213
#include <linux/compiler.h>
1314
#include <linux/kernel.h>
1415
#include <linux/stringify.h>

‎tools/perf/builtin-diff.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "util/data.h"
2020
#include "util/config.h"
2121

22+
#include <inttypes.h>
2223
#include <stdlib.h>
2324
#include <math.h>
2425

‎tools/perf/builtin-kallsyms.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*
88
* Released under the GPL v2. (and only v2, not any later version)
99
*/
10+
#include <inttypes.h>
1011
#include "builtin.h"
1112
#include <linux/compiler.h>
1213
#include <subcmd/parse-options.h>

‎tools/perf/builtin-kmem.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/kernel.h>
2424
#include <linux/rbtree.h>
2525
#include <linux/string.h>
26+
#include <inttypes.h>
2627
#include <locale.h>
2728
#include <regex.h>
2829

‎tools/perf/builtin-kvm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#include <linux/kernel.h>
2828
#include <linux/time64.h>
29+
#include <inttypes.h>
2930
#include <termios.h>
3031
#include <semaphore.h>
3132
#include <pthread.h>

‎tools/perf/builtin-lock.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <inttypes.h>
12
#include "builtin.h"
23
#include "perf.h"
34

‎tools/perf/builtin-mem.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include <inttypes.h>
12
#include "builtin.h"
23
#include "perf.h"
34

‎tools/perf/builtin-record.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "util/perf-hooks.h"
4141
#include "asm/bug.h"
4242

43+
#include <inttypes.h>
4344
#include <unistd.h>
4445
#include <sched.h>
4546
#include <sys/mman.h>

0 commit comments

Comments
 (0)