Searched refs:bpf_dynptr_copy (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_success.c | 596 err = err ?: bpf_dynptr_copy(&dst, 0, &src, 0, sz); in test_dynptr_copy() 601 err = err ?: bpf_dynptr_copy(&dst, 3, &src, 5, sz - 5); in test_dynptr_copy() 631 err = bpf_dynptr_copy(&ptr_xdp, 0, &ptr_buf, 0, len * chunks); in test_dynptr_copy_xdp() 652 err = bpf_dynptr_copy(&ptr_buf, 0, &ptr_xdp, 0, len * chunks); in test_dynptr_copy_xdp() 666 err = bpf_dynptr_copy(&ptr_xdp, 2, &ptr_xdp, len, len * (chunks - 1)); in test_dynptr_copy_xdp() 679 if (bpf_dynptr_copy(&ptr_xdp, xdp_data_size - 3000, &ptr_xdp, 0, len * chunks) != -E2BIG) in test_dynptr_copy_xdp()
|
/linux/kernel/bpf/ |
H A D | helpers.c | 2870 __bpf_kfunc int bpf_dynptr_copy(struct bpf_dynptr *dst_ptr, u32 dst_off, in bpf_dynptr_copy() function 3801 BTF_ID_FLAGS(func, bpf_dynptr_copy)
|