Searched refs:bpf_strcspn (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | string_kfuncs_failure1.c | 44 SEC("syscall") __retval(USER_PTR_ERR)int test_strcspn_null1(void *ctx) { return bpf_strcspn(NULL, "hello"); } in __retval() 45 SEC("syscall") __retval(USER_PTR_ERR)int test_strcspn_null2(void *ctx) { return bpf_strcspn("hello", NULL); } in __retval() 68 SEC("syscall") __retval(USER_PTR_ERR) int test_strcspn_user_ptr1(void *ctx) { return bpf_strcspn(user_ptr, "hello"); } 69 SEC("syscall") __retval(USER_PTR_ERR) int test_strcspn_user_ptr2(void *ctx) { return bpf_strcspn("hello", user_ptr); } 94 SEC("syscall") __retval(-EFAULT) int test_strcspn_pagefault1(void *ctx) { return bpf_strcspn(invalid_kern_ptr, "hello"); } 95 SEC("syscall") __retval(-EFAULT) int test_strcspn_pagefault2(void *ctx) { return bpf_strcspn("hello", invalid_kern_ptr); }
|
| H A D | string_kfuncs_failure2.c | 19 SEC("syscall") int test_strcspn_str_too_long(void *ctx) { return bpf_strcspn(long_str, "b"); } in test_strcspn_reject_too_long() 20 SEC("syscall") int test_strcspn_reject_too_long(void *ctx) { return bpf_strcspn("b", long_str); } in test_strstr_too_long()
|
| H A D | string_kfuncs_success.c | 34 __test(2) int test_strcspn(void *ctx) { return bpf_strcspn(str, "lo"); } in test_strcspn()
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 3702 __bpf_kfunc int bpf_strcspn(const char *s__ign, const char *reject__ign) in bpf_strcspn() function 4531 BTF_ID_FLAGS(func, bpf_strcspn);
|