Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_failure1.c39 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'); }
H A Dstring_kfuncs_success.c30 __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()
H A Dstring_kfuncs_failure2.c13 SEC("syscall") int test_strchrnul_too_long(void *ctx) { return bpf_strchrnul(long_str, 'b'); } in test_strrchr_too_long()
/linux/kernel/bpf/
H A Dhelpers.c3786 __bpf_kfunc int bpf_strchrnul(const char *s__ign, char c) in bpf_strchrnul() function
4846 BTF_ID_FLAGS(func, bpf_strchrnul);