Home
last modified time | relevance | path

Searched refs:BPF_CMPXCHG (Results 1 – 19 of 19) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Datomic_cmpxchg.c9 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 Datomic_invalid.c25 __INVALID_ATOMIC_ACCESS_TEST(BPF_CMPXCHG),
/openbmc/linux/lib/
H A Dtest_bpf.c1918 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 Ddisasm.c232 insn->imm == BPF_CMPXCHG) { in print_bpf_insn()
/openbmc/linux/kernel/bpf/
H A Ddisasm.c232 insn->imm == BPF_CMPXCHG) { in print_bpf_insn()
H A Dcore.c2141 case BPF_CMPXCHG: in ___bpf_prog_run()
H A Dverifier.c599 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 Dbpf_jit_comp64.c843 case BPF_CMPXCHG: in bpf_jit_build_body()
885 if (size != BPF_DW && imm == BPF_CMPXCHG && in bpf_jit_build_body()
H A Dbpf_jit_comp32.c888 case BPF_CMPXCHG: in bpf_jit_build_body()
/openbmc/linux/Documentation/bpf/standardization/
H A Dinstruction-set.rst528 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 Dbpf_jit_comp32.c1709 case BPF_CMPXCHG: in build_insn()
1735 case BPF_CMPXCHG: in build_insn()
H A Dbpf_jit_comp64.c878 case BPF_CMPXCHG: in build_insn()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c499 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 Dbpf_jit_comp.c947 case BPF_CMPXCHG: in emit_atomic()
1643 err = emit_atomic(&prog, BPF_CMPXCHG, in do_jit()
/openbmc/linux/arch/loongarch/net/
H A Dbpf_jit.c362 case BPF_CMPXCHG: in emit_atomic()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h51 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ macro
/openbmc/linux/include/uapi/linux/
H A Dbpf.h51 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ macro
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c1357 case BPF_CMPXCHG: in bpf_jit_insn()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c550 case BPF_CMPXCHG: in emit_atomic()