diff options
author | 2024-07-23 11:11:51 -0700 | |
---|---|---|
committer | 2024-07-23 11:11:51 -0700 | |
commit | d2d721e2eb1337c67f0c5bba303f8a013b622bed (patch) | |
tree | 252f953a6e36d367d670b31c50fde5ec32051a92 /tools/testing/selftests/livepatch/test-syscall.sh | |
parent | Merge tag 'i2c-for-6.11-rc1-second-batch' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux (diff) | |
parent | Merge branch 'for-6.11/sysfs-patch-replace' into for-linus (diff) | |
download | wireguard-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-x | tools/testing/selftests/livepatch/test-syscall.sh | 5 |
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 |