Symbol: bpf_strcspn
kernel/bpf/helpers.c
4673
BTF_ID_FLAGS(func, bpf_strcspn);
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
100
SEC("syscall") __retval(-EFAULT) int test_strcspn_pagefault1(void *ctx) { return bpf_strcspn(invalid_kern_ptr, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
101
SEC("syscall") __retval(-EFAULT) int test_strcspn_pagefault2(void *ctx) { return bpf_strcspn("hello", invalid_kern_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
46
SEC("syscall") __retval(USER_PTR_ERR)int test_strcspn_null1(void *ctx) { return bpf_strcspn(NULL, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
47
SEC("syscall") __retval(USER_PTR_ERR)int test_strcspn_null2(void *ctx) { return bpf_strcspn("hello", NULL); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
72
SEC("syscall") __retval(USER_PTR_ERR) int test_strcspn_user_ptr1(void *ctx) { return bpf_strcspn(user_ptr, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
73
SEC("syscall") __retval(USER_PTR_ERR) int test_strcspn_user_ptr2(void *ctx) { return bpf_strcspn("hello", user_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c
20
SEC("syscall") int test_strcspn_str_too_long(void *ctx) { return bpf_strcspn(long_str, "b"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c
21
SEC("syscall") int test_strcspn_reject_too_long(void *ctx) { return bpf_strcspn("b", long_str); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
41
__test(2) int test_strcspn(void *ctx) { return bpf_strcspn(str, "lo"); }