Home
last modified time | relevance | path

Searched refs:BPF_STX_MEM (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.6.21/tools/testing/selftests/bpf/verifier/
Dctx_skb.c285 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
297 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
308 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
342 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
372 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_1,
383 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_1,
395 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
397 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
399 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
401 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
[all …]
Dbpf_loop_inline.c218 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_6, -40),
219 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -32),
220 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_8, -24),
223 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_6, -40),
224 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -32),
225 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_8, -24),
232 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_6, -56),
233 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_7, -48),
234 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_8, -40),
Datomic_fetch.c9 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
16 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_9, 0),
33 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
40 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_9, 0),
57 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
64 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_9, 0),
80 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_9, 0),
87 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_9, 0),
Datomic_cmpxchg.c93 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8),
139 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8),
159 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8),
180 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8),
199 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -8),
220 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -8),
Djump.c5 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_1, -8),
146 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
148 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8),
152 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
154 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8),
158 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
160 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8),
164 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
166 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_2, -8),
170 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_3, -8),
[all …]
Dld_abs.c128 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -64),
131 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -60),
133 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -56),
141 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -56),
144 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -52),
146 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -48),
Dcalls.c716 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_0, 0),
735 BPF_STX_MEM(BPF_DW, BPF_REG_2, BPF_REG_0, 0),
1015 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0),
1262 BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_1, 0),
1393 BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_0, 0),
1447 BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_0, 0),
1501 BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_0, 0),
1538 BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_0, 0),
1551 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0),
1610 BPF_STX_MEM(BPF_DW, BPF_REG_6, BPF_REG_0, 0),
[all …]
Dbasic_stx_ldx.c4 BPF_STX_MEM(BPF_B, BPF_REG_10, -1, -1),
13 BPF_STX_MEM(BPF_B, 14, BPF_REG_10, -1),
Dprecise.c174 BPF_STX_MEM(BPF_DW, BPF_REG_3, BPF_REG_0, -8),
238 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4),
251 BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_3, 0),
Datomic_bounds.c15 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8),
Dctx_sk_lookup.c471 BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_0, 0),
484 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0),
497 BPF_STX_MEM(BPF_H, BPF_REG_1, BPF_REG_0, 0),
510 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
523 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
Devent_output.c29 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -8), \
Dwide_access.c6 BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_0, \
Dmap_kptr.c148 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_1, 0),
173 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_1, 0),
394 BPF_STX_MEM(BPF_DW, BPF_REG_0, BPF_REG_1, 8),
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_sysctl.c151 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
215 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
233 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0),
274 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0),
316 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0),
317 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 8),
318 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 16),
371 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0),
372 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 8),
420 BPF_STX_MEM(BPF_DW, BPF_REG_7, BPF_REG_0, 0),
[all …]
Dtest_verifier.c297 insn[i++] = BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_6, in bpf_fill_scale1()
329 insn[i++] = BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_6, in bpf_fill_scale2()
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), \
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c115 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0),
136 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
159 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
179 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
220 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
240 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
261 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
266 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
306 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
327 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
[all …]
Draw_tp_writable_test_run.c16 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0), in serial_test_raw_tp_writable_test_run()
Dcgroup_attach_multi.c41 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in prog_load_cnt()
61 BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_3, 0), in prog_load_cnt()
/linux-6.6.21/tools/lib/bpf/
Dgen_loader.c217 emit(gen, BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_0, 0)); in emit_rel_store()
227 emit(gen, BPF_STX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_1, BPF_REG_0, 0)); in move_blob2blob()
235 emit(gen, BPF_STX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_6, BPF_REG_0, ctx_off)); in move_blob2ctx()
249 emit(gen, BPF_STX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_1, BPF_REG_0, 0)); in move_ctx2blob()
257 emit(gen, BPF_STX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_1, BPF_REG_0, 0)); in move_stack2blob()
263 emit(gen, BPF_STX_MEM(insn_bytes_to_bpf_size(size), BPF_REG_6, BPF_REG_0, ctx_off)); in move_stack2ctx()
445 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, stack_off(btf_fd))); in bpf_gen__load_btf()
510 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__map_create()
520 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_7, 0)); in bpf_gen__map_create()
702 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_7, offsetof(struct bpf_insn, imm))); in emit_relo_kfunc_btf()
[all …]
/linux-6.6.21/samples/bpf/
Dtest_cgrp2_sock.c45 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, bound_dev_if)), in prog_load()
63 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, mark)), in prog_load()
71 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_3, offsetof(struct bpf_sock, priority)), in prog_load()
Dcookie_uid_helper_example.c93 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8), in prog_load()
118 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, in prog_load()
128 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_1, in prog_load()
Dtest_cgrp2_attach.c50 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in prog_load()
61 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in prog_load()
Dsock_example.c51 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in test_sock()
/linux-6.6.21/lib/
Dtest_bpf.c1625 insns[i++] = BPF_STX_MEM(BPF_DW, R10, R1, -8); in __bpf_emit_atomic64()
1672 insns[i++] = BPF_STX_MEM(BPF_W, R10, R1, -4); in __bpf_emit_atomic32()
1701 insns[i++] = BPF_STX_MEM(BPF_DW, R10, R1, -8); in __bpf_emit_cmpxchg64()
1741 insns[i++] = BPF_STX_MEM(BPF_W, R10, R1, -4); in __bpf_emit_cmpxchg32()
1932 insn[i++] = BPF_STX_MEM(width, R10, R0, -8); in __bpf_fill_atomic_reg_pairs()
7846 BPF_STX_MEM(BPF_DW, R10, R1, -8),
7866 BPF_STX_MEM(BPF_DW, R10, R1, -8),
7887 BPF_STX_MEM(BPF_B, R1, R2, -256),
7903 BPF_STX_MEM(BPF_B, R1, R2, 256),
7919 BPF_STX_MEM(BPF_B, R1, R2, 4096),
[all …]

12