/linux-6.6.21/tools/testing/selftests/bpf/verifier/ |
D | ctx_skb.c | 285 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 …]
|
D | bpf_loop_inline.c | 218 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),
|
D | atomic_fetch.c | 9 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),
|
D | atomic_cmpxchg.c | 93 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),
|
D | jump.c | 5 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 …]
|
D | ld_abs.c | 128 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),
|
D | calls.c | 716 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 …]
|
D | basic_stx_ldx.c | 4 BPF_STX_MEM(BPF_B, BPF_REG_10, -1, -1), 13 BPF_STX_MEM(BPF_B, 14, BPF_REG_10, -1),
|
D | precise.c | 174 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),
|
D | atomic_bounds.c | 15 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_0, -8),
|
D | ctx_sk_lookup.c | 471 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,
|
D | event_output.c | 29 BPF_STX_MEM(BPF_DW, BPF_REG_10, BPF_REG_2, -8), \
|
D | wide_access.c | 6 BPF_STX_MEM(BPF_DW, BPF_REG_1, BPF_REG_0, \
|
D | map_kptr.c | 148 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/ |
D | test_sysctl.c | 151 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 …]
|
D | test_verifier.c | 297 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/ |
D | sockopt.c | 115 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 …]
|
D | raw_tp_writable_test_run.c | 16 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0), in serial_test_raw_tp_writable_test_run()
|
D | cgroup_attach_multi.c | 41 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/ |
D | gen_loader.c | 217 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/ |
D | test_cgrp2_sock.c | 45 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()
|
D | cookie_uid_helper_example.c | 93 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()
|
D | test_cgrp2_attach.c | 50 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()
|
D | sock_example.c | 51 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -4), /* *(u32 *)(fp - 4) = r0 */ in test_sock()
|
/linux-6.6.21/lib/ |
D | test_bpf.c | 1625 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 …]
|