Commit 3df76c9a authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware) Committed by Arnaldo Carvalho de Melo

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
Signed-off-by: default avatarSteven Rostedt <>
Acked-by: default avatarNamhyung Kim <>
Cc: Andrew Morton <>
Link: default avatarArnaldo Carvalho de Melo <>
parent 952a99cc
......@@ -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);
val = eval_num_arg(data, size, event, arg->symbol.field);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment