diff options
author | Steven Rostedt (VMware) <[email protected]> | 2018-01-11 19:47:43 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-01-17 10:21:45 -0300 |
commit | 3df76c9a8167ffff1588516fc74b980cde664efe (patch) | |
tree | 5d75334ba82cb5edaaa71a3d83ec1e762c0e8f9e | |
parent | 952a99ccfa9db2f9a32810fc9c0084f532dd871a (diff) |
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 <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 0bc1a6df8a27..96c9c0b33423 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); |