Home
last modified time | relevance | path

Searched refs:bpf_dynptr_adjust (Results 1 – 4 of 4) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/progs/
Ddynptr_success.c235 err = bpf_dynptr_adjust(&ptr, off, bpf_dynptr_size(&ptr)); in test_adjust()
247 err = bpf_dynptr_adjust(&ptr, off, 15); in test_adjust()
281 if (bpf_dynptr_adjust(&ptr, 5, 1) != -EINVAL) { in test_adjust_err()
287 if (bpf_dynptr_adjust(&ptr, size + 1, size + 1) != -ERANGE) { in test_adjust_err()
293 if (bpf_dynptr_adjust(&ptr, 0, size + 1) != -ERANGE) { in test_adjust_err()
298 if (bpf_dynptr_adjust(&ptr, off, size)) { in test_adjust_err()
338 if (bpf_dynptr_adjust(&ptr, size, size)) { in test_zero_size_dynptr()
474 if (bpf_dynptr_adjust(&ptr1, off, bpf_dynptr_size(&ptr1))) { in test_dynptr_clone()
499 bpf_dynptr_adjust(&ptr1, 5, 5); in test_dynptr_clone()
Ddynptr_fail.c1391 bpf_dynptr_adjust(&ptr, 1, 2); in dynptr_adjust_invalid()
/linux-6.6.21/tools/testing/selftests/bpf/
Dbpf_kfuncs.h38 extern int bpf_dynptr_adjust(const struct bpf_dynptr *ptr, __u32 start, __u32 end) __ksym;
/linux-6.6.21/kernel/bpf/
Dhelpers.c2384 __bpf_kfunc int bpf_dynptr_adjust(struct bpf_dynptr_kern *ptr, u32 start, u32 end) in bpf_dynptr_adjust() function
2509 BTF_ID_FLAGS(func, bpf_dynptr_adjust)