Lines Matching refs:ctx

13 __test(0) int test_strcmp_eq(void *ctx) { return bpf_strcmp(str, "hello world"); }  in test_strcmp_eq()  argument
14 __test(1) int test_strcmp_neq(void *ctx) { return bpf_strcmp(str, "hello"); } in test_strcmp_neq() argument
15 __test(1) int test_strchr_found(void *ctx) { return bpf_strchr(str, 'e'); } in test_strchr_found() argument
16 __test(11) int test_strchr_null(void *ctx) { return bpf_strchr(str, '\0'); } in test_strchr_null() argument
17 __test(-ENOENT) int test_strchr_notfound(void *ctx) { return bpf_strchr(str, 'x'); } in test_strchr_notfound() argument
18 __test(1) int test_strchrnul_found(void *ctx) { return bpf_strchrnul(str, 'e'); } in test_strchrnul_found() argument
19 __test(11) int test_strchrnul_notfound(void *ctx) { return bpf_strchrnul(str, 'x'); } in test_strchrnul_notfound() argument
20 __test(1) int test_strnchr_found(void *ctx) { return bpf_strnchr(str, 5, 'e'); } in test_strnchr_found() argument
21 __test(11) int test_strnchr_null(void *ctx) { return bpf_strnchr(str, 12, '\0'); } in test_strnchr_null() argument
22 __test(-ENOENT) int test_strnchr_notfound(void *ctx) { return bpf_strnchr(str, 5, 'w'); } in test_strnchr_notfound() argument
23 __test(9) int test_strrchr_found(void *ctx) { return bpf_strrchr(str, 'l'); } in test_strrchr_found() argument
24 __test(11) int test_strrchr_null(void *ctx) { return bpf_strrchr(str, '\0'); } in test_strrchr_null() argument
25 __test(-ENOENT) int test_strrchr_notfound(void *ctx) { return bpf_strrchr(str, 'x'); } in test_strrchr_notfound() argument
26 __test(11) int test_strlen(void *ctx) { return bpf_strlen(str); } in test_strlen() argument
27 __test(11) int test_strnlen(void *ctx) { return bpf_strnlen(str, 12); } in test_strnlen() argument
28 __test(5) int test_strspn(void *ctx) { return bpf_strspn(str, "ehlo"); } in test_strspn() argument
29 __test(2) int test_strcspn(void *ctx) { return bpf_strcspn(str, "lo"); } in test_strcspn() argument
30 __test(6) int test_strstr_found(void *ctx) { return bpf_strstr(str, "world"); } in test_strstr_found() argument
31 __test(-ENOENT) int test_strstr_notfound(void *ctx) { return bpf_strstr(str, "hi"); } in test_strstr_notfound() argument
32 __test(0) int test_strstr_empty(void *ctx) { return bpf_strstr(str, ""); } in test_strstr_empty() argument
33 __test(0) int test_strnstr_found(void *ctx) { return bpf_strnstr(str, "hello", 6); } in test_strnstr_found() argument
34 __test(-ENOENT) int test_strnstr_notfound(void *ctx) { return bpf_strnstr(str, "hi", 10); } in test_strnstr_notfound() argument
35 __test(0) int test_strnstr_empty(void *ctx) { return bpf_strnstr(str, "", 1); } in test_strnstr_empty() argument