Searched refs:bpf_strnlen (Results 1 – 4 of 4) sorted by relevance
43 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); }
17 SEC("syscall") int test_strnlen_too_long(void *ctx) { return bpf_strnlen(long_str, sizeof(long_str)); } in test_strspn_accept_too_long()
39 __test(11) int test_strnlen(void *ctx) { return bpf_strnlen(str, 12); } in test_strnstr_found2()
3851 __bpf_kfunc int bpf_strnlen(const char *s__ign, size_t count) in bpf_strnlen() function3883 return bpf_strnlen(s__ign, XATTR_SIZE_MAX); in bpf_strlen()4850 BTF_ID_FLAGS(func, bpf_strnlen);