Home
last modified time | relevance | path

Searched refs:BPF_B (Results 1 – 25 of 41) sorted by relevance

12

/tools/testing/selftests/bpf/verifier/
Dstack_ptr.c67 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 42),
68 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
78 BPF_ST_MEM(BPF_B, BPF_REG_1, -1, 42),
79 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, -1),
90 BPF_ST_MEM(BPF_B, BPF_REG_1, -1, 42),
91 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, -1),
104 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 42),
105 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
117 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 42),
118 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 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),
22 BPF_ST_MEM(BPF_B, 14, -1, -1),
31 BPF_LDX_MEM(BPF_B, BPF_REG_0, 12, 0),
40 BPF_LDX_MEM(BPF_B, 11, BPF_REG_1, 0),
Dctx_skb.c325 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
342 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
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,
403 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
405 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
407 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
409 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0,
[all …]
Dld_abs.c76 BPF_LD_ABS(BPF_B, 0),
86 BPF_LD_ABS(BPF_B, 0),
169 BPF_LD_ABS(BPF_B, 3),
173 BPF_LD_ABS(BPF_B, 4),
175 BPF_LD_IND(BPF_B, BPF_REG_8, -70),
189 BPF_LD_ABS(BPF_B, 3),
193 BPF_LD_ABS(BPF_B, 128),
195 BPF_LD_IND(BPF_B, BPF_REG_8, -70),
210 BPF_LD_ABS(BPF_B, 3),
226 BPF_LD_ABS(BPF_B, 256),
[all …]
Dbounds.c10 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
12 BPF_LDX_MEM(BPF_B, BPF_REG_3, BPF_REG_0, 1),
17 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
35 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
37 BPF_LDX_MEM(BPF_B, BPF_REG_3, BPF_REG_0, 1),
41 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
94 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
118 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
143 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
167 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 3),
[all …]
Djset.c81 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
95 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
110 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
124 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
139 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
156 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
161 BPF_LDX_MEM(BPF_B, BPF_REG_8, BPF_REG_9, 0),
Dvalue_ptr_arith.c17 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
45 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
72 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
94 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
118 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
141 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
165 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
255 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
277 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
299 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
[all …]
Dmeta_access.c10 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
28 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
46 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
65 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
84 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_3, 0),
103 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
122 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
138 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
155 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
182 BPF_LDX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
[all …]
Ddirect_stack_access_wraparound.c8 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
21 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
34 BPF_STX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
Dbounds_mix_sign_unsign.c16 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
40 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
66 BPF_ST_MEM(BPF_B, BPF_REG_8, 0, 0),
91 BPF_ST_MEM(BPF_B, BPF_REG_8, 0, 0),
115 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
138 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
183 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
207 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
233 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
257 BPF_ST_MEM(BPF_B, BPF_REG_0, 0, 0),
[all …]
Ddirect_packet_access.c25 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
43 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_3, 7),
44 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_3, 12),
59 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_3, 4),
88 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
107 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
124 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
144 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
147 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
166 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
[all …]
Ddirect_value_access.c114 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
126 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
138 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
150 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 4),
164 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 0),
230 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 42),
242 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 42),
Dlwt.c11 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
29 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
47 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
64 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
81 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
98 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
Dperf_event_sample_period.c6 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
9 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
Dcalls.c38 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
63 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
87 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, 0),
393 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_6, 0),
653 BPF_LD_ABS(BPF_B, 0),
659 BPF_LD_ABS(BPF_B, 0),
753 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
758 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
771 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
775 BPF_ST_MEM(BPF_B, BPF_REG_10, -300, 0),
[all …]
Dhelper_value_access.c484 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
505 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
531 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
552 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
579 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
603 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
627 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
652 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
676 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
700 BPF_ST_MEM(BPF_B, BPF_REG_1, 0, 0),
Dsearch_pruning.c145 BPF_STX_MEM(BPF_B, BPF_REG_10, BPF_REG_7, -9),
146 BPF_LDX_MEM(BPF_B, BPF_REG_7, BPF_REG_10, -9),
Dctx_sk_msg.c138 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_2, 0),
155 BPF_STX_MEM(BPF_B, BPF_REG_2, BPF_REG_2, 0),
Dsock.c116 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, state)),
152 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_port) + 1),
171 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, dst_ip6[0]) + 1),
189 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, type)),
207 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_0, offsetof(struct bpf_sock, protocol)),
Dspill_fill.c37 BPF_ST_MEM(BPF_B, BPF_REG_10, -7, 0x23),
Dand.c10 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
/tools/testing/selftests/bpf/prog_tests/
Draw_tp_writable_reject_nbd_invalid.c16 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_6, in test_raw_tp_writable_reject_nbd_invalid()
/tools/include/uapi/linux/
Dbpf_common.h20 #define BPF_B 0x10 /* 8-bit */ macro
/tools/testing/selftests/bpf/
Dtest_align.c162 BPF_LDX_MEM(BPF_B, DST_REG, BPF_REG_2, 0)
243 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 0),
244 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 1),
245 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 2),
246 BPF_LDX_MEM(BPF_B, BPF_REG_4, BPF_REG_5, 3),
/tools/bpf/
Dbpf_exp.y124 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_IND, 0, 0, $5); }
126 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_IND, 0, 0, $6); }
128 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_ABS, 0, 0, $3); }
130 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_ABS, 0, 0,
190 bpf_set_curr_instr(BPF_LDX | BPF_MSH | BPF_B, 0, 0, $6); } }
196 bpf_set_curr_instr(BPF_LDX | BPF_MSH | BPF_B, 0, 0, $6); } }

12