aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rseq/rseq.h
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2018-07-09 17:07:48 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-08-09 07:59:05 +0200
commit4c14d1ce17bcc4c0c0f291ee162f9de73c4ee2eb (patch)
tree46dd4031d6a4edcfc938810252020470a56e19a9 /tools/testing/selftests/rseq/rseq.h
parents390: fix br_r1_trampoline for machines without exrl (diff)
downloadlinux-dev-4c14d1ce17bcc4c0c0f291ee162f9de73c4ee2eb.tar.xz
linux-dev-4c14d1ce17bcc4c0c0f291ee162f9de73c4ee2eb.zip
rseq/selftests: add s390 support
Implement support for s390 in the rseq selftests, in order to sanity check the recently enabled rseq syscall. The Implementation covers both 64-bit and 31-bit mode. Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/rseq/rseq.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/rseq/rseq.h b/tools/testing/selftests/rseq/rseq.h
index a4684112676c..5d1ee38a64a3 100644
--- a/tools/testing/selftests/rseq/rseq.h
+++ b/tools/testing/selftests/rseq/rseq.h
@@ -75,6 +75,8 @@ extern __thread volatile struct rseq __rseq_abi;
#include <rseq-ppc.h>
#elif defined(__mips__)
#include <rseq-mips.h>
+#elif defined(__s390__)
+#include <rseq-s390.h>
#else
#error unsupported target
#endif