Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1465015

[PATCH 5/6] perf-probe: Use hexadecimal type by default if possible

From Masami Hiramatsu <mhiramat@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 5/6] perf-probe: Use hexadecimal type by default if possible
Date 2016-08-18 11:10 +0200
Message-ID <s7ruN-66w-9@gated-at.bofh.it> (permalink)
References <s7rl7-5No-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <mhiramat@kernel.org>
---
 tools/perf/util/probe-finder.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index f18cd6b..ac4740f 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -373,7 +373,8 @@ static int convert_variable_type(Dwarf_Die *vr_die,
 		 probe_type_is_available(PROBE_TYPE_X))
 		prefix = 'x';
 	else
-		prefix = die_is_signed_type(&type) ? 's' : 'u';
+		prefix = die_is_signed_type(&type) ? 's' :
+			 probe_type_is_available(PROBE_TYPE_X) ? 'x' : 'u';
 
 	ret = dwarf_bytesize(&type);
 	if (ret <= 0)

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 5/6] perf-probe: Use hexadecimal type by default if possible Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-18 11:10 +0200
  [tip:perf/core] perf probe: Use hexadecimal type by default if  possible tip-bot for Masami Hiramatsu <tipbot@zytor.com> - 2016-08-24 11:50 +0200

csiph-web