]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
perf test: Tag parallel failing shell tests with "(exclusive)"
authorIan Rogers <irogers@google.com>
Fri, 25 Oct 2024 19:21:04 +0000 (12:21 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 28 Oct 2024 16:32:58 +0000 (09:32 -0700)
Some shell tests compete for resources and so can't run with other
tests, tag such tests.  The "(exclusive)" stems from shared/exclusive
to describe how the tests run as if holding a lock.

For ARM/coresight tests:
Suggested-by: James Clark <james.clark@linaro.org>
Additional failing tests:
Suggested-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Colin Ian King <colin.i.king@gmail.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Weilin Wang <weilin.wang@intel.com>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Veronika Molnarova <vmolnaro@redhat.com>
Link: https://lore.kernel.org/r/20241025192109.132482-6-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
20 files changed:
tools/perf/tests/shell/coresight/asm_pure_loop.sh
tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh
tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh
tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh
tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh
tools/perf/tests/shell/perftool-testsuite_report.sh
tools/perf/tests/shell/probe_vfs_getname.sh
tools/perf/tests/shell/record+script_probe_vfs_getname.sh
tools/perf/tests/shell/record.sh
tools/perf/tests/shell/record_lbr.sh
tools/perf/tests/shell/record_offcpu.sh
tools/perf/tests/shell/stat_all_pmu.sh
tools/perf/tests/shell/stat_bpf_counters.sh
tools/perf/tests/shell/test_arm_coresight.sh
tools/perf/tests/shell/test_arm_coresight_disasm.sh
tools/perf/tests/shell/test_arm_spe.sh
tools/perf/tests/shell/test_data_symbol.sh
tools/perf/tests/shell/test_intel_pt.sh
tools/perf/tests/shell/test_stat_intel_tpebs.sh
tools/perf/tests/shell/trace+probe_vfs_getname.sh

index 2d65defb7e0f15aa185fd3afa38c4d5dc031aa32..c63bc8c73e262b98cdd920d6af4674fc77035e74 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh -e
-# CoreSight / ASM Pure Loop
+# CoreSight / ASM Pure Loop (exclusive)
 
 # SPDX-License-Identifier: GPL-2.0
 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
index ddcc9bb850f5fcf6a212d1d848ba16499121a6e7..8e29630957c8d5bc735d9b7f1772f2fa2940a2e6 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh -e
-# CoreSight / Memcpy 16k 10 Threads
+# CoreSight / Memcpy 16k 10 Threads (exclusive)
 
 # SPDX-License-Identifier: GPL-2.0
 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
index 2ce5e139b2fdd76f17e678175f7ef96a118186d6..0c4c82a1c8e15afdce7695a41847079feb64b825 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh -e
-# CoreSight / Thread Loop 10 Threads - Check TID
+# CoreSight / Thread Loop 10 Threads - Check TID (exclusive)
 
 # SPDX-License-Identifier: GPL-2.0
 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
index 3ad9498753d7b7456f95e643c3d31dabb8818ab8..d3aea9fc6ced9ca4e9a2ab731af1c2f1705fa210 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh -e
-# CoreSight / Thread Loop 2 Threads - Check TID
+# CoreSight / Thread Loop 2 Threads - Check TID (exclusive)
 
 # SPDX-License-Identifier: GPL-2.0
 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
index 4fbb4a29aad3fa9470f1ce8ffa5f827d65f41369..7429d3a2ae43683be5f77d02d813c308fa541fa5 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh -e
-# CoreSight / Unroll Loop Thread 10
+# CoreSight / Unroll Loop Thread 10 (exclusive)
 
 # SPDX-License-Identifier: GPL-2.0
 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
index 973012ce92a76f59ee06a7e360544d8e1aea272c..a8cf75b4e77ec1a34a4f01b68ed2f5a3853ff293 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# perftool-testsuite_report
+# perftool-testsuite_report (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 test -d "$(dirname "$0")/base_report" || exit 2
index 554e12e83c55fd5684e37b32d87b020b4408417f..0c5aacc446b3ef7659bcc20f28f92d68b388b271 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Add vfs_getname probe to get syscall args filenames
+# Add vfs_getname probe to get syscall args filenames (exclusive)
 
 # SPDX-License-Identifier: GPL-2.0
 # Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
index 9a61928e3c9aa05fd5e8f3177b4129c7906cae13..5940fdc1df37c5027cad9c2e488a401059c883b2 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Use vfs_getname probe to get syscall args filenames
+# Use vfs_getname probe to get syscall args filenames (exclusive)
 
 # Uses the 'perf test shell' library to add probe:vfs_getname to the system
 # then use it with 'perf record' using 'touch' to write to a temp file, then
index f0e79200b9813c3a571235f2f9645ca0ec066e8b..85d512f5a126315db646e84ea0f9307c93651ace 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# perf record tests
+# perf record tests (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 set -e
index 32314641217e6db9ca050350f979c096ce14fecf..8d750ee631f877fdec47d5c59fab27242199c307 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# perf record LBR tests
+# perf record LBR tests (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 set -e
index 67c925f3a15aa7fd78e0a1b779ce4c85e80246be..678947fe69eed2e85bac1d9e85f744e04c0c2810 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# perf record offcpu profiling tests
+# perf record offcpu profiling tests (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 set -e
index 42456d89c5da39b769d8315801b1249b8d540589..8b148b300be1131ecacb4c807b9f181890c719b2 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# perf all PMU test
+# perf all PMU test (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 set -e
index f250b7d6f773fe68572caa03a49ed2aa6a71fe70..a038c1b1a706abf73103f929f9d7f9069f6b8596 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# perf stat --bpf-counters test
+# perf stat --bpf-counters test (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 set -e
index 6b8c4831eedc6f10f46bc7a714830fad18fa830a..573af9235b725c698ba3ad5e5ca433c38f8c1121 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Check Arm CoreSight trace data recording and synthesized samples
+# Check Arm CoreSight trace data recording and synthesized samples (exclusive)
 
 # Uses the 'perf record' to record trace data with Arm CoreSight sinks;
 # then verify if there have any branch samples and instruction samples
index dba086a40d8467219c19a03935e6bfc72d3e6254..be2d26303f94b1277c964818d878e5742c70e89f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Check Arm CoreSight disassembly script completes without errors
+# Check Arm CoreSight disassembly script completes without errors (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 # The disassembly script reconstructs ranges of instructions and gives these to objdump to
index 6c21fb1f10d8f1293a03d8c23e190b53bc8f4eac..3258368634f793a1c5cde4c065f30f4404b0dcec 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Check Arm SPE trace data recording and synthesized samples
+# Check Arm SPE trace data recording and synthesized samples (exclusive)
 
 # Uses the 'perf record' to record trace data of Arm SPE events;
 # then verify if any SPE event samples are generated by SPE with
index 3dfa91832aa87f89b8f0ef0c1ba51df6d130d2d2..c86da02350596b35d0e300610686235a4378cd9c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Test data symbol
+# Test data symbol (exclusive)
 
 # SPDX-License-Identifier: GPL-2.0
 # Leo Yan <leo.yan@linaro.org>, 2022
index bf9017b812aa6ed9a1819a8f86374d3619c24c6f..e6f0070975f664cb5cf58400b2022b0164d7b2c4 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Miscellaneous Intel PT testing
+# Miscellaneous Intel PT testing (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 set -e
index 9a11f42d153cacc3da7f2cc2abea3fb6a56753ac..f95fc64bf0a7b222bc88bfd07ef6a612880ed479 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# test Intel TPEBS counting mode
+# test Intel TPEBS counting mode (exclusive)
 # SPDX-License-Identifier: GPL-2.0
 
 set -e
index 97b4b9cd23784c8933170689145da54d78ea80f9..708a13f0063536115649c096f1aaac03108f458c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Check open filename arg using perf trace + vfs_getname
+# Check open filename arg using perf trace + vfs_getname (exclusive)
 
 # Uses the 'perf test shell' library to add probe:vfs_getname to the system
 # then use it with 'perf trace' using 'touch' to write to a temp file, then