Home
last modified time | relevance | path

Searched refs:bpf_dynptr_slice_rdwr (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_meta.c153 dst = bpf_dynptr_slice_rdwr(&meta, 0, NULL, META_SIZE); in ing_cls_dynptr_slice_rdwr()
228 dst = bpf_dynptr_slice_rdwr(&meta, 2 * chunk_len, NULL, chunk_len); in ing_cls_dynptr_offset_wr()
274 p = bpf_dynptr_slice_rdwr(&meta, META_SIZE, NULL, sizeof(*p)); in ing_cls_dynptr_offset_oob()
415 eth = bpf_dynptr_slice_rdwr(&data, 0, NULL, sizeof(*eth)); in clone_meta_dynptr_survives_data_slice_write()
452 meta_have = bpf_dynptr_slice_rdwr(&meta, 0, NULL, META_SIZE); in clone_meta_dynptr_survives_meta_slice_write()
H A Ddynptr_fail.c262 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); in data_slice_out_of_bounds_skb()
282 md = bpf_dynptr_slice_rdwr(&meta, 0, NULL, sizeof(*md)); in data_slice_out_of_bounds_map_value()
1169 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
1221 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
1269 d = bpf_dynptr_slice_rdwr(&data, 0, NULL, sizeof(*d));
1315 md = bpf_dynptr_slice_rdwr(&meta, 0, NULL, sizeof(*md));
1360 md = bpf_dynptr_slice_rdwr(&meta, 0, NULL, sizeof(*md));
1405 md = bpf_dynptr_slice_rdwr(&meta, 0, NULL, sizeof(*md)); in invalid_slice_rdwr_rdonly()
1452 hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); in dynptr_size_invalid()
1580 hdr = bpf_dynptr_slice_rdwr( in clone_invalidate4()
[all...]
H A Dtest_xdp_dynptr.c125 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer)); in handle_ipv4()
204 new_eth = bpf_dynptr_slice_rdwr(&new_xdp_ptr, 0, eth_buffer, sizeof(eth_buffer)); in handle_ipv6()
H A Dtest_cls_redirect_dynptr.c399 encap_gre = bpf_dynptr_slice_rdwr(dynptr, 0, encap_buffer, sizeof(encap_buffer)); in forward_with_gre()
868 encap = bpf_dynptr_slice_rdwr(&dynptr, 0, encap_buffer, sizeof(encap_buffer)); in cls_redirect()
H A Dtest_l4lb_noinline_dynptr.c470 eth = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer)); in balancer_ingress()
/linux/tools/testing/selftests/bpf/
H A Dbpf_kfuncs.h40 extern void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *ptr, __u64 offset, void *buffer,
/linux/kernel/bpf/
H A Dhelpers.c3042 __bpf_kfunc void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *p, u64 offset, in bpf_dynptr_slice_rdwr() function
3158 dst_slice = bpf_dynptr_slice_rdwr(dst_ptr, dst_off, NULL, size); in bpf_dynptr_copy()
3211 slice = bpf_dynptr_slice_rdwr(p, offset, NULL, size); in bpf_dynptr_memset()
4782 BTF_ID_FLAGS(func, bpf_dynptr_slice_rdwr, KF_RET_NULL)
H A Dverifier.c11234 BTF_ID(func, bpf_dynptr_slice_rdwr) in BTF_ID()
/linux/kernel/trace/
H A Dbpf_trace.c3412 dst_slice = bpf_dynptr_slice_rdwr(dptr, doff, NULL, size); in __bpf_dynptr_copy_str()
3448 dst_slice = bpf_dynptr_slice_rdwr(dptr, doff, NULL, size); in __bpf_dynptr_copy()
/linux/include/linux/
H A Dbpf.h1444 void *bpf_dynptr_slice_rdwr(const struct bpf_dynptr *p, u64 offset,