Skip to content

Commit 62663b8

Browse files
Tero Kristorostedt
Tero Kristo
authored andcommitted
tracing/synthetic: Print out u64 values properly
The synth traces incorrectly print pointer to the synthetic event values instead of the actual value when using u64 type. Fix by addressing the contents of the union properly. Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Fixes: ddeea49 ("tracing/synthetic: Use union instead of casts") Cc: [email protected] Signed-off-by: Tero Kristo <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent fc52a64 commit 62663b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_events_synth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static void print_synth_event_num_val(struct trace_seq *s,
337337
break;
338338

339339
default:
340-
trace_seq_printf(s, print_fmt, name, val, space);
340+
trace_seq_printf(s, print_fmt, name, val->as_u64, space);
341341
break;
342342
}
343343
}

0 commit comments

Comments
 (0)