perf header: Display message if BPF/BTF info is empty
authorIan Rogers <irogers@google.com>
Sat, 7 Jun 2025 06:12:37 +0000 (23:12 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 25 Jun 2025 19:37:35 +0000 (12:37 -0700)
commit4d2eefd7fb91482f1327f28f14112201e0b45dff
tree98f5ccf17acc9e480e0908a463f1cff0e35727e4
parent57cbd56e2efe26483be2d4e7f62a7d9d816b54f1
perf header: Display message if BPF/BTF info is empty

The perf.data file may contain a bpf_prog_info or bpf_btf feature. If
the contents of these are empty then nothing is displayed. Rather than
display nothing and not account for the file space, display an empty
message.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250617223356.2752099-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/header.c