aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/livepatch/test-syscall.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-07-23 11:11:51 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2024-07-23 11:11:51 -0700
commitd2d721e2eb1337c67f0c5bba303f8a013b622bed (patch)
tree252f953a6e36d367d670b31c50fde5ec32051a92 /tools/testing/selftests/livepatch/test-syscall.sh
parentMerge tag 'i2c-for-6.11-rc1-second-batch' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux (diff)
parentMerge branch 'for-6.11/sysfs-patch-replace' into for-linus (diff)
downloadwireguard-linux-d2d721e2eb1337c67f0c5bba303f8a013b622bed.tar.xz
wireguard-linux-d2d721e2eb1337c67f0c5bba303f8a013b622bed.zip
Merge tag 'livepatching-for-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching
Pull livepatching update from Petr Mladek: - show patch->replace flag in sysfs - add or improve few selftests * tag 'livepatching-for-6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching: livepatch: Replace snprintf() with sysfs_emit() selftests/livepatch: Add selftests for "replace" sysfs attribute livepatch: Add "replace" sysfs attribute selftests: livepatch: Test atomic replace against multiple modules selftests/livepatch: define max test-syscall processes
Diffstat (limited to 'tools/testing/selftests/livepatch/test-syscall.sh')
-rwxr-xr-xtools/testing/selftests/livepatch/test-syscall.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/livepatch/test-syscall.sh b/tools/testing/selftests/livepatch/test-syscall.sh
index b76a881d4013..289eb7d4c4b3 100755
--- a/tools/testing/selftests/livepatch/test-syscall.sh
+++ b/tools/testing/selftests/livepatch/test-syscall.sh
@@ -15,7 +15,10 @@ setup_config
start_test "patch getpid syscall while being heavily hammered"
-for i in $(seq 1 $(getconf _NPROCESSORS_ONLN)); do
+NPROC=$(getconf _NPROCESSORS_ONLN)
+MAXPROC=128
+
+for i in $(seq 1 $(($NPROC < $MAXPROC ? $NPROC : $MAXPROC))); do
./test_klp-call_getpid &
pids[$i]="$!"
done