Home
last modified time | relevance | path

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

1234

/openbmc/linux/tools/testing/selftests/bpf/verifier/
H A 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),
130 BPF_LD_IND(BPF_W, BPF_REG_7, 14),
254 BPF_LD_ABS(BPF_W, 0),
[all …]
H A 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,
53 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
66 BPF_LDX_MEM(BPF_W, BPF_REG_0, BPF_REG_1,
[all …]
H A 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),
96 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_1, -8),
184 BPF_ATOMIC_OP(BPF_W, BPF_CMPXCHG, BPF_REG_10, BPF_REG_5, -8),
199 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -8),
205 BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_10, -8),
220 BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_0, -8),
[all …]
H A 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),
81 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
113 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
135 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
165 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
189 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
210 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
[all …]
H A 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 …]
H A Dcalls.c932 BPF_LD_ABS(BPF_W, 0),
939 BPF_LD_ABS(BPF_W, 0),
1885 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
1901 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0),
1917 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
1934 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0),
1952 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
1970 BPF_ST_MEM(BPF_W, BPF_REG_4, 0, 0),
1987 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
2021 BPF_ST_MEM(BPF_W, BPF_REG_2, 0, 0),
[all …]
H A 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),
H A 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),
H A 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),
H A 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),
H A 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),
H A 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,
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt.c129 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,
261 BPF_STX_MEM(BPF_W, BPF_REG_1, BPF_REG_0,
[all …]
H A 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 …]
H A 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()
H A 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()
/openbmc/linux/tools/testing/selftests/bpf/
H A 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 …]
/openbmc/linux/tools/lib/bpf/
H A Dgen_loader.c203 case 4: return BPF_W; in insn_bytes_to_bpf_size()
366 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_1, BPF_REG_0, 0)); in emit_sys_close_blob()
510 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__map_create()
722 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_8, in emit_relo_kfunc_btf()
740 emit(gen, BPF_LDX_MEM(BPF_W, BPF_REG_7, BPF_REG_8, in emit_ksym_relo_log()
781 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_9, in emit_relo_ksym_typeless()
837 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_8, BPF_REG_7, in emit_relo_ksym_btf()
1010 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, in bpf_gen__prog_load()
1013 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_0, BPF_REG_7, in bpf_gen__prog_load()
1029 emit(gen, BPF_STX_MEM(BPF_W, BPF_REG_10, BPF_REG_7, in bpf_gen__prog_load()
[all …]
/openbmc/linux/lib/
H A Dtest_bpf.c8129 BPF_STX_MEM(BPF_W, R1, R2, 13),
8130 BPF_LDX_MEM(BPF_W, R0, R1, 13),
11805 BPF_ST_MEM(BPF_W, R10, -4, 0),
14977 BPF_LDX_MEM(BPF_W, R2, R1, 0),
14979 BPF_STX_MEM(BPF_W, R1, R2, 0),
14989 BPF_LDX_MEM(BPF_W, R2, R1, 0),
14991 BPF_STX_MEM(BPF_W, R1, R2, 0),
15011 BPF_LDX_MEM(BPF_W, R2, R1, 0),
15013 BPF_STX_MEM(BPF_W, R1, R2, 0),
15023 BPF_LDX_MEM(BPF_W, R2, R1, 0),
[all …]
/openbmc/linux/samples/bpf/
H A 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()
H A 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()
/openbmc/linux/samples/seccomp/
H A 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()
H A 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()
H A 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