summaryrefslogtreecommitdiff
path: root/tools/perf/tests/shell/test_event_analyzing_sample_python.sh
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-28 23:58:36 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-29 20:52:44 +0200
commit66d7274859b983a018ea672ef4790ce9b5c715d9 (patch)
tree3092658d3b2889b518c024afef691fcb98f33e97 /tools/perf/tests/shell/test_event_analyzing_sample_python.sh
parent959c63291e52beaebd3307be7de32dc012c85e97 (diff)
downloadlinux-next-66d7274859b983a018ea672ef4790ce9b5c715d9.tar.gz
linux-next-66d7274859b983a018ea672ef4790ce9b5c715d9.zip
perf test: Reduce overhead and contention in Python shell tests
When all Python shell tests run concurrently during 'perf test' under heavy load: 1. Unfiltered 'perf list' initializes all hardware PMUs and metrics in each test process; use 'perf list tracepoint' when checking for tracepoint events. 2. Running 'perf record' without '-B -N --no-bpf-event' synthesizes BPF events across the system and caches build-ids into ~/.debug; add '-B -N --no-bpf-event' to all Python shell test recordings. 3. Drop '-a' in test_check_perf_trace_python.sh, test_rw_by_file_python.sh, test_rw_by_pid_python.sh, test_rwtop_python.sh, and test_syscall_counts_by_pid_python.sh where only a single child workload ('dd' or 'sleep') is tested, avoiding system-wide /proc synthesis and ringbuffer contention. 4. Add '-W 1' to 'ping -c 1' in test_net_dropmonitor_python.sh and test_netdev_times_python.sh, and narrow 'compaction:*' to 'compaction:mm_compaction_begin,compaction:mm_compaction_end' in test_compaction_times_python.sh. Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/shell/test_event_analyzing_sample_python.sh')
-rwxr-xr-xtools/perf/tests/shell/test_event_analyzing_sample_python.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/tests/shell/test_event_analyzing_sample_python.sh b/tools/perf/tests/shell/test_event_analyzing_sample_python.sh
index a7a8ded003db..5f0a41080acf 100755
--- a/tools/perf/tests/shell/test_event_analyzing_sample_python.sh
+++ b/tools/perf/tests/shell/test_event_analyzing_sample_python.sh
@@ -39,7 +39,8 @@ test_file_mode() {
echo "Testing event_analyzing_sample.py..."
# Generate some events
- if ! perf record -o "${temp_data}" -- perf test -w noploop >/dev/null 2>&1; then
+ if ! perf record -B -N --no-bpf-event -o "${temp_data}" \
+ -- perf test -w noploop >/dev/null 2>&1; then
echo "Skipping test, perf record failed"
exit 2
fi