/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A 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),
|
H A 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),
|
H A D | atomic_invalid.c | 22 __INVALID_ATOMIC_ACCESS_TEST(BPF_XOR), 23 __INVALID_ATOMIC_ACCESS_TEST(BPF_XOR | BPF_FETCH),
|
H A D | basic_instr.c | 22 BPF_ALU32_REG(BPF_XOR, BPF_REG_2, BPF_REG_2),
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | disasm.c | 84 [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()
|
/openbmc/linux/kernel/bpf/ |
H A D | disasm.c | 84 [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()
|
H A D | core.c | 1281 *to++ = BPF_ALU64_REG(BPF_XOR, from->dst_reg, from->dst_reg); in bpf_jit_blind_insn() 1290 case BPF_ALU | BPF_XOR | BPF_K: in bpf_jit_blind_insn() 1296 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1304 case BPF_ALU64 | BPF_XOR | BPF_K: in bpf_jit_blind_insn() 1310 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1330 *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() 1357 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1363 *to++ = BPF_ALU32_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() 1374 *to++ = BPF_ALU64_IMM(BPF_XOR, BPF_REG_AX, imm_rnd); in bpf_jit_blind_insn() [all …]
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 166 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()
|
H A 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() 1698 case BPF_XOR: in build_insn() 1699 case BPF_XOR | BPF_FETCH: in build_insn() 1730 case BPF_XOR: in build_insn() [all …]
|
H A D | bpf_jit_comp.c | 232 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()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf_common.h | 42 #define BPF_XOR 0xa0 macro
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf_common.h | 42 #define BPF_XOR 0xa0 macro
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 556 case BPF_XOR: in __bpf_alu_result() 4216 BPF_ALU64_REG(BPF_XOR, R1, R1), 4222 BPF_ALU64_REG(BPF_XOR, R2, R2), 4226 BPF_ALU64_REG(BPF_XOR, R3, R3), 4232 BPF_ALU64_REG(BPF_XOR, R4, R4), 4238 BPF_ALU64_REG(BPF_XOR, R5, R5), 4245 BPF_ALU64_REG(BPF_XOR, R6, R6), 4251 BPF_ALU64_REG(BPF_XOR, R7, R7), 4466 BPF_ALU64_IMM(BPF_XOR, R2, 3), 6586 BPF_ALU32_IMM(BPF_XOR, R0, 6), [all …]
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp64.c | 559 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() 839 case BPF_XOR: in bpf_jit_build_body() 840 case BPF_XOR | BPF_FETCH: in bpf_jit_build_body()
|
H A D | bpf_jit_comp32.c | 582 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() 884 case BPF_XOR: in bpf_jit_build_body() 885 case BPF_XOR | BPF_FETCH: in bpf_jit_build_body()
|
/openbmc/linux/tools/bpf/ |
H A 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); }
|
/openbmc/linux/arch/loongarch/net/ |
H A D | bpf_jit.c | 313 case BPF_XOR: in emit_atomic() 344 case BPF_XOR | BPF_FETCH: in emit_atomic() 618 case BPF_ALU | BPF_XOR | BPF_X: in build_insn() 619 case BPF_ALU64 | BPF_XOR | BPF_X: in build_insn() 625 case BPF_ALU | BPF_XOR | BPF_K: in build_insn() 626 case BPF_ALU64 | BPF_XOR | BPF_K: in build_insn()
|
/openbmc/linux/arch/riscv/net/ |
H A 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()
|
H A D | bpf_jit_comp64.c | 513 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()
|
/openbmc/linux/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 477 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()
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp32.c | 449 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()
|
H A D | bpf_jit_comp64.c | 646 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()
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 270 [BPF_XOR] = 0x31, 935 case BPF_XOR: in emit_atomic() 1126 case BPF_ALU | BPF_XOR | BPF_X: in do_jit() 1131 case BPF_ALU64 | BPF_XOR | BPF_X: in do_jit() 1162 case BPF_ALU | BPF_XOR | BPF_K: in do_jit() 1167 case BPF_ALU64 | BPF_XOR | BPF_K: in do_jit() 1192 case BPF_XOR: in do_jit() 1612 insn->imm == (BPF_XOR | BPF_FETCH)) { in do_jit()
|
H A 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()
|
/openbmc/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 1080 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() 1336 case BPF_XOR: in bpf_jit_insn() 1337 case BPF_XOR | BPF_FETCH: in bpf_jit_insn()
|