Symbol: bpf_strcasecmp
kernel/bpf/helpers.c
4664
BTF_ID_FLAGS(func, bpf_strcasecmp);
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
34
SEC("syscall") __retval(USER_PTR_ERR) int test_strcasecmp_null1(void *ctx) { return bpf_strcasecmp(NULL, "HELLO"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
35
SEC("syscall") __retval(USER_PTR_ERR)int test_strcasecmp_null2(void *ctx) { return bpf_strcasecmp("HELLO", NULL); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
60
SEC("syscall") __retval(USER_PTR_ERR) int test_strcasecmp_user_ptr1(void *ctx) { return bpf_strcasecmp(user_ptr, "HELLO"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
61
SEC("syscall") __retval(USER_PTR_ERR) int test_strcasecmp_user_ptr2(void *ctx) { return bpf_strcasecmp("HELLO", user_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
88
SEC("syscall") __retval(-EFAULT) int test_strcasecmp_pagefault1(void *ctx) { return bpf_strcasecmp(invalid_kern_ptr, "HELLO"); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure1.c
89
SEC("syscall") __retval(-EFAULT) int test_strcasecmp_pagefault2(void *ctx) { return bpf_strcasecmp("HELLO", invalid_kern_ptr); }
tools/testing/selftests/bpf/progs/string_kfuncs_failure2.c
10
SEC("syscall") int test_strcasecmp_too_long(void *ctx) { return bpf_strcasecmp(long_str, long_str); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
15
__test(0) int test_strcasecmp_eq1(void *ctx) { return bpf_strcasecmp(str, "hello world"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
16
__test(0) int test_strcasecmp_eq2(void *ctx) { return bpf_strcasecmp(str, "HELLO WORLD"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
17
__test(0) int test_strcasecmp_eq3(void *ctx) { return bpf_strcasecmp(str, "HELLO world"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
18
__test(1) int test_strcasecmp_neq1(void *ctx) { return bpf_strcasecmp(str, "hello"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
19
__test(1) int test_strcasecmp_neq2(void *ctx) { return bpf_strcasecmp(str, "HELLO"); }