Symbol: bpf_strncasecmp
kernel/bpf/helpers.c
4665
BTF_ID_FLAGS(func, bpf_strncasecmp);
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
36
SEC("syscall") __retval(USER_PTR_ERR)int test_strncasecmp_null1(void *ctx) { return bpf_strncasecmp(NULL, "HELLO", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
37
SEC("syscall") __retval(USER_PTR_ERR)int test_strncasecmp_null2(void *ctx) { return bpf_strncasecmp("HELLO", NULL, 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
62
SEC("syscall") __retval(USER_PTR_ERR) int test_strncasecmp_user_ptr1(void *ctx) { return bpf_strncasecmp(user_ptr, "HELLO", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
63
SEC("syscall") __retval(USER_PTR_ERR) int test_strncasecmp_user_ptr2(void *ctx) { return bpf_strncasecmp("HELLO", user_ptr, 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
90
SEC("syscall") __retval(-EFAULT) int test_strncasecmp_pagefault1(void *ctx) { return bpf_strncasecmp(invalid_kern_ptr, "HELLO", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
91
SEC("syscall") __retval(-EFAULT) int test_strncasecmp_pagefault2(void *ctx) { return bpf_strncasecmp("HELLO", invalid_kern_ptr, 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c
11
SEC("syscall") int test_strncasecmp_too_long(void *ctx) { return bpf_strncasecmp(long_str, long_str, sizeof(long_str)); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
20
__test(0) int test_strncasecmp_eq1(void *ctx) { return bpf_strncasecmp(str, "hello world", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
21
__test(0) int test_strncasecmp_eq2(void *ctx) { return bpf_strncasecmp(str, "HELLO WORLD", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
22
__test(0) int test_strncasecmp_eq3(void *ctx) { return bpf_strncasecmp(str, "HELLO world", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
23
__test(0) int test_strncasecmp_eq4(void *ctx) { return bpf_strncasecmp(str, "hello", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
24
__test(0) int test_strncasecmp_eq5(void *ctx) { return bpf_strncasecmp(str, "hello world!", 11); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
25
__test(-1) int test_strncasecmp_neq1(void *ctx) { return bpf_strncasecmp(str, "hello!", 6); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
26
__test(1) int test_strncasecmp_neq2(void *ctx) { return bpf_strncasecmp(str, "abc", 3); }