mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 20:06:35 +00:00
Probes are global and other probe tests are already exclusive. These two tests can throw warnings when run at the same time so mark them as exclusive too: $ perf test -vvv 81 79 79: perftool-testsuite_probe: --- start --- test child forked, pid 46419 ../common/init.sh: line 137: /sys/kernel/debug/tracing/uprobe_events: Device or resource busy Reviewed-by: Ian Rogers <[email protected]> Signed-off-by: James Clark <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Richter <[email protected]> Cc: Veronika Molnarova <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
24 lines
575 B
Bash
Executable File
24 lines
575 B
Bash
Executable File
#!/bin/bash
|
|
# perftool-testsuite_probe (exclusive)
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
test -d "$(dirname "$0")/base_probe" || exit 2
|
|
cd "$(dirname "$0")/base_probe" || exit 2
|
|
status=0
|
|
|
|
PERFSUITE_RUN_DIR=$(mktemp -d /tmp/"$(basename "$0" .sh)".XXX)
|
|
export PERFSUITE_RUN_DIR
|
|
|
|
for testcase in setup.sh test_*; do # skip setup.sh if not present or not executable
|
|
test -x "$testcase" || continue
|
|
./"$testcase"
|
|
(( status += $? ))
|
|
done
|
|
|
|
if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then
|
|
rm -rf "$PERFSUITE_RUN_DIR"
|
|
fi
|
|
|
|
test $status -ne 0 && exit 1
|
|
exit 0
|