| /tools/testing/selftests/bpf/prog_tests/ |
| A D | migrate_reuseport.c | 211 test_case->link = NULL; in pass_ack() 225 &test_case->addr, &test_case->addrlen); in start_servers() 228 test_case->servers[i] = socket(test_case->family, SOCK_STREAM, in start_servers() 240 test_case->addrlen); in start_servers() 254 &test_case->addrlen); in start_servers() 259 if (test_case->fastopen) { in start_servers() 284 test_case->clients[i] = socket(test_case->family, SOCK_STREAM, in start_clients() 470 if (test_case->fastopen) { in run_test() 482 if (test_case->drop_ack) { in run_test() 518 if (test_case->link) { in run_test() [all …]
|
| A D | core_reloc.c | 1021 test_case = &test_case_copy; in run_core_reloc_tests() 1034 if (!test_case->btf_src_file || test_case->run_btfgen_fails) { in run_core_reloc_tests() 1044 test_case->bpf_obj_file); in run_core_reloc_tests() 1051 if (test_case->setup) { in run_core_reloc_tests() 1052 err = test_case->setup(test_case); in run_core_reloc_tests() 1057 if (test_case->btf_src_file) { in run_core_reloc_tests() 1077 if (!test_case->fails) in run_core_reloc_tests() 1096 if (test_case->input_len) in run_core_reloc_tests() 1097 memcpy(data->in, test_case->input, test_case->input_len); in run_core_reloc_tests() 1105 if (test_case->trigger) { in run_core_reloc_tests() [all …]
|
| A D | tcp_custom_syncookie.c | 92 static void create_connection(struct test_tcp_custom_syncookie_case *test_case) in create_connection() argument 96 server = start_server(test_case->family, test_case->type, test_case->addr, 0, 0); in create_connection()
|
| A D | core_extern.c | 23 static struct test_case { struct 131 struct test_case *t = &test_cases[i]; in test_core_extern()
|
| A D | xdp_bonding.c | 671 struct bond_test_case *test_case = &bond_test_cases[i]; in serial_test_xdp_bonding() local 673 if (test__start_subtest(test_case->name)) in serial_test_xdp_bonding() 676 test_case->mode, in serial_test_xdp_bonding() 677 test_case->xmit_policy); in serial_test_xdp_bonding()
|
| /tools/testing/selftests/kvm/ |
| A D | system_counter_offset_test.c | 19 struct test_case { struct 23 static struct test_case test_cases[] = { argument 36 static void setup_system_counter(struct kvm_vcpu *vcpu, struct test_case *test) in setup_system_counter() 42 static uint64_t guest_read_system_counter(struct test_case *test) in guest_read_system_counter() 47 static uint64_t host_read_guest_system_counter(struct test_case *test) in host_read_guest_system_counter() 66 struct test_case *test = &test_cases[i]; in guest_main() 96 struct test_case *test = &test_cases[i]; in enter_guest()
|
| /tools/testing/selftests/kvm/x86/ |
| A D | kvm_clock_test.c | 19 struct test_case { struct 24 static struct test_case test_cases[] = { argument 77 static void setup_clock(struct kvm_vm *vm, struct test_case *test_case) in setup_clock() argument 83 data.clock = test_case->kvmclock_base; in setup_clock() 84 if (test_case->realtime_offset) { in setup_clock() 99 data.realtime += test_case->realtime_offset; in setup_clock()
|
| /tools/testing/selftests/mm/ |
| A D | gup_longterm.c | 388 struct test_case { struct 445 static const struct test_case test_cases[] = { 490 static void run_test_case(struct test_case const *test_case) in run_test_case() argument 494 run_with_memfd(test_case->fn, test_case->desc); in run_test_case() 495 run_with_tmpfile(test_case->fn, test_case->desc); in run_test_case() 496 run_with_local_tmpfile(test_case->fn, test_case->desc); in run_test_case() 498 run_with_memfd_hugetlb(test_case->fn, test_case->desc, in run_test_case()
|
| A D | cow.c | 1213 run_with_base_page(test_case->fn, test_case->desc); in run_anon_test_case() 1214 run_with_base_page_swap(test_case->fn, test_case->desc); in run_anon_test_case() 1224 run_with_thp(test_case->fn, test_case->desc, size); in run_anon_test_case() 1225 run_with_thp_swap(test_case->fn, test_case->desc, size); in run_anon_test_case() 1238 run_with_hugetlb(test_case->fn, test_case->desc, in run_anon_test_case() 1491 struct test_case const *test_case = &anon_thp_test_cases[i]; in run_anon_thp_test_cases() local 1831 run_with_zeropage(test_case->fn, test_case->desc); in run_non_anon_test_case() 1832 run_with_memfd(test_case->fn, test_case->desc); in run_non_anon_test_case() 1833 run_with_tmpfile(test_case->fn, test_case->desc); in run_non_anon_test_case() 1835 run_with_huge_zeropage(test_case->fn, test_case->desc); in run_non_anon_test_case() [all …]
|
| A D | mremap_test.c | 990 static void run_mremap_test_case(struct test test_case, int *failures, in run_mremap_test_case() argument 994 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case() 998 if (test_case.expect_failure) in run_mremap_test_case() 1000 test_case.name); in run_mremap_test_case() 1002 ksft_test_result_fail("%s\n", test_case.name); in run_mremap_test_case() 1011 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case() 1013 test_case.name, remap_time); in run_mremap_test_case() 1015 ksft_test_result_pass("%s\n", test_case.name); in run_mremap_test_case()
|
| /tools/testing/vsock/ |
| A D | util.h | 59 struct test_case { struct 97 void run_tests(const struct test_case *test_cases, 99 void list_tests(const struct test_case *test_cases); 100 void skip_test(struct test_case *test_cases, size_t test_cases_len, 102 void pick_test(struct test_case *test_cases, size_t test_cases_len,
|
| /tools/perf/arch/x86/tests/ |
| A D | arch-tests.c | 11 static struct test_case intel_pt_tests[] = { 28 static struct test_case hybrid_tests[] = {
|
| /tools/perf/tests/ |
| A D | builtin-test.c | 237 static const char *skip_reason(const struct test_suite *t, int test_case) in skip_reason() argument 242 return t->test_cases[test_case >= 0 ? test_case : 0].skip_reason; in skip_reason() 245 static const char *test_description(const struct test_suite *t, int test_case) in test_description() argument 247 if (t->test_cases && test_case >= 0) in test_description() 248 return t->test_cases[test_case].desc; in test_description() 253 static test_fnptr test_function(const struct test_suite *t, int test_case) in test_function() argument 255 if (test_case <= 0) in test_function() 258 return t->test_cases[test_case].run_case; in test_function() 261 static bool test_exclusive(const struct test_suite *t, int test_case) in test_exclusive() argument 263 if (test_case <= 0) in test_exclusive() [all …]
|
| A D | tests.h | 35 struct test_case { struct 45 struct test_case *test_cases; argument 85 struct test_case tests__##_name[] = { \ 95 struct test_case tests__##_name[] = { \
|
| A D | openat-syscall.c | 74 static struct test_case tests__openat_syscall_event[] = {
|
| A D | evsel-tp-sched.c | 92 static struct test_case tests__perf_evsel__tp_sched_test[] = {
|
| A D | tool_pmu.c | 102 static struct test_case tests__tool_pmu[] = {
|
| A D | subcmd-help.c | 98 static struct test_case tests__subcmd_help[] = {
|
| A D | openat-syscall-all-cpus.c | 128 static struct test_case tests__openat_syscall_event_on_all_cpus[] = {
|
| A D | pfm.c | 185 static struct test_case pfm_tests[] = {
|
| A D | openat-syscall-tp-fields.c | 150 static struct test_case tests__syscall_openat_tp_fields[] = {
|
| A D | task-exit.c | 154 struct test_case tests__task_exit[] = {
|
| /tools/testing/selftests/kmod/ |
| A D | kmod.sh | 589 test_case $TEST_ID $TEST_COUNT 620 function test_case() function 650 test_case $1 $(get_test_count $1) 655 test_case $1 $2 658 test_case $1 1
|
| /tools/testing/selftests/sysctl/ |
| A D | sysctl.sh | 1007 test_case $TEST_ID $TEST_COUNT $TEST_TARGET 1038 function test_case() function 1071 test_case $1 $(get_test_count $1) $(get_test_target $1) 1076 test_case $1 $2 $(get_test_target $1) 1079 test_case $1 1 $(get_test_target $1)
|
| /tools/testing/selftests/net/ |
| A D | rxtimestamp.c | 43 struct test_case { struct 70 static struct test_case test_cases[] = { argument 146 void print_test_case(struct test_case *t) in print_test_case()
|