Symbol: bpf_strcasestr
kernel/bpf/helpers.c
4675
BTF_ID_FLAGS(func, bpf_strcasestr);
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
104
SEC("syscall") __retval(-EFAULT) int test_strcasestr_pagefault1(void *ctx) { return bpf_strcasestr(invalid_kern_ptr, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
105
SEC("syscall") __retval(-EFAULT) int test_strcasestr_pagefault2(void *ctx) { return bpf_strcasestr("hello", invalid_kern_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
50
SEC("syscall") __retval(USER_PTR_ERR)int test_strcasestr_null1(void *ctx) { return bpf_strcasestr(NULL, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
51
SEC("syscall") __retval(USER_PTR_ERR)int test_strcasestr_null2(void *ctx) { return bpf_strcasestr("hello", NULL); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
76
SEC("syscall") __retval(USER_PTR_ERR) int test_strcasestr_user_ptr1(void *ctx) { return bpf_strcasestr(user_ptr, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
77
SEC("syscall") __retval(USER_PTR_ERR) int test_strcasestr_user_ptr2(void *ctx) { return bpf_strcasestr("hello", user_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c
23
SEC("syscall") int test_strcasestr_too_long(void *ctx) { return bpf_strcasestr(long_str, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
43
__test(6) int test_strcasestr_found(void *ctx) { return bpf_strcasestr(str, "woRLD"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
45
__test(-ENOENT) int test_strcasestr_notfound(void *ctx) { return bpf_strcasestr(str, "hi"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
47
__test(0) int test_strcasestr_empty(void *ctx) { return bpf_strcasestr(str, ""); }