Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf test: Tag parallel failing shell tests with "(exclusive)"

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>

authored by

Ian Rogers and committed by
Namhyung Kim
2532be3d 2c663439

+20 -20
+1 -1
tools/perf/tests/shell/coresight/asm_pure_loop.sh
··· 1 1 #!/bin/sh -e 2 - # CoreSight / ASM Pure Loop 2 + # CoreSight / ASM Pure Loop (exclusive) 3 3 4 4 # SPDX-License-Identifier: GPL-2.0 5 5 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
+1 -1
tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh
··· 1 1 #!/bin/sh -e 2 - # CoreSight / Memcpy 16k 10 Threads 2 + # CoreSight / Memcpy 16k 10 Threads (exclusive) 3 3 4 4 # SPDX-License-Identifier: GPL-2.0 5 5 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
+1 -1
tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh
··· 1 1 #!/bin/sh -e 2 - # CoreSight / Thread Loop 10 Threads - Check TID 2 + # CoreSight / Thread Loop 10 Threads - Check TID (exclusive) 3 3 4 4 # SPDX-License-Identifier: GPL-2.0 5 5 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
+1 -1
tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh
··· 1 1 #!/bin/sh -e 2 - # CoreSight / Thread Loop 2 Threads - Check TID 2 + # CoreSight / Thread Loop 2 Threads - Check TID (exclusive) 3 3 4 4 # SPDX-License-Identifier: GPL-2.0 5 5 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
+1 -1
tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh
··· 1 1 #!/bin/sh -e 2 - # CoreSight / Unroll Loop Thread 10 2 + # CoreSight / Unroll Loop Thread 10 (exclusive) 3 3 4 4 # SPDX-License-Identifier: GPL-2.0 5 5 # Carsten Haitzler <carsten.haitzler@arm.com>, 2021
+1 -1
tools/perf/tests/shell/perftool-testsuite_report.sh
··· 1 1 #!/bin/bash 2 - # perftool-testsuite_report 2 + # perftool-testsuite_report (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 test -d "$(dirname "$0")/base_report" || exit 2
+1 -1
tools/perf/tests/shell/probe_vfs_getname.sh
··· 1 1 #!/bin/sh 2 - # Add vfs_getname probe to get syscall args filenames 2 + # Add vfs_getname probe to get syscall args filenames (exclusive) 3 3 4 4 # SPDX-License-Identifier: GPL-2.0 5 5 # Arnaldo Carvalho de Melo <acme@kernel.org>, 2017
+1 -1
tools/perf/tests/shell/record+script_probe_vfs_getname.sh
··· 1 1 #!/bin/sh 2 - # Use vfs_getname probe to get syscall args filenames 2 + # Use vfs_getname probe to get syscall args filenames (exclusive) 3 3 4 4 # Uses the 'perf test shell' library to add probe:vfs_getname to the system 5 5 # then use it with 'perf record' using 'touch' to write to a temp file, then
+1 -1
tools/perf/tests/shell/record.sh
··· 1 1 #!/bin/bash 2 - # perf record tests 2 + # perf record tests (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 set -e
+1 -1
tools/perf/tests/shell/record_lbr.sh
··· 1 1 #!/bin/bash 2 - # perf record LBR tests 2 + # perf record LBR tests (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 set -e
+1 -1
tools/perf/tests/shell/record_offcpu.sh
··· 1 1 #!/bin/sh 2 - # perf record offcpu profiling tests 2 + # perf record offcpu profiling tests (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 set -e
+1 -1
tools/perf/tests/shell/stat_all_pmu.sh
··· 1 1 #!/bin/bash 2 - # perf all PMU test 2 + # perf all PMU test (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 set -e
+1 -1
tools/perf/tests/shell/stat_bpf_counters.sh
··· 1 1 #!/bin/sh 2 - # perf stat --bpf-counters test 2 + # perf stat --bpf-counters test (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 set -e
+1 -1
tools/perf/tests/shell/test_arm_coresight.sh
··· 1 1 #!/bin/sh 2 - # Check Arm CoreSight trace data recording and synthesized samples 2 + # Check Arm CoreSight trace data recording and synthesized samples (exclusive) 3 3 4 4 # Uses the 'perf record' to record trace data with Arm CoreSight sinks; 5 5 # then verify if there have any branch samples and instruction samples
+1 -1
tools/perf/tests/shell/test_arm_coresight_disasm.sh
··· 1 1 #!/bin/sh 2 - # Check Arm CoreSight disassembly script completes without errors 2 + # Check Arm CoreSight disassembly script completes without errors (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 # The disassembly script reconstructs ranges of instructions and gives these to objdump to
+1 -1
tools/perf/tests/shell/test_arm_spe.sh
··· 1 1 #!/bin/sh 2 - # Check Arm SPE trace data recording and synthesized samples 2 + # Check Arm SPE trace data recording and synthesized samples (exclusive) 3 3 4 4 # Uses the 'perf record' to record trace data of Arm SPE events; 5 5 # then verify if any SPE event samples are generated by SPE with
+1 -1
tools/perf/tests/shell/test_data_symbol.sh
··· 1 1 #!/bin/bash 2 - # Test data symbol 2 + # Test data symbol (exclusive) 3 3 4 4 # SPDX-License-Identifier: GPL-2.0 5 5 # Leo Yan <leo.yan@linaro.org>, 2022
+1 -1
tools/perf/tests/shell/test_intel_pt.sh
··· 1 1 #!/bin/sh 2 - # Miscellaneous Intel PT testing 2 + # Miscellaneous Intel PT testing (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 set -e
+1 -1
tools/perf/tests/shell/test_stat_intel_tpebs.sh
··· 1 1 #!/bin/bash 2 - # test Intel TPEBS counting mode 2 + # test Intel TPEBS counting mode (exclusive) 3 3 # SPDX-License-Identifier: GPL-2.0 4 4 5 5 set -e
+1 -1
tools/perf/tests/shell/trace+probe_vfs_getname.sh
··· 1 1 #!/bin/sh 2 - # Check open filename arg using perf trace + vfs_getname 2 + # Check open filename arg using perf trace + vfs_getname (exclusive) 3 3 4 4 # Uses the 'perf test shell' library to add probe:vfs_getname to the system 5 5 # then use it with 'perf trace' using 'touch' to write to a temp file, then