summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2020-03-09 16:56:53 +0100
committerVasily Gorbik <gor@linux.ibm.com>2020-06-16 13:44:04 +0200
commit4bae85b620dc1f7aa4d2338b923d9d9b394b58c4 (patch)
treecf167700f077c5632c89912c33f903f41ba89685 /tools/testing
parent873e5a763d604c32988c4a78913a8dab3862d2f9 (diff)
selftests/seccomp: s390 shares the syscall and return value register
s390 cannot set syscall number and reture code at the same time, so set the appropriate flag to indicate it. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/seccomp/seccomp_bpf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c
index c0aa46ce14f6..252140a52553 100644
--- a/tools/testing/selftests/seccomp/seccomp_bpf.c
+++ b/tools/testing/selftests/seccomp/seccomp_bpf.c
@@ -1615,6 +1615,7 @@ TEST_F(TRACE_poke, getpid_runs_normally)
# define ARCH_REGS s390_regs
# define SYSCALL_NUM gprs[2]
# define SYSCALL_RET gprs[2]
+# define SYSCALL_NUM_RET_SHARE_REG
#elif defined(__mips__)
# define ARCH_REGS struct pt_regs
# define SYSCALL_NUM regs[2]