/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), 163 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_5, -8), 184 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),
|
/linux/lib/ |
H A D | test_bpf.c | 1722 insns[i++] = BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, R10, R2, -8); in __bpf_emit_cmpxchg64() 1734 insns[i++] = BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, R10, R2, -8); in __bpf_emit_cmpxchg64() 1762 insns[i++] = BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, R10, R2, -4); in __bpf_emit_cmpxchg32() 1776 insns[i++] = BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, R10, R2, -4); in __bpf_emit_cmpxchg32() 1938 case BPF_CMPXCHG: in __bpf_fill_atomic_reg_pairs() 1961 if (op == BPF_CMPXCHG && width == BPF_W) in __bpf_fill_atomic_reg_pairs() 1965 if (op == BPF_CMPXCHG) in __bpf_fill_atomic_reg_pairs() 1984 if (rs == R0 && op == BPF_CMPXCHG) in __bpf_fill_atomic_reg_pairs() 1986 else if (rs == rd && (op == BPF_CMPXCHG || in __bpf_fill_atomic_reg_pairs() 1989 else if (op == BPF_CMPXCHG) in __bpf_fill_atomic_reg_pairs() [all …]
|
/linux/kernel/bpf/ |
H A D | disasm.c | 256 insn->imm == BPF_CMPXCHG) { in print_bpf_insn()
|
H A D | core.c | 2189 case BPF_CMPXCHG: in ___bpf_prog_run()
|
H A D | verifier.c | 579 insn->imm == BPF_CMPXCHG; in is_cmpxchg_insn() 3534 if (insn->imm == BPF_CMPXCHG) in insn_def_regno() 7536 case BPF_CMPXCHG: in check_atomic() 7558 if (insn->imm == BPF_CMPXCHG) { in check_atomic() 7589 if (insn->imm == BPF_CMPXCHG) in check_atomic()
|
/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 256 insn->imm == BPF_CMPXCHG) { in print_bpf_insn()
|
/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 1271 case BPF_CMPXCHG: in emit_atomic() 1321 case BPF_CMPXCHG: in emit_atomic_index() 2151 err = emit_atomic(&prog, BPF_CMPXCHG, in do_jit()
|
/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()
|
/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 707 case BPF_CMPXCHG: in emit_lse_atomic() 797 } else if (imm == BPF_CMPXCHG) { in emit_ll_sc_atomic()
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 52 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ macro
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 52 #define BPF_CMPXCHG (0xf0 | BPF_FETCH) /* atomic compare-and-write */ macro
|
/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 367 case BPF_CMPXCHG: in emit_atomic()
|
/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 1648 case BPF_CMPXCHG: in bpf_jit_insn()
|
/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 543 case BPF_CMPXCHG: in emit_atomic()
|