Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_failure1.c46 SEC("syscall") __retval(USER_PTR_ERR)int test_strcspn_null1(void *ctx) { return bpf_strcspn(NULL, "hello"); } in __retval()
47 SEC("syscall") __retval(USER_PTR_ERR)int test_strcspn_null2(void *ctx) { return bpf_strcspn("hello", NULL); } in __retval()
72 SEC("syscall") __retval(USER_PTR_ERR) int test_strcspn_user_ptr1(void *ctx) { return bpf_strcspn(user_ptr, "hello"); } in __retval()
73 SEC("syscall") __retval(USER_PTR_ERR) int test_strcspn_user_ptr2(void *ctx) { return bpf_strcspn("hello", user_ptr); } in __retval()
100 SEC("syscall") __retval(-EFAULT) int test_strcspn_pagefault1(void *ctx) { return bpf_strcspn(invalid_kern_ptr, "hello"); } in test_strnstr_pagefault1()
101 SEC("syscall") __retval(-EFAULT) int test_strcspn_pagefault2(void *ctx) { return bpf_strcspn("hello", invalid_kern_ptr); } in test_strnstr_pagefault2()
H A Dstring_kfuncs_failure2.c20 SEC("syscall") int test_strcspn_str_too_long(void *ctx) { return bpf_strcspn(long_str, "b"); } in test_strcspn_reject_too_long()
21 SEC("syscall") int test_strcspn_reject_too_long(void *ctx) { return bpf_strcspn("b", long_str); } in test_strstr_too_long()
H A Dstring_kfuncs_success.c41 __test(2) int test_strcspn(void *ctx) { return bpf_strcspn(str, "lo"); } in test_strnstr_found1()
/linux/kernel/bpf/
H A Dhelpers.c3798 __bpf_kfunc int bpf_strcspn(const char *s__ign, const char *reject__ign) in bpf_strcspn() function
4673 BTF_ID_FLAGS(func, bpf_strcspn);