Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_failure1.c43 SEC("syscall") __retval(USER_PTR_ERR)int test_strnlen_null(void *ctx) { return bpf_strnlen(NULL, 1); } in __retval()
69 SEC("syscall") __retval(USER_PTR_ERR) int test_strnlen_user_ptr(void *ctx) { return bpf_strnlen(user_ptr, 1); }
97 SEC("syscall") __retval(-EFAULT) int test_strnlen_pagefault(void *ctx) { return bpf_strnlen(invalid_kern_ptr, 1); }
H A Dstring_kfuncs_failure2.c17 SEC("syscall") int test_strnlen_too_long(void *ctx) { return bpf_strnlen(long_str, sizeof(long_str)); } in test_strspn_accept_too_long()
H A Dstring_kfuncs_success.c39 __test(11) int test_strnlen(void *ctx) { return bpf_strnlen(str, 12); } in test_strnstr_found2()
/linux/kernel/bpf/
H A Dhelpers.c3851 __bpf_kfunc int bpf_strnlen(const char *s__ign, size_t count) in bpf_strnlen() function
3883 return bpf_strnlen(s__ign, XATTR_SIZE_MAX); in bpf_strlen()
4850 BTF_ID_FLAGS(func, bpf_strnlen);