Symbol: bpf_strspn
kernel/bpf/helpers.c
4955
BTF_ID_FLAGS(func, bpf_strspn);
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
44
SEC("syscall") __retval(USER_PTR_ERR)int test_strspn_null1(void *ctx) { return bpf_strspn(NULL, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
45
SEC("syscall") __retval(USER_PTR_ERR)int test_strspn_null2(void *ctx) { return bpf_strspn("hello", NULL); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
70
SEC("syscall") __retval(USER_PTR_ERR) int test_strspn_user_ptr1(void *ctx) { return bpf_strspn(user_ptr, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
71
SEC("syscall") __retval(USER_PTR_ERR) int test_strspn_user_ptr2(void *ctx) { return bpf_strspn("hello", user_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
98
SEC("syscall") __retval(-EFAULT) int test_strspn_pagefault1(void *ctx) { return bpf_strspn(invalid_kern_ptr, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
99
SEC("syscall") __retval(-EFAULT) int test_strspn_pagefault2(void *ctx) { return bpf_strspn("hello", invalid_kern_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c
18
SEC("syscall") int test_strspn_str_too_long(void *ctx) { return bpf_strspn(long_str, "a"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c
19
SEC("syscall") int test_strspn_accept_too_long(void *ctx) { return bpf_strspn("b", long_str); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
40
__test(5) int test_strspn(void *ctx) { return bpf_strspn(str, "ehlo"); }