Searched refs:bpf_strchr (Results 1 – 4 of 4) sorted by relevance
27 __test(1) int test_strchr_found(void *ctx) { return bpf_strchr(str, 'e'); } in test_strnchr_notfound() 28 __test(11) int test_strchr_null(void *ctx) { return bpf_strchr(str, '\0'); } in test_strrchr_found() 29 __test(-ENOENT) int test_strchr_notfound(void *ctx) { return bpf_strchr(str, 'x'); } in test_strrchr_null()
38 SEC("syscall") __retval(USER_PTR_ERR)int test_strchr_null(void *ctx) { return bpf_strchr(NULL, 'a'); } in __retval() 64 SEC("syscall") __retval(USER_PTR_ERR) int test_strchr_user_ptr(void *ctx) { return bpf_strchr(user_ptr, 'a'); } in __retval() 92 SEC("syscall") __retval(-EFAULT) int test_strchr_pagefault(void *ctx) { return bpf_strchr(invalid_kern_ptr, 'a'); }
12 SEC("syscall") int test_strchr_too_long(void *ctx) { return bpf_strchr(long_str, 'b'); } in test_strnchr_too_long()
3769 __bpf_kfunc int bpf_strchr(const char *s__ign, char c) in bpf_strchr() function4845 BTF_ID_FLAGS(func, bpf_strchr);