/openbmc/linux/tools/testing/selftests/bpf/verifier/ |
H A D | bpf_loop_inline.c | 42 BPF_ALU64_IMM(BPF_MOV, BPF_REG_1, 1), 44 BPF_ALU64_IMM(BPF_MOV, BPF_REG_1, 2), 48 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 49 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0), 51 BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0), 54 BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 1), 75 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0), 77 BPF_ALU64_IMM(BPF_MOV, BPF_REG_1, 1), 80 BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0), 82 BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0), [all …]
|
H A D | jmp32.c | 231 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 258 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 281 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 302 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 329 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 352 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 373 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 400 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 423 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), 444 BPF_ALU32_IMM(BPF_MOV, BPF_REG_0, 2), [all …]
|
H A D | ld_abs.c | 168 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_1), 170 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2), 172 BPF_ALU64_REG(BPF_MOV, BPF_REG_8, BPF_REG_0), 188 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_1), 190 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2), 192 BPF_ALU64_REG(BPF_MOV, BPF_REG_8, BPF_REG_0), 208 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_1), 209 BPF_ALU64_IMM(BPF_MOV, BPF_REG_7, 0), 224 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_1), 225 BPF_ALU64_IMM(BPF_MOV, BPF_REG_7, 0),
|
H A D | precise.c | 226 BPF_ALU64_IMM(BPF_MOV, BPF_REG_6, 0x400), 227 BPF_ALU64_IMM(BPF_MOV, BPF_REG_7, 0), 228 BPF_ALU64_IMM(BPF_MOV, BPF_REG_8, 0), 229 BPF_ALU64_IMM(BPF_MOV, BPF_REG_9, 0x80000000), 234 BPF_ALU64_IMM(BPF_MOV, BPF_REG_9, 0), 236 BPF_ALU64_IMM(BPF_MOV, BPF_REG_6, 0), 237 BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0), 240 BPF_ALU64_REG(BPF_MOV, BPF_REG_1, BPF_REG_4), 241 BPF_ALU64_REG(BPF_MOV, BPF_REG_2, BPF_REG_10), 248 BPF_ALU64_REG(BPF_MOV, BPF_REG_1, BPF_REG_0),
|
H A D | basic_instr.c | 111 BPF_ALU64_REG(BPF_MOV, BPF_REG_2, BPF_REG_1), 125 BPF_ALU64_REG(BPF_MOV, BPF_REG_2, BPF_REG_1), 153 BPF_ALU64_REG(BPF_MOV, BPF_REG_2, BPF_REG_1), 168 BPF_ALU64_REG(BPF_MOV, BPF_REG_2, BPF_REG_1),
|
H A D | basic_call.c | 42 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_1), 44 BPF_ALU64_REG(BPF_MOV, BPF_REG_1, BPF_REG_6),
|
H A D | basic.c | 19 BPF_ALU64_REG(BPF_MOV, BPF_REG_0, BPF_REG_2),
|
/openbmc/linux/lib/ |
H A D | test_bpf.c | 547 case BPF_MOV: in __bpf_alu_result() 3708 BPF_ALU64_IMM(BPF_MOV, R1, 1), 3710 BPF_ALU64_IMM(BPF_MOV, R2, 3), 3726 BPF_ALU64_IMM(BPF_MOV, R2, 3), 3730 BPF_ALU64_IMM(BPF_MOV, R0, 1), 3742 BPF_ALU32_IMM(BPF_MOV, R2, 3), 3747 BPF_ALU32_IMM(BPF_MOV, R0, 1), 3759 BPF_ALU32_IMM(BPF_MOV, R2, 3), 3764 BPF_ALU32_IMM(BPF_MOV, R0, 1), 3778 BPF_ALU64_IMM(BPF_MOV, R0, 0), [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | filter.h | 82 .code = BPF_ALU64 | BPF_MOV | BPF_X, \ 90 .code = BPF_ALU | BPF_MOV | BPF_X, \ 100 .code = BPF_ALU64 | BPF_MOV | BPF_K, \ 108 .code = BPF_ALU | BPF_MOV | BPF_K, \ 118 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \ 126 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
|
/openbmc/linux/samples/bpf/ |
H A D | bpf_insn.h | 48 .code = BPF_ALU64 | BPF_MOV | BPF_X, \ 56 .code = BPF_ALU | BPF_MOV | BPF_X, \ 66 .code = BPF_ALU64 | BPF_MOV | BPF_K, \ 74 .code = BPF_ALU | BPF_MOV | BPF_K, \
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_tag.c | 33 prog[i] = BPF_ALU64_IMM(BPF_MOV, i % BPF_REG_10, rand()); in bpf_gen_imm_prog() 49 prog[insns - 2] = BPF_ALU64_IMM(BPF_MOV, i % BPF_REG_10, 42); in bpf_gen_map_prog()
|
H A D | test_verifier.c | 227 insn[i] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0xbef); in bpf_fill_ld_abs_vlan_push_pop() 304 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 42); in bpf_fill_scale1() 333 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 42); in bpf_fill_scale2() 439 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_1, 1); in bpf_fill_big_prog_with_loop_1() 445 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_3, 0); in bpf_fill_big_prog_with_loop_1() 446 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0); in bpf_fill_big_prog_with_loop_1() 450 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0); in bpf_fill_big_prog_with_loop_1() 454 insn[i++] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0); in bpf_fill_big_prog_with_loop_1()
|
H A D | disasm.c | 85 [BPF_MOV >> 4] = "=", 165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector_load_bytes.c | 13 BPF_ALU64_REG(BPF_MOV, BPF_REG_3, BPF_REG_10), in serial_test_flow_dissector_load_bytes()
|
H A D | signal_pending.c | 26 prog[i] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0); in test_signal_pending_by_type()
|
H A D | obj_name.c | 17 BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0), in test_obj_name()
|
/openbmc/linux/include/linux/ |
H A D | filter.h | 150 .code = BPF_ALU64 | BPF_MOV | BPF_X, \ 158 .code = BPF_ALU | BPF_MOV | BPF_X, \ 168 .code = BPF_ALU64 | BPF_MOV | BPF_K, \ 176 .code = BPF_ALU | BPF_MOV | BPF_K, \ 185 .code = BPF_ALU | BPF_MOV | BPF_X, \ 193 return insn->code == (BPF_ALU | BPF_MOV | BPF_X) && insn->imm == 1; in insn_is_zext() 222 .code = BPF_ALU64 | BPF_MOV | BPF_SRC(TYPE), \ 230 .code = BPF_ALU | BPF_MOV | BPF_SRC(TYPE), \
|
/openbmc/linux/arch/parisc/net/ |
H A D | bpf_jit_comp32.c | 427 if (0 && op == BPF_MOV) in emit_alu_i64() 434 case BPF_MOV: in emit_alu_i64() 515 if (op == BPF_MOV) in emit_alu_i32() 522 case BPF_MOV: in emit_alu_i32() 572 if (op == BPF_MOV) in emit_alu_r64() 579 case BPF_MOV: in emit_alu_r64() 640 if (op == BPF_MOV) in emit_alu_r32() 647 case BPF_MOV: in emit_alu_r32() 1138 case BPF_ALU64 | BPF_MOV | BPF_X: in bpf_jit_emit_insn() 1184 case BPF_ALU | BPF_MOV | BPF_X: in bpf_jit_emit_insn() [all …]
|
/openbmc/linux/kernel/bpf/ |
H A D | core.c | 1279 (from->code == (BPF_ALU | BPF_MOV | BPF_K) || in bpf_jit_blind_insn() 1280 from->code == (BPF_ALU64 | BPF_MOV | BPF_K))) { in bpf_jit_blind_insn() 1292 case BPF_ALU | BPF_MOV | BPF_K: in bpf_jit_blind_insn() 1295 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1306 case BPF_ALU64 | BPF_MOV | BPF_K: in bpf_jit_blind_insn() 1309 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1329 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1349 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn() 1356 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ aux[1].imm); in bpf_jit_blind_insn() 1359 *to++ = BPF_ALU64_REG(BPF_MOV, aux[0].dst_reg, BPF_REG_AX); in bpf_jit_blind_insn() [all …]
|
H A D | disasm.c | 85 [BPF_MOV >> 4] = "=", 165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | psock_fanout.c | 150 { BPF_ALU64 | BPF_MOV | BPF_X, 6, 1, 0, 0 }, in sock_fanout_set_ebpf() 157 { BPF_ALU | BPF_MOV | BPF_K, 0, 0, 0, 0 }, in sock_fanout_set_ebpf()
|
/openbmc/linux/arch/riscv/net/ |
H A D | bpf_jit_comp32.c | 250 case BPF_MOV: in emit_alu_i64() 334 case BPF_MOV: in emit_alu_i32() 415 case BPF_MOV: in emit_alu_r64() 520 case BPF_MOV: in emit_alu_r32() 970 case BPF_ALU64 | BPF_MOV | BPF_X: in bpf_jit_emit_insn() 1005 case BPF_ALU64 | BPF_MOV | BPF_K: in bpf_jit_emit_insn() 1015 case BPF_ALU | BPF_MOV | BPF_X: in bpf_jit_emit_insn() 1048 case BPF_ALU | BPF_MOV | BPF_K: in bpf_jit_emit_insn()
|
/openbmc/linux/arch/mips/net/ |
H A D | bpf_jit_comp64.c | 649 case BPF_ALU | BPF_MOV | BPF_K: in build_insn() 654 case BPF_ALU | BPF_MOV | BPF_X: in build_insn() 740 case BPF_ALU64 | BPF_MOV | BPF_K: in build_insn() 744 case BPF_ALU64 | BPF_MOV | BPF_X: in build_insn()
|
/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp32.c | 314 BPF_OP(prevcode) == BPF_MOV && BPF_SRC(prevcode) == BPF_X && in bpf_jit_build_body() 728 case BPF_ALU64 | BPF_MOV | BPF_X: /* dst = src */ in bpf_jit_build_body() 734 case BPF_ALU | BPF_MOV | BPF_X: /* (u32) dst = src */ in bpf_jit_build_body() 741 case BPF_ALU64 | BPF_MOV | BPF_K: /* dst = (s64) imm */ in bpf_jit_build_body() 745 case BPF_ALU | BPF_MOV | BPF_K: /* (u32) dst = imm */ in bpf_jit_build_body()
|
H A D | bpf_jit_comp64.c | 630 case BPF_ALU | BPF_MOV | BPF_X: /* (u32) dst = src */ in bpf_jit_build_body() 631 case BPF_ALU64 | BPF_MOV | BPF_X: /* dst = src */ in bpf_jit_build_body() 639 case BPF_ALU | BPF_MOV | BPF_K: /* (u32) dst = imm */ in bpf_jit_build_body() 640 case BPF_ALU64 | BPF_MOV | BPF_K: /* dst = (s64) imm */ in bpf_jit_build_body()
|