Searched refs:bpf_strstr (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | string_kfuncs_failure1.c | 46 SEC("syscall") __retval(USER_PTR_ERR)int test_strstr_null1(void *ctx) { return bpf_strstr(NULL, "hello"); } in __retval() 47 SEC("syscall") __retval(USER_PTR_ERR)int test_strstr_null2(void *ctx) { return bpf_strstr("hello", NULL); } in __retval() 70 SEC("syscall") __retval(USER_PTR_ERR) int test_strstr_user_ptr1(void *ctx) { return bpf_strstr(user_ptr, "hello"); } in test_strcmp_pagefault1() 71 SEC("syscall") __retval(USER_PTR_ERR) int test_strstr_user_ptr2(void *ctx) { return bpf_strstr("hello", user_ptr); } in test_strcmp_pagefault2() 96 SEC("syscall") __retval(-EFAULT) int test_strstr_pagefault1(void *ctx) { return bpf_strstr(invalid_kern_ptr, "hello"); } 97 SEC("syscall") __retval(-EFAULT) int test_strstr_pagefault2(void *ctx) { return bpf_strstr("hello", invalid_kern_ptr); }
|
| H A D | string_kfuncs_success.c | 35 __test(6) int test_strstr_found(void *ctx) { return bpf_strstr(str, "world"); } in test_strstr_found() 37 __test(-ENOENT) int test_strstr_notfound(void *ctx) { return bpf_strstr(str, "hi"); } in test_strstr_empty() 39 __test(0) int test_strstr_empty(void *ctx) { return bpf_strstr(str, ""); } in test_strnstr_found2()
|
| H A D | string_kfuncs_failure2.c | 21 SEC("syscall") int test_strstr_too_long(void *ctx) { return bpf_strstr(long_str, "hello"); } in test_strnstr_too_long()
|
| /linux/kernel/bpf/ |
| H A D | helpers.c | 3793 __bpf_kfunc int bpf_strstr(const char *s1__ign, const char *s2__ign) in bpf_strstr() function 4532 BTF_ID_FLAGS(func, bpf_strstr);
|