Commit 46edf5d7 authored by Ryan Sullivan's avatar Ryan Sullivan Committed by Petr Mladek

selftests/livepatch: define max test-syscall processes

Define a maximum allowable number of pids that can be livepatched in
test-syscall.sh as with extremely large machines the output from a
large number of processes overflows the dev/kmsg "expect" buffer in
the "check_result" function and causes a false error.
Reported-by: default avatarCKI Project <cki-project@redhat.com>
Signed-off-by: default avatarRyan Sullivan <rysulliv@redhat.com>
Acked-by: default avatarMiroslav Benes <mbenes@suse.cz>
Tested-by: default avatarMarcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: default avatarMarcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Acked-by: default avatarJoel Savitz <jsavitz@redhat.com>
Link: https://lore.kernel.org/r/20240606135348.4708-1-rysulliv@redhat.comSigned-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent 8c06da67
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment