Searched refs:__test (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | string_kfuncs_success.c | 10 #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 D | map_percpu_stats.c | 292 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 D | scx_test.h | 75 #define REGISTER_SCX_TEST(__test) \ argument 79 scx_test_register(__test); \
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 411 #define __gmem_test(__test, __vm, __flags, __gmem_size) \ argument 415 test_##__test(fd, __gmem_size); \ 419 #define gmem_test(__test, __vm, __flags) \ argument 420 __gmem_test(__test, __vm, __flags, page_size * 4)
|