Lines Matching defs:ctx

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