Home
last modified time | relevance | path

Searched refs:BPF_W (Results 1 – 25 of 79) sorted by relevance

1234

/Linux-v6.6/tools/testing/selftests/bpf/verifier/
Dctx_skb.c4 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
7 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
10 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
13 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
16 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
19 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
22 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
25 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
35 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1, -4),
53 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
[all …]
Dld_abs.c6 BPF_LD_ABS(BPF_W, -0x200000),
18 BPF_LD_ABS(BPF_W, -0x200000),
30 BPF_LD_ABS(BPF_W, -0x200000),
42 BPF_LD_ABS(BPF_W, -0x200000),
54 BPF_LD_ABS(BPF_W, -0x200000),
66 BPF_LD_ABS(BPF_W, -0x200000),
78 BPF_LD_ABS(BPF_W, 0),
88 BPF_LD_ABS(BPF_W, 0),
128 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -64),
129 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_10, -64),
[all …]
Datomic_cmpxchg.c42 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 3),
46 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -4),
52 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_10, -4),
59 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -4),
65 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_10, -4),
107 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8),
195 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_5, -8),
210 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -8),
214 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_5, -8),
216 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -8),
[all …]
Dmap_kptr.c10 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
30 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
34 BPF_ST_MEM(BPF_W, BPF_REG_0, 0, 0),
50 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
58 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_2, 0),
81 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
89 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_2, 0),
113 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
135 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
142 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, 0),
[all …]
Dctx_sk_lookup.c19 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
37 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
55 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
109 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
111 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
113 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
115 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
133 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
151 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
205 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
[all …]
Dcalls.c200 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_0, 4),
310 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_1,
321 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
335 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_1,
343 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
359 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_1,
367 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
377 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6,
451 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
467 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
[all …]
Datomic_or.c57 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 0x110),
60 BPF_ATOMIC_OP(BPF_W, BPF_OR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4),
66 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4),
88 BPF_ATOMIC_OP(BPF_W, BPF_OR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -8),
Datomic_xchg.c28 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 3),
31 BPF_ATOMIC_OP(BPF_W, BPF_XCHG, BPF_REG_10, BPF_REG_1, -4),
37 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_10, -4),
Datomic_xor.c57 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 0x110),
60 BPF_ATOMIC_OP(BPF_W, BPF_XOR | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4),
66 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4),
Datomic_fetch_add.c28 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 3),
31 BPF_ATOMIC_OP(BPF_W, BPF_ADD | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4),
37 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4),
Datomic_and.c57 BPF_ST_MEM(BPF_W, BPF_REG_10, -4, 0x110),
60 BPF_ATOMIC_OP(BPF_W, BPF_AND | BPF_FETCH, BPF_REG_10, BPF_REG_1, -4),
66 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -4),
Dperf_event_sample_period.c38 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
41 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dsockopt.c115 BPF_STX_MEM(BPF_W, BPF_REG_6, BPF_REG_0, 0),
129 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1,
136 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
159 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
172 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1,
179 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
201 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1,
220 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
233 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_1,
240 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
[all …]
Dalign.c132 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, \
134 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, \
230 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0),
263 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0),
276 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0),
291 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_5, 0),
379 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_5, 0),
390 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_5, 0),
455 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_6, 0),
507 BPF_LDX_MEM(BPF_W, BPF_REG_6, BPF_REG_5, 0),
[all …]
Draw_tp_writable_test_run.c14 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_6, 0), in serial_test_raw_tp_writable_test_run()
16 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()
54 BPF_ATOMIC_OP(BPF_W, BPF_ADD, BPF_REG_0, BPF_REG_1, 0), in prog_load_cnt()
59 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_0, 0), in prog_load_cnt()
61 BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_3, 0), in prog_load_cnt()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dverifier_ld_ind.c22 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_1, -0x200000)) in ind_check_calling_conv_r1()
39 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_2, -0x200000)) in ind_check_calling_conv_r2()
56 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_3, -0x200000)) in ind_check_calling_conv_r3()
73 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_4, -0x200000)) in ind_check_calling_conv_r4()
90 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_5, -0x200000)) in ind_check_calling_conv_r5()
106 : __imm_insn(ld_ind, BPF_LD_IND(BPF_W, BPF_REG_7, -0x200000)) in ind_check_calling_conv_r7()
/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sock.c54 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
67 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
80 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
93 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
202 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
206 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
232 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
236 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
262 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
266 BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_6,
[all …]
/Linux-v6.6/tools/lib/bpf/
Dgen_loader.c145 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -stack_sz + i)); in bpf_gen__init()
203 case 4: return BPF_W; in insn_bytes_to_bpf_size()
358 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, stack_off)); in emit_sys_close_stack()
366 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0)); in emit_sys_close_blob()
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()
697 emit(gen, BPF_ST_MEM(BPF_W, BPF_REG_8, offsetof(struct bpf_insn, imm), 0)); in emit_relo_kfunc_btf()
702 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_7, offsetof(struct bpf_insn, imm))); in emit_relo_kfunc_btf()
710 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_9, 0)); in emit_relo_kfunc_btf()
[all …]
/Linux-v6.6/lib/
Dtest_bpf.c209 insn[i] = __BPF_STMT(BPF_LD | BPF_W | BPF_ABS, SKF_AD_OFF + in bpf_fill_maxinsns6()
231 insn[i] = __BPF_STMT(BPF_LD | BPF_W | BPF_ABS, SKF_AD_OFF + in bpf_fill_maxinsns7()
235 insn[len - 3] = __BPF_STMT(BPF_LD | BPF_W | BPF_ABS, SKF_AD_OFF + in bpf_fill_maxinsns7()
419 insn[i + 1] = __BPF_STMT(BPF_LD | BPF_W | BPF_ABS, in bpf_fill_ld_abs_get_processor_id()
459 return __bpf_fill_stxdw(self, BPF_W); in bpf_fill_stxw()
1672 insns[i++] = BPF_STX_MEM(BPF_W, R10, R1, -4); in __bpf_emit_atomic32()
1673 insns[i++] = BPF_ATOMIC_OP(BPF_W, op, R10, R2, -4); in __bpf_emit_atomic32()
1674 insns[i++] = BPF_LDX_MEM(BPF_W, R1, R10, -4); in __bpf_emit_atomic32()
1741 insns[i++] = BPF_STX_MEM(BPF_W, R10, R1, -4); in __bpf_emit_cmpxchg32()
1742 insns[i++] = BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, R10, R2, -4); in __bpf_emit_cmpxchg32()
[all …]
/Linux-v6.6/samples/bpf/
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()
67 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_6, offsetof(struct __sk_buff, len)), /* r1 = skb->len */ in prog_load()
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()
/Linux-v6.6/samples/seccomp/
Ddropper.c31 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
34 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
Dbpf-direct.c115 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_nr), in install_filter()
131 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter()
136 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter()
Dbpf-helper.h140 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, LO_ARG(idx))
144 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, LO_ARG(idx)), \
146 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, HI_ARG(idx)), \
260 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, \

1234