/tools/testing/selftests/bpf/verifier/ |
D | stack_ptr.c | 67 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 …]
|
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), 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),
|
D | ctx_skb.c | 325 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 …]
|
D | ld_abs.c | 76 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 …]
|
D | bounds.c | 10 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 …]
|
D | jset.c | 81 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),
|
D | value_ptr_arith.c | 17 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 …]
|
D | meta_access.c | 10 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 …]
|
D | direct_stack_access_wraparound.c | 8 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),
|
D | bounds_mix_sign_unsign.c | 16 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 …]
|
D | direct_packet_access.c | 25 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 …]
|
D | direct_value_access.c | 114 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),
|
D | lwt.c | 11 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),
|
D | perf_event_sample_period.c | 6 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1, 9 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_1,
|
D | calls.c | 38 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 …]
|
D | helper_value_access.c | 484 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),
|
D | search_pruning.c | 145 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),
|
D | ctx_sk_msg.c | 138 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),
|
D | sock.c | 116 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)),
|
D | spill_fill.c | 37 BPF_ST_MEM(BPF_B, BPF_REG_10, -7, 0x23),
|
D | and.c | 10 BPF_LDX_MEM(BPF_B, BPF_REG_1, BPF_REG_0, 0),
|
/tools/testing/selftests/bpf/prog_tests/ |
D | raw_tp_writable_reject_nbd_invalid.c | 16 BPF_LDX_MEM(BPF_B, BPF_REG_0, BPF_REG_6, in test_raw_tp_writable_reject_nbd_invalid()
|
/tools/include/uapi/linux/ |
D | bpf_common.h | 20 #define BPF_B 0x10 /* 8-bit */ macro
|
/tools/testing/selftests/bpf/ |
D | test_align.c | 162 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/ |
D | bpf_exp.y | 124 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); } }
|