Home
last modified time | relevance | path

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

12

/Linux-v6.6/tools/testing/selftests/bpf/verifier/
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),
71 BPF_ALU64_REG(BPF_MOV, BPF_REG_6, BPF_REG_0),
73 BPF_ALU64_REG(BPF_MOV, BPF_REG_7, BPF_REG_0),
75 BPF_ALU64_IMM(BPF_MOV, BPF_REG_4, 0),
77 BPF_ALU64_IMM(BPF_MOV, BPF_REG_1, 1),
[all …]
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 …]
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),
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),
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),
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),
Dbasic.c19 BPF_ALU64_REG(BPF_MOV, BPF_REG_0, BPF_REG_2),
/Linux-v6.6/lib/
Dtest_bpf.c280 insn[1] = BPF_ALU32_IMM(BPF_MOV, R0, 0xcbababab); in bpf_fill_maxinsns9()
284 insn[i] = BPF_ALU32_IMM(BPF_MOV, R0, 0xfefefefe); in bpf_fill_maxinsns9()
311 insn[hlen] = BPF_ALU32_IMM(BPF_MOV, R0, 0xabababac); in bpf_fill_maxinsns10()
441 insn[0] = BPF_ALU32_IMM(BPF_MOV, R0, 1); in __bpf_fill_stxdw()
492 insns[i++] = BPF_ALU64_IMM(BPF_MOV, R0, 1); in __bpf_fill_max_jmp()
494 insns[i++] = BPF_ALU64_IMM(BPF_MOV, R0, 2); in __bpf_fill_max_jmp()
547 case BPF_MOV: in __bpf_alu_result()
613 insn[i++] = BPF_ALU64_IMM(BPF_MOV, R0, 0); in __bpf_fill_alu_shift()
624 insn[i++] = BPF_ALU64_REG(BPF_MOV, R1, R3); in __bpf_fill_alu_shift()
625 insn[i++] = BPF_ALU64_IMM(BPF_MOV, R2, imm); in __bpf_fill_alu_shift()
[all …]
/Linux-v6.6/tools/include/linux/
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), \
/Linux-v6.6/samples/bpf/
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, \
/Linux-v6.6/tools/testing/selftests/bpf/
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()
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()
Ddisasm.c85 [BPF_MOV >> 4] = "=",
165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx()
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector_load_bytes.c13 BPF_ALU64_REG(BPF_MOV, BPF_REG_3, BPF_REG_10), in serial_test_flow_dissector_load_bytes()
Dsignal_pending.c26 prog[i] = BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0); in test_signal_pending_by_type()
Dobj_name.c17 BPF_ALU64_IMM(BPF_MOV, BPF_REG_0, 0), in test_obj_name()
/Linux-v6.6/include/linux/
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), \
/Linux-v6.6/arch/parisc/net/
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()
1174 case BPF_ALU64 | BPF_MOV | BPF_K: in bpf_jit_emit_insn()
[all …]
/Linux-v6.6/kernel/bpf/
Dcore.c1266 (from->code == (BPF_ALU | BPF_MOV | BPF_K) || in bpf_jit_blind_insn()
1267 from->code == (BPF_ALU64 | BPF_MOV | BPF_K))) { in bpf_jit_blind_insn()
1279 case BPF_ALU | BPF_MOV | BPF_K: in bpf_jit_blind_insn()
1282 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn()
1293 case BPF_ALU64 | BPF_MOV | BPF_K: in bpf_jit_blind_insn()
1296 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn()
1316 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn()
1336 *to++ = BPF_ALU32_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ from->imm); in bpf_jit_blind_insn()
1343 *to++ = BPF_ALU64_IMM(BPF_MOV, BPF_REG_AX, imm_rnd ^ aux[1].imm); in bpf_jit_blind_insn()
1346 *to++ = BPF_ALU64_REG(BPF_MOV, aux[0].dst_reg, BPF_REG_AX); in bpf_jit_blind_insn()
[all …]
Ddisasm.c85 [BPF_MOV >> 4] = "=",
165 return BPF_OP(insn->code) == BPF_MOV && in is_movsx()
/Linux-v6.6/tools/testing/selftests/net/
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()
/Linux-v6.6/arch/riscv/net/
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()
/Linux-v6.6/arch/mips/net/
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()
/Linux-v6.6/arch/powerpc/net/
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()
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