[RFC PATCH v2 05/14] perf stat: Extend STD output linter to test advanced PMU checks
From: Ian Rogers
Date: Mon May 25 2026 - 19:19:54 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>
Assisted-by: Antigravity:gemini-3.5-flash
---
tools/perf/tests/shell/stat+std_output.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/tests/shell/stat+std_output.sh b/tools/perf/tests/shell/stat+std_output.sh
index 8dee005a7281..0d38a1283967 100755
--- a/tools/perf/tests/shell/stat+std_output.sh
+++ b/tools/perf/tests/shell/stat+std_output.sh
@@ -131,6 +131,8 @@ then
check_per_core "STD (New API)" "$perf_cmd"
check_per_die "STD (New API)" "$perf_cmd"
check_per_socket "STD (New API)" "$perf_cmd"
+ check_per_cache_instance "STD (New API)" "$perf_cmd"
+ check_per_cluster "STD (New API)" "$perf_cmd"
fi
cleanup
--
2.54.0.794.g4f17f83d09-goog