Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rcutorture: Fix issue with re-using old images on ARM64

On ARM64, when running with --configs '36*SRCU-P', I noticed that only 1 instance
instead of 36 for starting.

Fix it by checking for Image files, instead of bzImage which ARM does
not seem to have. With this I see all 36 instances running at the same
time in the batch.

Tested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>

+1 -1
+1 -1
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
··· 73 73 cp $T/KcList $resdir/ConfigFragment 74 74 75 75 base_resdir=`echo $resdir | sed -e 's/\.[0-9]\+$//'` 76 - if test "$base_resdir" != "$resdir" && test -f $base_resdir/bzImage && test -f $base_resdir/vmlinux 76 + if test "$base_resdir" != "$resdir" && (test -f $base_resdir/bzImage || test -f $base_resdir/Image) && test -f $base_resdir/vmlinux 77 77 then 78 78 # Rerunning previous test, so use that test's kernel. 79 79 QEMU="`identify_qemu $base_resdir/vmlinux`"