/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | atomic_cmpxchg.c | 9 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8), 22 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8), 46 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -4), 59 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -4), 80 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_2, -8), 96 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8), 120 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8), 142 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8), 184 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_5, -8), 203 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_5, -8), [all …]
|
H A D | atomic_invalid.c | 25 __INVALID_ATOMIC_ACCESS_TEST(BPF_CMPXCHG),
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 1918 case BPF_CMPXCHG: in __bpf_fill_atomic_reg_pairs() 1941 if (op == BPF_CMPXCHG && width == BPF_W) in __bpf_fill_atomic_reg_pairs() 1945 if (op == BPF_CMPXCHG) in __bpf_fill_atomic_reg_pairs() 1964 if (rs == R0 && op == BPF_CMPXCHG) in __bpf_fill_atomic_reg_pairs() 1966 else if (rs == rd && (op == BPF_CMPXCHG || in __bpf_fill_atomic_reg_pairs() 1969 else if (op == BPF_CMPXCHG) in __bpf_fill_atomic_reg_pairs() 1988 if (!(rd == R0 && op == BPF_CMPXCHG) && in __bpf_fill_atomic_reg_pairs() 11700 (op) == BPF_CMPXCHG ? 0 : \ 11731 BPF_TEST_CLOBBER_ATOMIC(BPF_DW, BPF_CMPXCHG), 11742 BPF_TEST_CLOBBER_ATOMIC(BPF_W, BPF_CMPXCHG), [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 232 insn->imm == BPF_CMPXCHG) { in print_bpf_insn()
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 232 insn->imm == BPF_CMPXCHG) { in print_bpf_insn()
|
H A D | core.c | 2141 case BPF_CMPXCHG: in ___bpf_prog_run()
|
H A D | verifier.c | 599 insn->imm == BPF_CMPXCHG; in is_cmpxchg_insn() 3310 if (insn->imm == BPF_CMPXCHG) in insn_def_regno() 6945 case BPF_CMPXCHG: in check_atomic() 6967 if (insn->imm == BPF_CMPXCHG) { in check_atomic() 6997 if (insn->imm == BPF_CMPXCHG) in check_atomic()
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 843 case BPF_CMPXCHG: in bpf_jit_build_body() 885 if (size != BPF_DW && imm == BPF_CMPXCHG && in bpf_jit_build_body()
|
H A D | bpf_jit_comp32.c | 888 case BPF_CMPXCHG: in bpf_jit_build_body()
|
/openbmc/linux/Documentation/bpf/standardization/ |
H A D | instruction-set.rst | 528 BPF_CMPXCHG 0xf0 | BPF_FETCH atomic compare and exchange 539 The ``BPF_CMPXCHG`` operation atomically compares the value addressed by
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp32.c | 1709 case BPF_CMPXCHG: in build_insn() 1735 case BPF_CMPXCHG: in build_insn()
|
H A D | bpf_jit_comp64.c | 878 case BPF_CMPXCHG: in build_insn()
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 499 case BPF_CMPXCHG: in emit_lse_atomic() 586 } else if (imm == BPF_CMPXCHG) { in emit_ll_sc_atomic()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 947 case BPF_CMPXCHG: in emit_atomic() 1643 err = emit_atomic(&prog, BPF_CMPXCHG, in do_jit()
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 362 case BPF_CMPXCHG: in emit_atomic()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 51 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 51 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ macro
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 1357 case BPF_CMPXCHG: in bpf_jit_insn()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 550 case BPF_CMPXCHG: in emit_atomic()
|