File tree Expand file tree Collapse file tree 6 files changed +23
-6
lines changed
tools/testing/selftests/bpf/progs Expand file tree Collapse file tree 6 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 6
6
#include <bpf/bpf_tracing.h>
7
7
8
8
#if (defined(__TARGET_ARCH_arm64 ) || defined(__TARGET_ARCH_x86 ) || \
9
- (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 )) && __clang_major__ >= 18
9
+ (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 ) || \
10
+ defined(__TARGET_ARCH_loongarch )) && \
11
+ __clang_major__ >= 18
10
12
const volatile int skip = 0 ;
11
13
#else
12
14
const volatile int skip = 1 ;
Original file line number Diff line number Diff line change 5
5
#include "bpf_misc.h"
6
6
7
7
#if (defined(__TARGET_ARCH_arm64 ) || defined(__TARGET_ARCH_x86 ) || \
8
- (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 )) && __clang_major__ >= 18
8
+ (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 ) || \
9
+ defined(__TARGET_ARCH_arm ) || defined(__TARGET_ARCH_s390 ) || \
10
+ defined(__TARGET_ARCH_loongarch )) && \
11
+ __clang_major__ >= 18
9
12
10
13
SEC ("socket" )
11
14
__description ("BSWAP, 16" )
Original file line number Diff line number Diff line change 5
5
#include "bpf_misc.h"
6
6
7
7
#if (defined(__TARGET_ARCH_arm64 ) || defined(__TARGET_ARCH_x86 ) || \
8
- (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 )) && __clang_major__ >= 18
8
+ (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 ) || \
9
+ defined(__TARGET_ARCH_arm ) || defined(__TARGET_ARCH_s390 ) || \
10
+ defined(__TARGET_ARCH_loongarch )) && \
11
+ __clang_major__ >= 18
9
12
10
13
SEC ("socket" )
11
14
__description ("gotol, small_imm" )
Original file line number Diff line number Diff line change 5
5
#include "bpf_misc.h"
6
6
7
7
#if (defined(__TARGET_ARCH_arm64 ) || defined(__TARGET_ARCH_x86 ) || \
8
- (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 )) && __clang_major__ >= 18
8
+ (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 ) || \
9
+ defined(__TARGET_ARCH_arm ) || defined(__TARGET_ARCH_s390 ) || \
10
+ defined(__TARGET_ARCH_loongarch )) && \
11
+ __clang_major__ >= 18
9
12
10
13
SEC ("socket" )
11
14
__description ("LDSX, S8" )
Original file line number Diff line number Diff line change 5
5
#include "bpf_misc.h"
6
6
7
7
#if (defined(__TARGET_ARCH_arm64 ) || defined(__TARGET_ARCH_x86 ) || \
8
- (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 )) && __clang_major__ >= 18
8
+ (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 ) || \
9
+ defined(__TARGET_ARCH_arm ) || defined(__TARGET_ARCH_s390 ) || \
10
+ defined(__TARGET_ARCH_loongarch )) && \
11
+ __clang_major__ >= 18
9
12
10
13
SEC ("socket" )
11
14
__description ("MOV32SX, S8" )
Original file line number Diff line number Diff line change 5
5
#include "bpf_misc.h"
6
6
7
7
#if (defined(__TARGET_ARCH_arm64 ) || defined(__TARGET_ARCH_x86 ) || \
8
- (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 )) && __clang_major__ >= 18
8
+ (defined(__TARGET_ARCH_riscv ) && __riscv_xlen == 64 ) || \
9
+ defined(__TARGET_ARCH_arm ) || defined(__TARGET_ARCH_s390 ) || \
10
+ defined(__TARGET_ARCH_loongarch )) && \
11
+ __clang_major__ >= 18
9
12
10
13
SEC ("socket" )
11
14
__description ("SDIV32, non-zero imm divisor, check 1" )
You can’t perform that action at this time.
0 commit comments