[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-3df76c9a8167ffff1588516fc74b980cde664efe@git.kernel.org>
Date: Wed, 17 Jan 2018 08:28:33 -0800
From: "tip-bot for Steven Rostedt (VMware)" <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: mingo@...nel.org, tglx@...utronix.de, hpa@...or.com,
rostedt@...dmis.org, namhyung@...nel.org, acme@...hat.com,
linux-kernel@...r.kernel.org, akpm@...ux-foundation.org
Subject: [tip:perf/core] tools lib traceevent: Show value of flags that have
not been parsed
Commit-ID: 3df76c9a8167ffff1588516fc74b980cde664efe
Gitweb: https://git.kernel.org/tip/3df76c9a8167ffff1588516fc74b980cde664efe
Author: Steven Rostedt (VMware) <rostedt@...dmis.org>
AuthorDate: Thu, 11 Jan 2018 19:47:43 -0500
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Wed, 17 Jan 2018 10:21:45 -0300
tools lib traceevent: Show value of flags that have not been parsed
If the value contains bits that are not defined by print_flags() helper,
then show the remaining bits. This aligns with the functionality of the
kernel.
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
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/20180112004821.976225232@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/lib/traceevent/event-parse.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 0bc1a6d..96c9c0b 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -3970,6 +3970,11 @@ static void print_str_arg(struct trace_seq *s, void *data, int size,
val &= ~fval;
}
}
+ if (val) {
+ if (print && arg->flags.delim)
+ trace_seq_puts(s, arg->flags.delim);
+ trace_seq_printf(s, "0x%llx", val);
+ }
break;
case PRINT_SYMBOL:
val = eval_num_arg(data, size, event, arg->symbol.field);
Powered by blists - more mailing lists