Searched refs:bpf_dynptr_slice_rdwr (Results 1 - 7 of 7) sorted by relevance
/linux-master/tools/testing/selftests/bpf/ |
H A D | bpf_kfuncs.h | 37 extern void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *ptr, __u32 offset,
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_fail.c | 261 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); 1128 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); 1180 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); 1229 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); 1320 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, hdr_size); 1362 * bpf_dynptr_slice_rdwr is called 1377 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); 1630 data = bpf_dynptr_slice_rdwr(&clone, 0, buffer, sizeof(buffer)); 1657 data = bpf_dynptr_slice_rdwr(&clone, 0, buffer, sizeof(buffer));
|
H A D | test_xdp_dynptr.c | 125 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer)); 204 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer));
|
H A D | test_cls_redirect_dynptr.c | 399 encap_gre = bpf_dynptr_slice_rdwr(dynptr, 0, encap_buffer, sizeof(encap_buffer)); 868 encap = bpf_dynptr_slice_rdwr(&dynptr, 0, encap_buffer, sizeof(encap_buffer));
|
H A D | test_l4lb_noinline_dynptr.c | 470 eth = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
|
/linux-master/kernel/bpf/ |
H A D | helpers.c | 1660 /* skb and xdp dynptrs should use bpf_dynptr_slice / bpf_dynptr_slice_rdwr */ 2304 * bpf_dynptr_slice_rdwr. 2361 * bpf_dynptr_slice_rdwr() - Obtain a writable pointer to the dynptr data. 2380 * struct eth_hdr *eth = bpf_dynptr_slice_rdwr(&dynptr, 0, buffer, sizeof(buffer)); 2392 * Please also note that in the case of skb and xdp dynptrs, bpf_dynptr_slice_rdwr 2394 * bpf_dynptr_slice_rdwr will not invalidate any ctx->data/data_end pointers in 2402 __bpf_kfunc void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr_kern *ptr, u32 offset, function 2408 /* bpf_dynptr_slice_rdwr is the same logic as bpf_dynptr_slice. 2412 * that may occur when calling bpf_dynptr_slice_rdwr: 2601 BTF_ID_FLAGS(func, bpf_dynptr_slice_rdwr, KF_RET_NUL [all...] |
H A D | verifier.c | 11006 BTF_ID(func, bpf_dynptr_slice_rdwr) 11034 BTF_ID(func, bpf_dynptr_slice_rdwr)
|
Completed in 207 milliseconds