Home
last modified time | relevance | path

Searched refs:BPF_REG_2 (Results 1 – 25 of 65) sorted by relevance

123

/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Dmap_kptr.c5 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4),
10 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
25 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
28 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4),
30 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
45 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
48 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4),
50 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
55 BPF_LDX_MEM(BPF_DW, BPF_REG_2, BPF_REG_0, 0),
[all …]
Datomic_fetch.c7 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
9 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
10 BPF_ATOMIC_OP(BPF_DW, BPF_AND | BPF_FETCH, BPF_REG_2, BPF_REG_1, 0),
11 BPF_LDX_MEM(BPF_DW, BPF_REG_9, BPF_REG_2, 0),
12 BPF_ST_MEM(BPF_DW, BPF_REG_2, 0, 0),
31 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
32 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
33 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
34 BPF_ATOMIC_OP(BPF_DW, BPF_AND | BPF_FETCH, BPF_REG_2, BPF_REG_1, 0),
[all …]
Djit.c53 BPF_LD_IMM64(BPF_REG_2, 0xfeffffffULL),
54 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1),
66 BPF_LD_IMM64(BPF_REG_2, 0xffffffffULL),
67 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1),
77 BPF_LD_IMM64(BPF_REG_2, 0xeeff0d413122ULL),
81 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_2, 2),
86 BPF_JMP_REG(BPF_JEQ, BPF_REG_3, BPF_REG_2, 2),
91 BPF_JMP_REG(BPF_JEQ, BPF_REG_3, BPF_REG_2, 2),
94 BPF_MOV32_REG(BPF_REG_2, BPF_REG_2),
97 BPF_JMP_REG(BPF_JEQ, BPF_REG_0, BPF_REG_2, 2),
[all …]
Dbasic_instr.c6 BPF_MOV64_IMM(BPF_REG_2, 3),
7 BPF_ALU64_REG(BPF_SUB, BPF_REG_1, BPF_REG_2),
19 BPF_MOV32_IMM(BPF_REG_2, -1),
20 BPF_ALU64_IMM(BPF_LSH, BPF_REG_2, 32),
21 BPF_ALU64_IMM(BPF_OR, BPF_REG_2, 0xffff),
22 BPF_ALU32_REG(BPF_XOR, BPF_REG_2, BPF_REG_2),
24 BPF_JMP_IMM(BPF_JNE, BPF_REG_2, 0, 1),
111 BPF_ALU64_REG(BPF_MOV, BPF_REG_2, BPF_REG_1),
113 BPF_JMP_REG(BPF_JEQ, BPF_REG_1, BPF_REG_2, 1),
125 BPF_ALU64_REG(BPF_MOV, BPF_REG_2, BPF_REG_1),
[all …]
Djump.c4 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
5 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_1, -8),
7 BPF_ST_MEM(BPF_DW, BPF_REG_2, -8, 0),
9 BPF_ST_MEM(BPF_DW, BPF_REG_2, -16, 1),
11 BPF_ST_MEM(BPF_DW, BPF_REG_2, -8, 2),
13 BPF_ST_MEM(BPF_DW, BPF_REG_2, -16, 3),
15 BPF_ST_MEM(BPF_DW, BPF_REG_2, -8, 4),
17 BPF_ST_MEM(BPF_DW, BPF_REG_2, -32, 5),
28 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
30 BPF_ST_MEM(BPF_DW, BPF_REG_2, -8, 0),
[all …]
Dcalls.c168 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0),
175 BPF_MOV64_REG(BPF_REG_1, BPF_REG_2),
200 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_0, 4),
201 BPF_JMP_IMM(BPF_JLE, BPF_REG_2, 4, 3),
205 BPF_JMP_IMM(BPF_JGE, BPF_REG_2, 0, 3),
209 BPF_ALU64_REG(BPF_ADD, BPF_REG_1, BPF_REG_2),
312 BPF_MOV64_REG(BPF_REG_2, BPF_REG_0),
313 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, 8),
314 BPF_JMP_REG(BPF_JGT, BPF_REG_2, BPF_REG_1, 1),
318 BPF_MOV32_IMM(BPF_REG_2, 0),
[all …]
Dprecise.c7 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
8 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
17 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
18 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
26 BPF_MOV64_REG(BPF_REG_2, BPF_REG_9),
27 BPF_JMP_IMM(BPF_JLT, BPF_REG_2, 8, 1),
30 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, 1), /* R2=scalar(umin=1, umax=8) */
66 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
67 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
76 BPF_MOV64_REG(BPF_REG_2, BPF_REG_FP),
[all …]
Djmp32.c5 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
36 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
98 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
121 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
163 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
186 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
228 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
255 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
299 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
326 BPF_LDX_MEM(BPF_DW, BPF_REG_7, BPF_REG_2, 0),
[all …]
Dbpf_loop_inline.c46 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 6),
78 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 7),
107 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 10),
112 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 8),
148 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 9),
151 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 8),
185 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 22),
192 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 16),
204 BPF_RAW_INSN(BPF_LD | BPF_IMM | BPF_DW, BPF_REG_2, BPF_PSEUDO_FUNC, 0, 6),
Ddirect_value_access.c163 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 46),
164 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff),
177 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 46),
178 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff),
191 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 47),
192 BPF_ST_MEM(BPF_H, BPF_REG_2, 0, 0xffff),
206 BPF_LD_MAP_VALUE(BPF_REG_2, 0, 46),
207 BPF_ST_MEM(BPF_H, BPF_REG_2, 1, 0xffff),
Dld_abs.c17 BPF_MOV64_IMM(BPF_REG_2, 0),
19 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
82 BPF_MOV64_IMM(BPF_REG_2, 1),
170 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2),
171 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2),
190 BPF_ALU64_IMM(BPF_MOV, BPF_REG_2, 2),
191 BPF_ALU32_REG(BPF_DIV, BPF_REG_0, BPF_REG_2),
258 BPF_MOV64_IMM(BPF_REG_2, 1),
Datomic_fetch_add.c62 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_2, -8),
75 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_2, BPF_REG_0, -8),
90 BPF_LDX_MEM(BPF_DW, BPF_REG_2, BPF_REG_1, 0),
96 BPF_ATOMIC_OP(BPF_DW, BPF_ADD | BPF_FETCH, BPF_REG_2, BPF_REG_3, 0),
Dctx_skb.c46 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
47 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
70 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
71 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
93 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10),
94 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8),
318 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1,
322 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2),
325 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
335 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1,
[all …]
Datomic_or.c90 BPF_MOV64_IMM(BPF_REG_2, 1),
91 BPF_ALU64_IMM(BPF_LSH, BPF_REG_2, 32),
92 BPF_ALU64_IMM(BPF_SUB, BPF_REG_2, 1),
94 BPF_JMP_REG(BPF_JEQ, BPF_REG_2, BPF_REG_1, 2),
Devent_output.c28 BPF_MOV64_IMM(BPF_REG_2, 5), \
29 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -8), \
32 BPF_LD_MAP_FD(BPF_REG_2, 0), \
Datomic_cmpxchg.c80 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_2, -8),
90 BPF_MOV64_IMM(BPF_REG_2, 4),
91 BPF_ATOMIC_OP(BPF_DW, BPF_CMPXCHG, BPF_REG_10, BPF_REG_2, -8),
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sysctl.c235 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
276 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
320 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
374 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
422 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
461 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
500 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
539 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
576 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
612 BPF_MOV64_REG(BPF_REG_2, BPF_REG_7),
[all …]
Dtest_verifier.c205 insn[i++] = BPF_MOV64_IMM(BPF_REG_2, 1); in bpf_fill_ld_abs_vlan_push_pop()
442 BPF_REG_2, BPF_PSEUDO_FUNC, 0, in bpf_fill_big_prog_with_loop_1()
466 BPF_MOV64_IMM(BPF_REG_2, 0), \
467 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_2, -8), \
468 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -16), \
469 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -24), \
470 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -32), \
471 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -40), \
472 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -48), \
474 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), \
[all …]
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dalign.c132 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, \
139 BPF_MOV64_REG(BPF_REG_0, BPF_REG_2), \
143 BPF_LDX_MEM(BPF_B, DST_REG, BPF_REG_2, 0)
213 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2),
256 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2),
268 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2),
281 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2),
372 BPF_MOV64_REG(BPF_REG_5, BPF_REG_2),
438 BPF_ALU64_REG(BPF_SUB, BPF_REG_5, BPF_REG_2),
448 BPF_MOV64_REG(BPF_REG_6, BPF_REG_2),
[all …]
Dcgroup_attach_multi.c42 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in prog_load_cnt()
43 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load_cnt()
51 BPF_MOV64_IMM(BPF_REG_2, 0), in prog_load_cnt()
57 BPF_MOV64_IMM(BPF_REG_2, 0), in prog_load_cnt()
Dsockopt.c289 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
300 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xFF),
378 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
389 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xF0),
688 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
699 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 0xF0),
725 BPF_MOV64_REG(BPF_REG_2, BPF_REG_6),
736 BPF_ST_MEM(BPF_B, BPF_REG_2, 0, 1 << 3),
/Linux-v6.6/samples/bpf/
Dtest_cgrp2_attach.c51 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in prog_load()
52 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load()
62 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in prog_load()
63 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in prog_load()
Dsock_example.c52 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in test_sock()
53 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -4), /* r2 = fp - 4 */ in test_sock()
Dtest_cgrp2_sock.c44 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, bound_dev_if)), in prog_load()
62 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, mark)), in prog_load()
70 BPF_MOV64_IMM(BPF_REG_2, offsetof(struct bpf_sock, priority)), in prog_load()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dsyscall.c66 BPF_MOV64_REG(BPF_REG_2, BPF_REG_10), in bpf_prog()
67 BPF_ALU64_IMM(BPF_ADD, BPF_REG_2, -8), in bpf_prog()

123