Home
last modified time | relevance | path

Searched refs:BPF_XOR (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Datomic_fetch.c139 __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),
Datomic_xor.c8 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),
Datomic_invalid.c22 __INVALID_ATOMIC_ACCESS_TEST(BPF_XOR),
23 __INVALID_ATOMIC_ACCESS_TEST(BPF_XOR | BPF_FETCH),
Dbasic_instr.c22 BPF_ALU32_REG(BPF_XOR, BPF_REG_2, BPF_REG_2),
/Linux-v6.6/tools/testing/selftests/bpf/
Ddisasm.c84 [BPF_XOR >> 4] = "^=",
105 [BPF_XOR >> 4] = "xor",
213 insn->imm == BPF_OR || insn->imm == BPF_XOR)) { in print_bpf_insn()
224 insn->imm == (BPF_XOR | BPF_FETCH))) { in print_bpf_insn()
/Linux-v6.6/kernel/bpf/
Ddisasm.c84 [BPF_XOR >> 4] = "^=",
105 [BPF_XOR >> 4] = "xor",
213 insn->imm == BPF_OR || insn->imm == BPF_XOR)) { in print_bpf_insn()
224 insn->imm == (BPF_XOR | BPF_FETCH))) { in print_bpf_insn()
Dcore.c1268 *to++ = BPF_ALU64_REG(BPF_XOR, from->dst_reg, from->dst_reg); in bpf_jit_blind_insn()
1277 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_blind_insn()
1283 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
1291 case BPF_ALU64 | BPF_XOR | BPF_K: 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_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
1337 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
1344 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
1350 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
1361 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn()
[all …]
/Linux-v6.6/arch/mips/net/
Dbpf_jit_comp64.c166 case BPF_XOR: in emit_alu_i64()
402 case BPF_XOR: in emit_atomic_r64()
403 case BPF_XOR | BPF_FETCH: in emit_atomic_r64()
675 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
715 case BPF_ALU | BPF_XOR | BPF_X: in build_insn()
764 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn()
793 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn()
858 case BPF_XOR: in build_insn()
859 case BPF_XOR | BPF_FETCH: in build_insn()
Dbpf_jit_comp32.c255 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 …]
Dbpf_jit_comp.c232 case BPF_XOR: in valid_alu_i()
258 case BPF_XOR: in rewrite_alu_i()
314 case BPF_XOR: in emit_alu_i()
354 case BPF_XOR: in emit_alu_r()
426 case BPF_XOR: in emit_atomic_r()
427 case BPF_XOR | BPF_FETCH: in emit_atomic_r()
/Linux-v6.6/tools/include/uapi/linux/
Dbpf_common.h42 #define BPF_XOR 0xa0 macro
/Linux-v6.6/include/uapi/linux/
Dbpf_common.h42 #define BPF_XOR 0xa0 macro
/Linux-v6.6/lib/
Dtest_bpf.c392 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-v6.6/arch/powerpc/net/
Dbpf_jit_comp64.c559 case BPF_ALU | BPF_XOR | BPF_X: /* (u32) dst ^= src */ in bpf_jit_build_body()
560 case BPF_ALU64 | BPF_XOR | BPF_X: /* dst ^= src */ in bpf_jit_build_body()
563 case BPF_ALU | BPF_XOR | BPF_K: /* (u32) dst ^= (u32) imm */ in bpf_jit_build_body()
564 case BPF_ALU64 | BPF_XOR | BPF_K: /* dst ^= imm */ in bpf_jit_build_body()
830 case BPF_XOR: in bpf_jit_build_body()
831 case BPF_XOR | BPF_FETCH: in bpf_jit_build_body()
Dbpf_jit_comp32.c582 case BPF_ALU64 | BPF_XOR | BPF_X: /* dst ^= src */ in bpf_jit_build_body()
591 case BPF_ALU | BPF_XOR | BPF_X: /* (u32) dst ^= src */ in bpf_jit_build_body()
597 case BPF_ALU64 | BPF_XOR | BPF_K: /* dst ^= imm */ in bpf_jit_build_body()
601 case BPF_ALU | BPF_XOR | BPF_K: /* (u32) dst ^= (u32) imm */ in bpf_jit_build_body()
875 case BPF_XOR: in bpf_jit_build_body()
876 case BPF_XOR | BPF_FETCH: in bpf_jit_build_body()
/Linux-v6.6/tools/bpf/
Dbpf_exp.y417 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-v6.6/arch/loongarch/net/
Dbpf_jit.c313 case BPF_XOR: in emit_atomic()
344 case BPF_XOR | BPF_FETCH: in emit_atomic()
619 case BPF_ALU | BPF_XOR | BPF_X: in build_insn()
620 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn()
626 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
627 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn()
/Linux-v6.6/arch/riscv/net/
Dbpf_jit_comp32.c273 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()
Dbpf_jit_comp64.c513 case BPF_XOR: in emit_atomic()
536 case BPF_XOR | BPF_FETCH: in emit_atomic()
1137 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
1138 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
1313 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
1314 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
/Linux-v6.6/arch/arm64/net/
Dbpf_jit_comp.c477 case BPF_XOR: in emit_lse_atomic()
491 case BPF_XOR | BPF_FETCH: in emit_lse_atomic()
540 imm == BPF_OR || imm == BPF_XOR) { in emit_ll_sc_atomic()
558 imm == (BPF_XOR | BPF_FETCH)) { in emit_ll_sc_atomic()
821 case BPF_ALU | BPF_XOR | BPF_X: in build_insn()
822 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn()
950 case BPF_ALU | BPF_XOR | BPF_K: in build_insn()
951 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn()
1395 imm == (BPF_FETCH | BPF_XOR) || in find_fpb_offset()
/Linux-v6.6/arch/parisc/net/
Dbpf_jit_comp32.c449 case BPF_XOR: in emit_alu_i64()
541 case BPF_XOR: in emit_alu_i32()
599 case BPF_XOR: in emit_alu_r64()
662 case BPF_XOR: in emit_alu_r32()
1148 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
1177 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
1196 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
1223 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
Dbpf_jit_comp64.c646 case BPF_ALU | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
647 case BPF_ALU64 | BPF_XOR | BPF_X: in bpf_jit_emit_insn()
815 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
816 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_emit_insn()
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c220 [BPF_XOR] = 0x31,
885 case BPF_XOR: in emit_atomic()
1072 case BPF_ALU | BPF_XOR | BPF_X: in do_jit()
1077 case BPF_ALU64 | BPF_XOR | BPF_X: in do_jit()
1108 case BPF_ALU | BPF_XOR | BPF_K: in do_jit()
1113 case BPF_ALU64 | BPF_XOR | BPF_K: in do_jit()
1138 case BPF_XOR: in do_jit()
1565 insn->imm == (BPF_XOR | BPF_FETCH)) { in do_jit()
Dbpf_jit_comp32.c564 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()
/Linux-v6.6/arch/s390/net/
Dbpf_jit_comp.c1080 case BPF_ALU | BPF_XOR | BPF_X: /* dst = (u32) dst ^ (u32) src */ in bpf_jit_insn()
1085 case BPF_ALU64 | BPF_XOR | BPF_X: /* dst = dst ^ src */ in bpf_jit_insn()
1089 case BPF_ALU | BPF_XOR | BPF_K: /* dst = (u32) dst ^ (u32) imm */ in bpf_jit_insn()
1096 case BPF_ALU64 | BPF_XOR | BPF_K: /* dst = dst ^ imm */ in bpf_jit_insn()
1332 case BPF_XOR: in bpf_jit_insn()
1333 case BPF_XOR | BPF_FETCH: in bpf_jit_insn()

12