[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-d63444739bee6acfa9a834515da17f9cec544505@git.kernel.org>
Date: Wed, 17 Jan 2018 08:28:58 -0800
From: tip-bot for Jan Kiszka <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: jan.kiszka@...mens.com, mingo@...nel.org,
linux-kernel@...r.kernel.org, hpa@...or.com, tglx@...utronix.de,
akpm@...ux-foundation.org, namhyung@...nel.org, acme@...hat.com,
rostedt@...dmis.org
Subject: [tip:perf/core] tools lib traceevent: Print value of unknown
symbolic fields
Commit-ID: d63444739bee6acfa9a834515da17f9cec544505
Gitweb: https://git.kernel.org/tip/d63444739bee6acfa9a834515da17f9cec544505
Author: Jan Kiszka <jan.kiszka@...mens.com>
AuthorDate: Thu, 11 Jan 2018 19:47:44 -0500
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Wed, 17 Jan 2018 10:21:57 -0300
tools lib traceevent: Print value of unknown symbolic fields
Aligns trace-cmd with the behavior of the kernel.
Signed-off-by: Jan Kiszka <jan.kiszka@...mens.com>
Acked-by: Namhyung Kim <namhyung@...nel.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Link: http://lkml.kernel.org/r/e60c889f-55e7-4ee8-0e50-151e435ffd8c@siemens.com
Link: http://lkml.kernel.org/r/20180112004822.118332436@goodmis.org
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/lib/traceevent/event-parse.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 96c9c0b..87757ea 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -3985,6 +3985,8 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
break;
}
}
+ if (!flag)
+ trace_seq_printf(s, "0x%llx", val);
break;
case PRINT_HEX:
case PRINT_HEX_STR:
Powered by blists - more mailing lists