]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf stat: Display metric-only for 0 counters
authorIan Rogers <irogers@google.com>
Wed, 12 Nov 2025 19:53:11 +0000 (11:53 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 18 Nov 2025 01:31:59 +0000 (17:31 -0800)
commit289815011c91dc6532d3fff7ca1c5f0bea08b474
treeca5b18563a76e48d2b5dc42449781acff80c94e9
parentefee18981aeebc14d6fa06f7556a6df1bd1acf92
perf stat: Display metric-only for 0 counters

0 counters may occur in hypervisor settings but metric-only output is
always expected. This resolves an issue in the "perf stat STD output
linter" test.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Falcon <thomas.falcon@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/stat-display.c