Symbol: __test
tools/testing/selftests/bpf/map_tests/map_percpu_stats.c
292
static void __test(int map_fd)
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
10
#define __test(retval) SEC("syscall") __success __retval(retval)
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
13
__test(0) int test_strcmp_eq(void *ctx) { return bpf_strcmp(str, "hello world"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
14
__test(1) int test_strcmp_neq(void *ctx) { return bpf_strcmp(str, "hello"); }
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"); }
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); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
27
__test(1) int test_strchr_found(void *ctx) { return bpf_strchr(str, 'e'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
28
__test(11) int test_strchr_null(void *ctx) { return bpf_strchr(str, '\0'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
29
__test(-ENOENT) int test_strchr_notfound(void *ctx) { return bpf_strchr(str, 'x'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
30
__test(1) int test_strchrnul_found(void *ctx) { return bpf_strchrnul(str, 'e'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
31
__test(11) int test_strchrnul_notfound(void *ctx) { return bpf_strchrnul(str, 'x'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
32
__test(1) int test_strnchr_found(void *ctx) { return bpf_strnchr(str, 5, 'e'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
33
__test(11) int test_strnchr_null(void *ctx) { return bpf_strnchr(str, 12, '\0'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
34
__test(-ENOENT) int test_strnchr_notfound(void *ctx) { return bpf_strnchr(str, 5, 'w'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
35
__test(9) int test_strrchr_found(void *ctx) { return bpf_strrchr(str, 'l'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
36
__test(11) int test_strrchr_null(void *ctx) { return bpf_strrchr(str, '\0'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
37
__test(-ENOENT) int test_strrchr_notfound(void *ctx) { return bpf_strrchr(str, 'x'); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
38
__test(11) int test_strlen(void *ctx) { return bpf_strlen(str); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
39
__test(11) int test_strnlen(void *ctx) { return bpf_strnlen(str, 12); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
40
__test(5) int test_strspn(void *ctx) { return bpf_strspn(str, "ehlo"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
41
__test(2) int test_strcspn(void *ctx) { return bpf_strcspn(str, "lo"); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
42
__test(6) int test_strstr_found(void *ctx) { return bpf_strstr(str, "world"); }
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
44
__test(-ENOENT) int test_strstr_notfound(void *ctx) { return bpf_strstr(str, "hi"); }
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
46
__test(0) int test_strstr_empty(void *ctx) { return bpf_strstr(str, ""); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
47
__test(0) int test_strcasestr_empty(void *ctx) { return bpf_strcasestr(str, ""); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
48
__test(0) int test_strnstr_found1(void *ctx) { return bpf_strnstr("", "", 0); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
49
__test(0) int test_strnstr_found2(void *ctx) { return bpf_strnstr(str, "hello", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
50
__test(0) int test_strnstr_found3(void *ctx) { return bpf_strnstr(str, "hello", 6); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
51
__test(-ENOENT) int test_strnstr_notfound1(void *ctx) { return bpf_strnstr(str, "hi", 10); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
52
__test(-ENOENT) int test_strnstr_notfound2(void *ctx) { return bpf_strnstr(str, "hello", 4); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
53
__test(-ENOENT) int test_strnstr_notfound3(void *ctx) { return bpf_strnstr("", "a", 0); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
54
__test(0) int test_strnstr_empty(void *ctx) { return bpf_strnstr(str, "", 1); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
55
__test(0) int test_strncasestr_found1(void *ctx) { return bpf_strncasestr("", "", 0); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
56
__test(0) int test_strncasestr_found2(void *ctx) { return bpf_strncasestr(str, "heLLO", 5); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
57
__test(0) int test_strncasestr_found3(void *ctx) { return bpf_strncasestr(str, "heLLO", 6); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
58
__test(-ENOENT) int test_strncasestr_notfound1(void *ctx) { return bpf_strncasestr(str, "hi", 10); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
59
__test(-ENOENT) int test_strncasestr_notfound2(void *ctx) { return bpf_strncasestr(str, "hello", 4); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
60
__test(-ENOENT) int test_strncasestr_notfound3(void *ctx) { return bpf_strncasestr("", "a", 0); }
tools/testing/selftests/bpf/progs/string_kfuncs_success.c
61
__test(0) int test_strncasestr_empty(void *ctx) { return bpf_strncasestr(str, "", 1); }