Home
last modified time | relevance | path

Searched refs:BPF_MOV (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A Dbpf_loop_inline.c42 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 Djmp32.c231 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 Dld_abs.c168 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 Dprecise.c226 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 Dbasic_instr.c111 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 Dbasic_call.c42 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 Dbasic.c19 BPF_ALU64_REG(BPF_MOV, BPF_REG_0, BPF_REG_2),
/openbmc/linux/lib/
H A Dtest_bpf.c547 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 Dfilter.h82 .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 Dbpf_insn.h48 .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 Dtest_tag.c33 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 Dtest_verifier.c227 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 Ddisasm.c85 [BPF_MOV >> 4] = "=",
165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_load_bytes.c13 BPF_ALU64_REG(BPF_MOV, BPF_REG_3, BPF_REG_10), in serial_test_flow_dissector_load_bytes()
H A Dsignal_pending.c26 prog[i] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0); in test_signal_pending_by_type()
H A Dobj_name.c17 BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0), in test_obj_name()
/openbmc/linux/include/linux/
H A Dfilter.h150 .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 Dbpf_jit_comp32.c427 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 Dcore.c1279 (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 Ddisasm.c85 [BPF_MOV >> 4] = "=",
165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx()
/openbmc/linux/tools/testing/selftests/net/
H A Dpsock_fanout.c150 { 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 Dbpf_jit_comp32.c250 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 Dbpf_jit_comp64.c649 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 Dbpf_jit_comp32.c314 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 Dbpf_jit_comp64.c630 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()

12