Skip to content

Commit 9880ce4

Browse files
mhiramatacmel
authored andcommitted
perf probe: Use hexadecimal type by default if possible
Use hexadecimal type by default if it is available on current running kernel. This keeps the default behavior of perf probe after changing the output format of 'u8/16/32/64' to unsigned decimal number. Signed-off-by: Masami Hiramatsu <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Hemant Kumar <[email protected]> Cc: Naohiro Aota <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/147151074685.12957.16415861010796255514.stgit@devbox Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 9254378 commit 9880ce4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/perf/util/probe-finder.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ static int convert_variable_type(Dwarf_Die *vr_die,
373373
probe_type_is_available(PROBE_TYPE_X))
374374
prefix = 'x';
375375
else
376-
prefix = die_is_signed_type(&type) ? 's' : 'u';
376+
prefix = die_is_signed_type(&type) ? 's' :
377+
probe_type_is_available(PROBE_TYPE_X) ? 'x' : 'u';
377378

378379
ret = dwarf_bytesize(&type);
379380
if (ret <= 0)

0 commit comments

Comments
 (0)