Home
last modified time | relevance | path

Searched refs:__test (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dstring_kfuncs_success.c10 #define __test(retval) SEC("syscall") __success __retval(retval) macro
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(0) int test_strcasecmp_eq1(void *ctx) { return bpf_strcasecmp(str, "hello world"); } in test_strcasecmp_eq1()
16 __test(0) int test_strcasecmp_eq2(void *ctx) { return bpf_strcasecmp(str, "HELLO WORLD"); } in test_strcasecmp_eq2()
17 __test(0) int test_strcasecmp_eq3(void *ctx) { return bpf_strcasecmp(str, "HELLO world"); } in test_strcasecmp_eq3()
18 __test(1) int test_strcasecmp_neq1(void *ctx) { return bpf_strcasecmp(str, "hello"); } in test_strcasecmp_neq1()
19 __test(1) int test_strcasecmp_neq2(void *ctx) { return bpf_strcasecmp(str, "HELLO"); } in test_strcasecmp_neq2()
20 __test(0) int test_strncasecmp_eq1(void *ctx) { return bpf_strncasecmp(str, "hello world", 11); } in test_strchr_found()
21 __test( in test_strchr_found()
[all...]
/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_percpu_stats.c292 static void __test(int map_fd) in __test() function
408 __test(create_hash()); in map_percpu_stats_hash()
414 __test(create_percpu_hash()); in map_percpu_stats_percpu_hash()
420 __test(create_hash_prealloc()); in map_percpu_stats_hash_prealloc()
426 __test(create_percpu_hash_prealloc()); in map_percpu_stats_percpu_hash_prealloc()
432 __test(create_lru_hash(BPF_MAP_TYPE_LRU_HASH, 0)); in map_percpu_stats_lru_hash()
438 __test(create_lru_hash(BPF_MAP_TYPE_LRU_HASH, BPF_F_NO_COMMON_LRU)); in map_percpu_stats_lru_hash_no_common()
444 __test(create_lru_hash(BPF_MAP_TYPE_LRU_PERCPU_HASH, 0)); in map_percpu_stats_percpu_lru_hash()
450 __test(create_lru_hash(BPF_MAP_TYPE_LRU_PERCPU_HASH, BPF_F_NO_COMMON_LRU)); in map_percpu_stats_percpu_lru_hash_no_common()
456 __test(create_hash_of_maps()); in map_percpu_stats_hash_of_maps()
/linux/tools/testing/selftests/sched_ext/
H A Dscx_test.h75 #define REGISTER_SCX_TEST(__test) \ argument
79 scx_test_register(__test); \
/linux/lib/tests/
H A Dprintf_kunit.c109 __test(struct kunit *kunittest, const char *file, const int line, const char *expect, int elen, in __test() function
151 __test(kunittest, __FILE__, __LINE__, expect, strlen(expect), fmt, ##__VA_ARGS__)
162 __test(kunittest, __FILE__, __LINE__, "xxx\0yyy", 7, "xxx%cyyy", '\0'); in test_basic()
271 * __printf() attribute on __test(). This cannot be a function with a __printf() in test_hashed()
/linux/tools/testing/selftests/kvm/
H A Dguest_memfd_test.c353 #define gmem_test(__test, __vm, __flags) \ argument
357 test_##__test(fd, page_size * 4); \