]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf test: Make perf trace BTF general tests exclusive
authorThomas Richter <tmricht@linux.ibm.com>
Wed, 8 Apr 2026 11:31:43 +0000 (13:31 +0200)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 9 Apr 2026 04:42:25 +0000 (21:42 -0700)
commit4cf1f549bbcdfea9c20df52994bb342677472dcd
tree78841c94e3a1c693be25207b700c32eca9885d5d
parent80b549be27de0f11124c66eaeb5307c7b4582edd
perf test: Make perf trace BTF general tests exclusive

Running both tests cases 126 128 together causes the first test case
126 to fail:
 # for i in $(seq 3); do ./perf test 'perf trace BTF general tests' \
'perf trace record and replay'; done
 126: perf trace BTF general tests    : FAILED!
 128: perf trace record and replay    : Ok
 126: perf trace BTF general tests    : FAILED!
 128: perf trace record and replay    : Ok
 126: perf trace BTF general tests    : FAILED!
 128: perf trace record and replay    : Ok
 #

Test case 126 fails because test case 128 runs concurrently as can
be observed using a ps -ef | grep perf output list on a different
window. Both do a perf trace command concurrently.
Make test case 'perf trace BTF general tests' exclusive.

Output after:
 # for i in $(seq 3); do ./perf test 'perf trace BTF general tests' \
'perf trace record and replay'; done
 127: perf trace BTF general tests                   : Ok
 155: perf trace record and replay                   : Ok
 127: perf trace BTF general tests                   : Ok
 155: perf trace record and replay                   : Ok
 127: perf trace BTF general tests                   : Ok
 155: perf trace record and replay                   : Ok
 #

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Howard Chu <howardchu95@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/trace_btf_general.sh