rcutorture: add support for s390
authorSven Schnelle <svens@linux.ibm.com>
Mon, 9 Jan 2023 08:09:09 +0000 (09:09 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 9 Jan 2023 17:36:06 +0000 (09:36 -0800)
Add the required values to identify_qemu() and
identify_bootimage().

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/functions.sh

index 66d0414d8e4bc3e9fba3ddb394697e825cce9624..b52d5069563c69135f298b2dd9af35d5aceaf9aa 100644 (file)
@@ -159,6 +159,9 @@ identify_boot_image () {
                qemu-system-aarch64)
                        echo arch/arm64/boot/Image
                        ;;
+               qemu-system-s390x)
+                       echo arch/s390/boot/bzImage
+                       ;;
                *)
                        echo vmlinux
                        ;;
@@ -184,6 +187,9 @@ identify_qemu () {
        elif echo $u | grep -q aarch64
        then
                echo qemu-system-aarch64
+       elif echo $u | grep -q 'IBM S/390'
+       then
+               echo qemu-system-s390x
        elif uname -a | grep -q ppc64
        then
                echo qemu-system-ppc64