]> git.ipfire.org Git - thirdparty/linux.git/commit
tracing: Use explicit array size instead of sentinel elements in symbol printing
authorThomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Wed, 11 Mar 2026 10:15:11 +0000 (11:15 +0100)
committerThomas Gleixner <tglx@kernel.org>
Thu, 12 Mar 2026 11:15:53 +0000 (12:15 +0100)
commit754e38d2d1aeeadddac5220f34e07cf263502a46
tree0b1c54dcff170813d585efe4bcd3e6705312a849
parent5aa9383813aca45b914d4a7481ca417ef13114df
tracing: Use explicit array size instead of sentinel elements in symbol printing

The sentinel value added by the wrapper macros __print_symbolic() et al
prevents the callers from adding their own trailing comma. This makes
constructing symbol list dynamically based on kconfig values tedious.

Drop the sentinel elements, so callers can either specify the trailing
comma or not, just like in regular array initializers.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-2-095357392669@linutronix.de
include/linux/trace_events.h
include/trace/stages/stage3_trace_output.h
kernel/trace/trace_events_synth.c
kernel/trace/trace_output.c
kernel/trace/trace_syscalls.c