Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_success.c15 __test(1) int test_strchr_found(void *ctx) { return bpf_strchr(str, 'e'); } in test_strchr_found()
16 __test(11) int test_strchr_null(void *ctx) { return bpf_strchr(str, '\0'); } in test_strchr_null()
17 __test(-ENOENT) int test_strchr_notfound(void *ctx) { return bpf_strchr(str, 'x'); } in test_strchr_notfound()
H A Dstring_kfuncs_failure1.c34 SEC("syscall") __retval(USER_PTR_ERR)int test_strchr_null(void *ctx) { return bpf_strchr(NULL, 'a'… in __retval()
52 SEC("syscall") __retval(USER_PTR_ERR) int test_strchr_user_ptr(void *ctx) { return bpf_strchr(user_… in __retval()
72 SEC("syscall") __retval(-EFAULT) int test_strchr_pagefault(void *ctx) { return bpf_strchr(invalid_k… in test_strchr_pagefault()
H A Dstring_kfuncs_failure2.c10 SEC("syscall") int test_strchr_too_long(void *ctx) { return bpf_strchr(long_str, 'b'); } in test_strchr_too_long()
/linux/kernel/bpf/
H A Dhelpers.c3439 __bpf_kfunc int bpf_strchr(const char *s__ign, char c) in bpf_strchr() function
3837 BTF_ID_FLAGS(func, bpf_strchr);