/linux-6.1.9/tools/testing/selftests/bpf/verifier/ |
D | atomic_fetch.c | 139 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_2, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001), 140 __ATOMIC_FETCH_OP_TEST(BPF_REG_0, BPF_REG_1, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001), 141 __ATOMIC_FETCH_OP_TEST(BPF_REG_1, BPF_REG_0, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001), 142 __ATOMIC_FETCH_OP_TEST(BPF_REG_2, BPF_REG_3, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001), 143 __ATOMIC_FETCH_OP_TEST(BPF_REG_4, BPF_REG_5, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001), 144 __ATOMIC_FETCH_OP_TEST(BPF_REG_9, BPF_REG_8, 0x010, BPF_XOR | BPF_FETCH, 0x011, 0x001),
|
D | atomic_xor.c | 8 BPF_ATOMIC_OP(BPF_DW, BPF_XOR, BPF_REG_10, BPF_REG_1, -8), 30 BPF_ATOMIC_OP(BPF_DW, BPF_XOR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -8), 60 BPF_ATOMIC_OP(BPF_W, BPF_XOR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4),
|
D | atomic_invalid.c | 22 __INVALID_ATOMIC_ACCESS_TEST(BPF_XOR), 23 __INVALID_ATOMIC_ACCESS_TEST(BPF_XOR | BPF_FETCH),
|
D | bounds.c | 570 BPF_ALU64_IMM(BPF_XOR, BPF_REG_1, 1), 592 BPF_ALU32_IMM(BPF_XOR, BPF_REG_1, 1), 614 BPF_ALU64_IMM(BPF_XOR, BPF_REG_1, 3), 636 BPF_ALU64_IMM(BPF_XOR, BPF_REG_1, 3), 658 BPF_ALU32_IMM(BPF_XOR, BPF_REG_1, 3), 681 BPF_ALU64_IMM(BPF_XOR, BPF_REG_1, 3), 704 BPF_ALU32_IMM(BPF_XOR, BPF_REG_1, 3),
|
D | basic_instr.c | 22 BPF_ALU32_REG(BPF_XOR, BPF_REG_2, BPF_REG_2),
|
D | subreg.c | 338 BPF_ALU32_REG(BPF_XOR, BPF_REG_0, BPF_REG_1), 351 BPF_ALU32_IMM(BPF_XOR, BPF_REG_0, 1),
|
/linux-6.1.9/kernel/bpf/ |
D | disasm.c | 84 [BPF_XOR >> 4] = "^=", 94 [BPF_XOR >> 4] = "xor", 172 insn->imm == BPF_OR || insn->imm == BPF_XOR)) { in print_bpf_insn() 183 insn->imm == (BPF_XOR | BPF_FETCH))) { in print_bpf_insn()
|
D | core.c | 1248 *to++ = BPF_ALU64_REG(BPF_XOR, from->dst_reg, from->dst_reg); in bpf_jit_blind_insn() 1257 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_blind_insn() 1263 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1271 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_blind_insn() 1277 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1297 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1317 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1324 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1330 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1341 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() [all …]
|
/linux-6.1.9/arch/mips/net/ |
D | bpf_jit_comp64.c | 166 case BPF_XOR: in emit_alu_i64() 399 case BPF_XOR: in emit_atomic_r64() 400 case BPF_XOR | BPF_FETCH: in emit_atomic_r64() 672 case BPF_ALU | BPF_XOR | BPF_K: in build_insn() 712 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 761 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn() 790 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn() 855 case BPF_XOR: in build_insn() 856 case BPF_XOR | BPF_FETCH: in build_insn()
|
D | bpf_jit_comp.c | 228 case BPF_XOR: in valid_alu_i() 254 case BPF_XOR: in rewrite_alu_i() 310 case BPF_XOR: in emit_alu_i() 350 case BPF_XOR: in emit_alu_r() 422 case BPF_XOR: in emit_atomic_r() 423 case BPF_XOR | BPF_FETCH: in emit_atomic_r()
|
D | bpf_jit_comp32.c | 255 case BPF_XOR: in emit_alu_i64() 301 case BPF_XOR: in emit_alu_r64() 762 case BPF_XOR: in emit_atomic_r32() 765 case BPF_XOR | BPF_FETCH: in emit_atomic_r32() 843 case BPF_XOR: in emit_atomic_r64() 846 case BPF_XOR | BPF_FETCH: in emit_atomic_r64() 1510 case BPF_ALU | BPF_XOR | BPF_K: in build_insn() 1540 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 1574 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn() 1611 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn() [all …]
|
/linux-6.1.9/tools/include/uapi/linux/ |
D | bpf_common.h | 42 #define BPF_XOR 0xa0 macro
|
/linux-6.1.9/include/uapi/linux/ |
D | bpf_common.h | 42 #define BPF_XOR 0xa0 macro
|
/linux-6.1.9/lib/ |
D | test_bpf.c | 392 insn[len - 2] = __BPF_STMT(BPF_ALU | BPF_XOR | BPF_X, 0); in bpf_fill_maxinsns13() 556 case BPF_XOR: in __bpf_alu_result() 1048 return __bpf_fill_alu64_imm(self, BPF_XOR); in bpf_fill_alu64_xor_imm() 1094 return __bpf_fill_alu32_imm(self, BPF_XOR); in bpf_fill_alu32_xor_imm() 1140 return __bpf_fill_alu64_reg(self, BPF_XOR); in bpf_fill_alu64_xor_reg() 1186 return __bpf_fill_alu32_reg(self, BPF_XOR); in bpf_fill_alu32_xor_reg() 1293 return __bpf_fill_alu_imm_regs(self, BPF_XOR, false); in bpf_fill_alu64_xor_imm_regs() 1354 return __bpf_fill_alu_imm_regs(self, BPF_XOR, true); in bpf_fill_alu32_xor_imm_regs() 1485 return __bpf_fill_alu_reg_pairs(self, BPF_XOR, false); in bpf_fill_alu64_xor_reg_pairs() 1546 return __bpf_fill_alu_reg_pairs(self, BPF_XOR, true); in bpf_fill_alu32_xor_reg_pairs() [all …]
|
/linux-6.1.9/Documentation/bpf/ |
D | instruction-set.rst | 109 BPF_XOR 0xa0 dst ^= src 123 ``BPF_XOR | BPF_K | BPF_ALU`` means:: 127 ``BPF_XOR | BPF_K | BPF_ALU64`` means:: 273 BPF_XOR 0xa0 atomic xor
|
/linux-6.1.9/arch/powerpc/net/ |
D | bpf_jit_comp64.c | 540 case BPF_ALU | BPF_XOR | BPF_X: /* (u32) dst ^= src */ in bpf_jit_build_body() 541 case BPF_ALU64 | BPF_XOR | BPF_X: /* dst ^= src */ in bpf_jit_build_body() 544 case BPF_ALU | BPF_XOR | BPF_K: /* (u32) dst ^= (u32) imm */ in bpf_jit_build_body() 545 case BPF_ALU64 | BPF_XOR | BPF_K: /* dst ^= imm */ in bpf_jit_build_body() 811 case BPF_XOR: in bpf_jit_build_body() 812 case BPF_XOR | BPF_FETCH: in bpf_jit_build_body()
|
D | bpf_jit_comp32.c | 536 case BPF_ALU64 | BPF_XOR | BPF_X: /* dst ^= src */ in bpf_jit_build_body() 545 case BPF_ALU | BPF_XOR | BPF_X: /* (u32) dst ^= src */ in bpf_jit_build_body() 551 case BPF_ALU64 | BPF_XOR | BPF_K: /* dst ^= imm */ in bpf_jit_build_body() 555 case BPF_ALU | BPF_XOR | BPF_K: /* (u32) dst ^= (u32) imm */ in bpf_jit_build_body() 822 case BPF_XOR: in bpf_jit_build_body() 823 case BPF_XOR | BPF_FETCH: in bpf_jit_build_body()
|
/linux-6.1.9/tools/bpf/ |
D | bpf_exp.y | 417 bpf_set_curr_instr(BPF_ALU | BPF_XOR | BPF_K, 0, 0, $3); } 419 bpf_set_curr_instr(BPF_ALU | BPF_XOR | BPF_X, 0, 0, 0); } 421 bpf_set_curr_instr(BPF_ALU | BPF_XOR | BPF_X, 0, 0, 0); }
|
/linux-6.1.9/arch/loongarch/net/ |
D | bpf_jit.c | 313 case BPF_XOR: in emit_atomic() 344 case BPF_XOR | BPF_FETCH: in emit_atomic() 560 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 561 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn() 567 case BPF_ALU | BPF_XOR | BPF_K: in build_insn() 568 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn()
|
/linux-6.1.9/arch/riscv/net/ |
D | bpf_jit_comp32.c | 273 case BPF_XOR: in emit_alu_i64() 369 case BPF_XOR: in emit_alu_i32() 446 case BPF_XOR: in emit_alu_r64() 535 case BPF_XOR: in emit_alu_r32() 980 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 1008 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_emit_insn() 1027 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 1053 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
|
D | bpf_jit_comp64.c | 507 case BPF_XOR: in emit_atomic() 530 case BPF_XOR | BPF_FETCH: in emit_atomic() 681 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 682 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn() 850 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_emit_insn() 851 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
|
/linux-6.1.9/arch/arm64/net/ |
D | bpf_jit_comp.c | 471 case BPF_XOR: in emit_lse_atomic() 485 case BPF_XOR | BPF_FETCH: in emit_lse_atomic() 534 imm == BPF_OR || imm == BPF_XOR) { in emit_ll_sc_atomic() 552 imm == (BPF_XOR | BPF_FETCH)) { in emit_ll_sc_atomic() 800 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 801 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn() 922 case BPF_ALU | BPF_XOR | BPF_K: in build_insn() 923 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn() 1330 imm == (BPF_FETCH | BPF_XOR) || in find_fpb_offset()
|
/linux-6.1.9/arch/s390/net/ |
D | bpf_jit_comp.c | 976 case BPF_ALU | BPF_XOR | BPF_X: /* dst = (u32) dst ^ (u32) src */ in bpf_jit_insn() 981 case BPF_ALU64 | BPF_XOR | BPF_X: /* dst = dst ^ src */ in bpf_jit_insn() 985 case BPF_ALU | BPF_XOR | BPF_K: /* dst = (u32) dst ^ (u32) imm */ in bpf_jit_insn() 992 case BPF_ALU64 | BPF_XOR | BPF_K: /* dst = dst ^ imm */ in bpf_jit_insn() 1228 case BPF_XOR: in bpf_jit_insn() 1229 case BPF_XOR | BPF_FETCH: in bpf_jit_insn()
|
/linux-6.1.9/arch/x86/net/ |
D | bpf_jit_comp.c | 219 [BPF_XOR] = 0x31, 819 case BPF_XOR: in emit_atomic() 946 case BPF_ALU | BPF_XOR | BPF_X: in do_jit() 951 case BPF_ALU64 | BPF_XOR | BPF_X: in do_jit() 977 case BPF_ALU | BPF_XOR | BPF_K: in do_jit() 982 case BPF_ALU64 | BPF_XOR | BPF_K: in do_jit() 1007 case BPF_XOR: in do_jit() 1380 insn->imm == (BPF_XOR | BPF_FETCH)) { in do_jit()
|
D | bpf_jit_comp32.c | 564 case BPF_XOR: in emit_ia32_alu_r() 658 case BPF_XOR: in emit_ia32_alu_i() 1726 case BPF_ALU | BPF_XOR | BPF_K: in do_jit() 1727 case BPF_ALU | BPF_XOR | BPF_X: in do_jit() 1736 case BPF_ALU64 | BPF_XOR | BPF_K: in do_jit() 1737 case BPF_ALU64 | BPF_XOR | BPF_X: in do_jit()
|