Home
last modified time | relevance | path

Searched refs:BPF_MOV32_IMM (Results 1 – 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/verifier/
Ddiv0.c4 BPF_MOV32_IMM(BPF_REG_0, 42),
5 BPF_MOV32_IMM(BPF_REG_1, 0),
6 BPF_MOV32_IMM(BPF_REG_2, 1),
16 BPF_MOV32_IMM(BPF_REG_0, 42),
18 BPF_MOV32_IMM(BPF_REG_2, 1),
28 BPF_MOV32_IMM(BPF_REG_0, 42),
29 BPF_MOV32_IMM(BPF_REG_1, 0),
30 BPF_MOV32_IMM(BPF_REG_2, 1),
40 BPF_MOV32_IMM(BPF_REG_0, 42),
41 BPF_MOV32_IMM(BPF_REG_1, 0),
[all …]
Dmasking.c4 BPF_MOV32_IMM(BPF_REG_1, 5),
5 BPF_MOV32_IMM(BPF_REG_2, 5 - 1),
20 BPF_MOV32_IMM(BPF_REG_1, 1),
21 BPF_MOV32_IMM(BPF_REG_2, 1 - 1),
36 BPF_MOV32_IMM(BPF_REG_1, 0xffffffff),
37 BPF_MOV32_IMM(BPF_REG_2, 0xffffffff - 1),
52 BPF_MOV32_IMM(BPF_REG_1, 0xffffffff),
53 BPF_MOV32_IMM(BPF_REG_2, 1 - 1),
68 BPF_MOV32_IMM(BPF_REG_1, -1),
69 BPF_MOV32_IMM(BPF_REG_2, 1 - 1),
[all …]
Ddiv_overflow.c8 BPF_MOV32_IMM(BPF_REG_1, -1),
9 BPF_MOV32_IMM(BPF_REG_0, INT_MIN),
20 BPF_MOV32_IMM(BPF_REG_0, INT_MIN),
34 BPF_MOV32_IMM(BPF_REG_0, 0),
36 BPF_MOV32_IMM(BPF_REG_0, 1),
48 BPF_MOV32_IMM(BPF_REG_0, 0),
50 BPF_MOV32_IMM(BPF_REG_0, 1),
60 BPF_MOV32_IMM(BPF_REG_1, -1),
61 BPF_MOV32_IMM(BPF_REG_0, INT_MIN),
72 BPF_MOV32_IMM(BPF_REG_0, INT_MIN),
[all …]
Dctx_sk_lookup.c236 BPF_MOV32_IMM(BPF_REG_0, 0),
249 BPF_MOV32_IMM(BPF_REG_0, 0),
262 BPF_MOV32_IMM(BPF_REG_0, 0),
275 BPF_MOV32_IMM(BPF_REG_0, 0),
288 BPF_MOV32_IMM(BPF_REG_0, 0),
301 BPF_MOV32_IMM(BPF_REG_0, 0),
314 BPF_MOV32_IMM(BPF_REG_0, 0),
327 BPF_MOV32_IMM(BPF_REG_0, 0),
340 BPF_MOV32_IMM(BPF_REG_0, 0),
354 BPF_MOV32_IMM(BPF_REG_0, 0),
[all …]
Dld_abs.c110 BPF_MOV32_IMM(BPF_REG_0, 256),
127 BPF_MOV32_IMM(BPF_REG_0, 18),
132 BPF_MOV32_IMM(BPF_REG_0, 280971478),
140 BPF_MOV32_IMM(BPF_REG_0, 22),
145 BPF_MOV32_IMM(BPF_REG_0, 17366),
151 BPF_MOV32_IMM(BPF_REG_0, 256),
153 BPF_MOV32_IMM(BPF_REG_0, 0),
Ddirect_stack_access_wraparound.c7 BPF_MOV32_IMM(BPF_REG_0, 0),
20 BPF_MOV32_IMM(BPF_REG_0, 0),
33 BPF_MOV32_IMM(BPF_REG_0, 0),
Dbasic_instr.c19 BPF_MOV32_IMM(BPF_REG_2, -1),
23 BPF_MOV32_IMM(BPF_REG_0, 2),
25 BPF_MOV32_IMM(BPF_REG_0, 1),
181 BPF_MOV32_IMM(BPF_REG_0, 0),
Darray_access.c72 BPF_MOV32_IMM(BPF_REG_1, 0),
73 BPF_MOV32_IMM(BPF_REG_2, MAX_ENTRIES),
75 BPF_MOV32_IMM(BPF_REG_1, 0),
154 BPF_MOV32_IMM(BPF_REG_2, MAX_ENTRIES),
156 BPF_MOV32_IMM(BPF_REG_1, 0),
179 BPF_MOV32_IMM(BPF_REG_2, MAX_ENTRIES + 1),
181 BPF_MOV32_IMM(BPF_REG_1, 0),
Dsearch_pruning.c68 BPF_MOV32_IMM(BPF_REG_2, MAX_ENTRIES),
70 BPF_MOV32_IMM(BPF_REG_1, 0),
Djmp32.c803 BPF_MOV32_IMM(BPF_REG_0, 0),
824 BPF_MOV32_IMM(BPF_REG_2, 1),
831 BPF_MOV32_IMM(BPF_REG_0, 0),
852 BPF_MOV32_IMM(BPF_REG_2, 1),
859 BPF_MOV32_IMM(BPF_REG_0, 0),
Draw_tp_writable.c9 BPF_MOV32_IMM(BPF_REG_0, 0),
Dand.c38 BPF_MOV32_IMM(BPF_REG_3, 1),
Dbounds.c88 BPF_MOV32_IMM(BPF_REG_2, 0xffffffff),
544 BPF_MOV32_IMM(BPF_REG_9, 0),
591 BPF_MOV32_IMM(BPF_REG_1, 0),
Dsubreg.c378 BPF_MOV32_IMM(BPF_REG_0, 0),
384 BPF_MOV32_IMM(BPF_REG_0, 1),
Dcalls.c41 BPF_MOV32_IMM(BPF_REG_2, 0),
42 BPF_MOV32_IMM(BPF_REG_3, 1),
69 BPF_MOV32_IMM(BPF_REG_0, 42),
370 BPF_MOV32_IMM(BPF_REG_0, 0),
Dvalue_ptr_arith.c521 BPF_MOV32_IMM(BPF_REG_1, 0x12345678),
863 BPF_MOV32_IMM(BPF_REG_1, 0xFFFFFFFF),
Dunpriv.c415 BPF_MOV32_IMM(BPF_REG_7, 0),
/kernel/linux/linux-5.10/lib/
Dtest_bpf.c1891 BPF_MOV32_IMM(R4, -1234),
2354 BPF_MOV32_IMM(R0, 2),
2356 BPF_MOV32_IMM(R0, 1),
2390 BPF_MOV32_IMM(R0, 2),
2392 BPF_MOV32_IMM(R0, 1),
2406 BPF_MOV32_IMM(R0, 2),
2408 BPF_MOV32_IMM(R0, 1),
2488 BPF_MOV32_IMM(R0, 0),
2490 BPF_MOV32_IMM(R0, 1),
2553 BPF_MOV32_IMM(R0, 2),
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_sock_addr.c763 BPF_MOV32_IMM(BPF_REG_7, addr4_rw.sin_addr.s_addr), in bind4_prog_load()
768 BPF_MOV32_IMM(BPF_REG_7, addr4_rw.sin_port), in bind4_prog_load()
822 BPF_MOV32_IMM(BPF_REG_7, addr6_rw.sin6_addr.s6_addr32[N]), \ in bind6_prog_load()
833 BPF_MOV32_IMM(BPF_REG_7, addr6_rw.sin6_port), in bind6_prog_load()
938 BPF_MOV32_IMM(BPF_REG_7, src4_rw_ip.s_addr), in sendmsg4_rw_asm_prog_load()
943 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_addr.s_addr), in sendmsg4_rw_asm_prog_load()
948 BPF_MOV32_IMM(BPF_REG_7, dst4_rw_addr.sin_port), in sendmsg4_rw_asm_prog_load()
984 BPF_MOV32_IMM(BPF_REG_7, src4_rw_addr.sin_addr.s_addr), in recvmsg4_rw_asm_prog_load()
989 BPF_MOV32_IMM(BPF_REG_7, src4_rw_addr.sin_port), in recvmsg4_rw_asm_prog_load()
1032 BPF_MOV32_IMM(BPF_REG_7, SRC[N]), \ in sendmsg6_rw_dst_asm_prog_load()
[all …]
Dtest_verifier.c178 insn[len - 2] = BPF_MOV32_IMM(BPF_REG_0, 0); in bpf_fill_ld_abs_vlan_push_pop()
211 insn[i++] = BPF_MOV32_IMM(BPF_REG_0, 0); in bpf_fill_rand_ld_dw()
/kernel/linux/linux-5.10/samples/bpf/
Dbpf_insn.h72 #define BPF_MOV32_IMM(DST, IMM) \ macro
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dcgroup_attach_multi.c40 BPF_MOV32_IMM(BPF_REG_0, 0), in prog_load_cnt()
/kernel/linux/linux-5.10/tools/include/linux/
Dfilter.h106 #define BPF_MOV32_IMM(DST, IMM) \ macro
/kernel/linux/linux-5.10/net/core/
Dfilter.c720 *insn++ = BPF_MOV32_IMM(BPF_REG_TMP, fp->k); in bpf_convert_filter()
836 *insn = BPF_MOV32_IMM(BPF_CLASS(fp->code) == BPF_LD ? in bpf_convert_filter()
8535 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in bpf_convert_ctx_access()
8555 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in bpf_convert_ctx_access()
8742 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in bpf_sock_convert_ctx_access()
8758 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in bpf_sock_convert_ctx_access()
9274 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in sock_ops_convert_ctx_access()
9295 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in sock_ops_convert_ctx_access()
9603 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in sk_msg_convert_ctx_access()
9624 *insn++ = BPF_MOV32_IMM(si->dst_reg, 0); in sk_msg_convert_ctx_access()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dfilter.h165 #define BPF_MOV32_IMM(DST, IMM) \ macro

12