aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2017-02-17 12:27:26 -0300
committerArnaldo Carvalho de Melo <[email protected]>2017-02-17 12:27:26 -0300
commit8074bf51fe5af68dcbc12bd7fa72dc4be8f41dde (patch)
tree8a836c5f6843d838d077961a1eb3121f01fcc8b5 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent9c72fd0ff092526ea25c5a59d4a6ed94aeb4a66f (diff)
perf session: Fix DEBUG=1 build with clang
The struct branch_stack->branch_stack.cycles field is a u64 :16 bitfield, and this somehow confuses clang 4.0 when checking the arguments of a printf format, so cast the :16 to unsigned short to help it. Silences this: util/session.c:935:4: error: format specifies type 'unsigned short' but the argument has type 'u64' (aka 'unsigned long') [-Werror,-Wformat] e->flags.cycles, ^~~~~~~~~~~~~~~ 1 error generated. Cc: Adrian Hunter <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions