[RFC PATCH v2 04/14] perf stat: Extend STD output linter to test core aggregation checks

From: Ian Rogers

Date: Mon May 25 2026 - 19:20:13 EST


This patch extends tools/perf/tests/shell/stat+std_output.sh to run all
standard CPU and thread aggregation checks under the --new print flag:

- check_system_wide
- check_system_wide_no_aggr
- check_interval
- check_per_thread
- check_per_node
- check_per_core
- check_per_socket
- check_per_die

This guarantees that standard console outputs produced by the decoupled
printing engine are verified across all core CPU-aggregation modes.

Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
Assisted-by: Antigravity:gemini-3.5-flash
---
tools/perf/tests/shell/stat+std_output.sh | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/tools/perf/tests/shell/stat+std_output.sh b/tools/perf/tests/shell/stat+std_output.sh
index 233e0a50eb33..8dee005a7281 100755
--- a/tools/perf/tests/shell/stat+std_output.sh
+++ b/tools/perf/tests/shell/stat+std_output.sh
@@ -121,6 +121,17 @@ fi
# New API basic checks
perf_cmd="--new -o ${stat_output}"
check_no_args "STD (New API)" "$perf_cmd"
+check_system_wide "STD (New API)" "$perf_cmd"
+check_interval "STD (New API)" "$perf_cmd"
+check_per_thread "STD (New API)" "$perf_cmd"
+check_per_node "STD (New API)" "$perf_cmd"
+if [ $skip_test -ne 1 ]
+then
+ check_system_wide_no_aggr "STD (New API)" "$perf_cmd"
+ check_per_core "STD (New API)" "$perf_cmd"
+ check_per_die "STD (New API)" "$perf_cmd"
+ check_per_socket "STD (New API)" "$perf_cmd"
+fi

cleanup
exit 0
--
2.54.0.794.g4f17f83d09-goog