perf trace: Show zero value in STRARRAY
authorNamhyung Kim <namhyung@kernel.org>
Fri, 2 May 2025 20:40:56 +0000 (13:40 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 24 Jun 2025 17:27:50 +0000 (10:27 -0700)
commit317fa41b47da63730145e336c9ef47c62b78ee4f
treec2ee842b5fd9feab51ae3a8550d7b793c75d0fae
parentc21986d33d6beb269a35b38dcb8adaa5bd228527
perf trace: Show zero value in STRARRAY

The STRARRAY macro is to print values in a pre-defined array.  But
sometimes it hides the value because it's 0.  The value of 0 can have a
meaning in this case so set 'show_zero' field.

For example, it can show CREATE_MAP cmd in the bpf syscall.

Acked-by: Howard Chu <howardchu95@gmail.com>
Link: https://lore.kernel.org/r/20250502204056.973977-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-trace.c