[RFC PATCH v2 09/14] perf stat: Extend CSV output linter to test advanced PMU and metric-only checks
From: Ian Rogers
Date: Mon May 25 2026 - 19:21:49 EST
This patch extends tools/perf/tests/shell/stat+csv_output.sh to run
the advanced hardware PMU, topology-aware aggregation, and metric-only
checks a second time under the --new CSV print flag:
- check_per_cache_instance
- check_per_cluster
- check_metric_only
This guarantees that CSV outputs produced by the decoupled printing callbacks
are verified and column-valid under advanced aggregation modes and metric-only
CSV row-column layouts.
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
Assisted-by: Antigravity:gemini-3.5-flash
---
tools/perf/tests/shell/stat+csv_output.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/perf/tests/shell/stat+csv_output.sh b/tools/perf/tests/shell/stat+csv_output.sh
index e4153a03d716..c48d9e2b6429 100755
--- a/tools/perf/tests/shell/stat+csv_output.sh
+++ b/tools/perf/tests/shell/stat+csv_output.sh
@@ -102,7 +102,10 @@ then
check_per_core "CSV (New API)" "$perf_cmd"
check_per_die "CSV (New API)" "$perf_cmd"
check_per_socket "CSV (New API)" "$perf_cmd"
+ check_per_cache_instance "CSV (New API)" "$perf_cmd"
+ check_per_cluster "CSV (New API)" "$perf_cmd"
fi
+check_metric_only "CSV (New API)" "$perf_cmd"
cleanup
exit 0
--
2.54.0.794.g4f17f83d09-goog