Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_failure1.c48 SEC("syscall") __retval(USER_PTR_ERR)int test_strstr_null1(void *ctx) { return bpf_strstr(NULL, "hello"); }
49 SEC("syscall") __retval(USER_PTR_ERR)int test_strstr_null2(void *ctx) { return bpf_strstr("hello", NULL); }
74 SEC("syscall") __retval(USER_PTR_ERR) int test_strstr_user_ptr1(void *ctx) { return bpf_strstr(user_ptr, "hello"); } in test_strnchr_pagefault()
75 SEC("syscall") __retval(USER_PTR_ERR) int test_strstr_user_ptr2(void *ctx) { return bpf_strstr("hello", user_ptr); } in test_strrchr_pagefault()
102 SEC("syscall") __retval(-EFAULT) int test_strstr_pagefault1(void *ctx) { return bpf_strstr(invalid_kern_ptr, "hello"); }
103 SEC("syscall") __retval(-EFAULT) int test_strstr_pagefault2(void *ctx) { return bpf_strstr("hello", invalid_kern_ptr); }
H A Dstring_kfuncs_success.c42 __test(6) int test_strstr_found(void *ctx) { return bpf_strstr(str, "world"); } in test_strnstr_notfound2()
44 __test(-ENOENT) int test_strstr_notfound(void *ctx) { return bpf_strstr(str, "hi"); } in test_strnstr_empty()
46 __test(0) int test_strstr_empty(void *ctx) { return bpf_strstr(str, ""); }
H A Dstring_kfuncs_failure2.c22 SEC("syscall") int test_strstr_too_long(void *ctx) { return bpf_strstr(long_str, "hello"); }
/linux/kernel/bpf/
H A Dhelpers.c3889 __bpf_kfunc int bpf_strstr(const char *s1__ign, const char *s2__ign) in bpf_strstr() function
4674 BTF_ID_FLAGS(func, bpf_strstr);