Skip to content

Commit

Permalink
selftests/bpf: Enable the cpuv4 tests for s390x
Browse files Browse the repository at this point in the history
Now that all the cpuv4 support is in place, enable the tests.

Signed-off-by: Ilya Leoshkevich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
  • Loading branch information
iii-i authored and Alexei Starovoitov committed Sep 21, 2023
1 parent 91d2ad7 commit 48c4323
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/test_ldsx_insn.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
#include <bpf/bpf_tracing.h>

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || \
defined(__TARGET_ARCH_s390)) && __clang_major__ >= 18
const volatile int skip = 0;
#else
const volatile int skip = 1;
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_bswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || \
defined(__TARGET_ARCH_arm) || defined(__TARGET_ARCH_s390)) && \
__clang_major__ >= 18

SEC("socket")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_gotol.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || \
defined(__TARGET_ARCH_arm) || defined(__TARGET_ARCH_s390)) && \
__clang_major__ >= 18

SEC("socket")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_ldsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || \
defined(__TARGET_ARCH_arm) || defined(__TARGET_ARCH_s390)) && \
__clang_major__ >= 18

SEC("socket")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_movsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || \
defined(__TARGET_ARCH_arm) || defined(__TARGET_ARCH_s390)) && \
__clang_major__ >= 18

SEC("socket")
Expand Down
3 changes: 2 additions & 1 deletion tools/testing/selftests/bpf/progs/verifier_sdiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include "bpf_misc.h"

#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || defined(__TARGET_ARCH_arm)) && \
(defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64) || \
defined(__TARGET_ARCH_arm) || defined(__TARGET_ARCH_s390)) && \
__clang_major__ >= 18

SEC("socket")
Expand Down

0 comments on commit 48c4323

Please sign in to comment.