[RFC PATCH v1 05/14] perf stat: Extend STD output linter to test advanced PMU checks

From: Ian Rogers

Date: Fri May 22 2026 - 18:34:48 EST


This patch extends tools/perf/tests/shell/stat+std_output.sh to run
the advanced hardware PMU and topology checks under the --new print flag:

- check_per_cache_instance
- check_per_cluster

This ensures that standard console outputs are verified under advanced
topology-aware aggregation environments.

Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>

TAG=agy
CONV=7c33d6a0-70a2-454a-82f7-4de2101a5b9c
---
tools/perf/tests/shell/stat+std_output.sh | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/tools/perf/tests/shell/stat+std_output.sh b/tools/perf/tests/shell/stat+std_output.sh
index 8dee005a7281..e4e8e4238ae0 100755
--- a/tools/perf/tests/shell/stat+std_output.sh
+++ b/tools/perf/tests/shell/stat+std_output.sh
@@ -132,6 +132,11 @@ then
check_per_die "STD (New API)" "$perf_cmd"
check_per_socket "STD (New API)" "$perf_cmd"
fi
+if [ $skip_test -ne 1 ]
+then
+ check_per_cache_instance "STD (New API)" "$perf_cmd"
+ check_per_cluster "STD (New API)" "$perf_cmd"
+fi

cleanup
exit 0
--
2.54.0.794.g4f17f83d09-goog