Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
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(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()
23 __test(9) int test_strrchr_found(void *ctx) { return bpf_strrchr(str, 'l'); } in test_strrchr_found()
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()
[all …]
/tools/testing/selftests/bpf/map_tests/
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()
/tools/testing/selftests/sched_ext/
A Dscx_test.h75 #define REGISTER_SCX_TEST(__test) \ argument
79 scx_test_register(__test); \

Completed in 9 milliseconds