Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_failure1.c44 SEC("syscall") __retval(USER_PTR_ERR)int test_strspn_null1(void *ctx) { return bpf_strspn(NULL, "hello"); } in __retval()
45 SEC("syscall") __retval(USER_PTR_ERR)int test_strspn_null2(void *ctx) { return bpf_strspn("hello", NULL); } in __retval()
70 SEC("syscall") __retval(USER_PTR_ERR) int test_strspn_user_ptr1(void *ctx) { return bpf_strspn(user_ptr, "hello"); } in test_strcmp_pagefault1()
71 SEC("syscall") __retval(USER_PTR_ERR) int test_strspn_user_ptr2(void *ctx) { return bpf_strspn("hello", user_ptr); } in test_strcmp_pagefault2()
98 SEC("syscall") __retval(-EFAULT) int test_strspn_pagefault1(void *ctx) { return bpf_strspn(invalid_kern_ptr, "hello"); }
99 SEC("syscall") __retval(-EFAULT) int test_strspn_pagefault2(void *ctx) { return bpf_strspn("hello", invalid_kern_ptr); }
H A Dstring_kfuncs_failure2.c18 SEC("syscall") int test_strspn_str_too_long(void *ctx) { return bpf_strspn(long_str, "a"); } in test_strcspn_str_too_long()
19 SEC("syscall") int test_strspn_accept_too_long(void *ctx) { return bpf_strspn("b", long_str); } in test_strcspn_reject_too_long()
H A Dstring_kfuncs_success.c40 __test(5) int test_strspn(void *ctx) { return bpf_strspn(str, "ehlo"); } in test_strnstr_found3()
/linux/kernel/bpf/
H A Dhelpers.c3899 __bpf_kfunc int bpf_strspn(const char *s__ign, const char *accept__ign) in bpf_strspn() function
4851 BTF_ID_FLAGS(func, bpf_strspn);