selftests/bpf: fix compiling loop{1, 2, 3}.c on s390
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 11 Jul 2019 14:29:30 +0000 (16:29 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 12 Jul 2019 13:38:23 +0000 (15:38 +0200)
commitaf3c24e0e2ed25177b03b60ada9117bb596e8d95
tree107c2c1c08514f8bd3a69ea96223d6408a4443d6
parent7cd04535abc95c50ba9bfa48efc76274b63c70f5
selftests/bpf: fix compiling loop{1, 2, 3}.c on s390

Use PT_REGS_RC(ctx) instead of ctx->rax, which is not present on s390.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Tested-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/progs/loop1.c
tools/testing/selftests/bpf/progs/loop2.c
tools/testing/selftests/bpf/progs/loop3.c