Searched refs:bpf_dynptr_slice_rdwr (Results 1 - 7 of 7) sorted by relevance

/linux-master/tools/testing/selftests/bpf/
H A Dbpf_kfuncs.h37 extern void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *ptr, __u32 offset,
/linux-master/tools/testing/selftests/bpf/progs/
H A Ddynptr_fail.c261 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 Dtest_xdp_dynptr.c125 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 Dtest_cls_redirect_dynptr.c399 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 Dtest_l4lb_noinline_dynptr.c470 eth = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
/linux-master/kernel/bpf/
H A Dhelpers.c1660 /* 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 Dverifier.c11006 BTF_ID(func, bpf_dynptr_slice_rdwr)
11034 BTF_ID(func, bpf_dynptr_slice_rdwr)

Completed in 207 milliseconds