Searched refs:bpf_strchrnul (Results 1 – 4 of 4) sorted by relevance
39 SEC("syscall") __retval(USER_PTR_ERR)int test_strchrnul_null(void *ctx) { return bpf_strchrnul(NULL, 'a'); } in __retval() 65 SEC("syscall") __retval(USER_PTR_ERR) int test_strchrnul_user_ptr(void *ctx) { return bpf_strchrnul(user_ptr, 'a'); } in __retval() 93 SEC("syscall") __retval(-EFAULT) int test_strchrnul_pagefault(void *ctx) { return bpf_strchrnul(invalid_kern_ptr, 'a'); }
30 __test(1) int test_strchrnul_found(void *ctx) { return bpf_strchrnul(str, 'e'); } in test_strrchr_notfound() 31 __test(11) int test_strchrnul_notfound(void *ctx) { return bpf_strchrnul(str, 'x'); } in test_strlen()
13 SEC("syscall") int test_strchrnul_too_long(void *ctx) { return bpf_strchrnul(long_str, 'b'); } in test_strrchr_too_long()
3786 __bpf_kfunc int bpf_strchrnul(const char *s__ign, char c) in bpf_strchrnul() function4846 BTF_ID_FLAGS(func, bpf_strchrnul);