/linux-6.3-rc2/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 | 1018 test_case = &test_case_copy; in run_core_reloc_tests() 1031 if (!test_case->btf_src_file || test_case->run_btfgen_fails) { in run_core_reloc_tests() 1041 test_case->bpf_obj_file); in run_core_reloc_tests() 1048 if (test_case->setup) { in run_core_reloc_tests() 1049 err = test_case->setup(test_case); in run_core_reloc_tests() 1054 if (test_case->btf_src_file) { in run_core_reloc_tests() 1074 if (!test_case->fails) in run_core_reloc_tests() 1093 if (test_case->input_len) in run_core_reloc_tests() 1094 memcpy(data->in, test_case->input, test_case->input_len); in run_core_reloc_tests() 1102 if (test_case->trigger) { in run_core_reloc_tests() [all …]
|
A D | xdp_bonding.c | 558 struct bond_test_case *test_case = &bond_test_cases[i]; in serial_test_xdp_bonding() local 560 if (test__start_subtest(test_case->name)) in serial_test_xdp_bonding() 563 test_case->mode, in serial_test_xdp_bonding() 564 test_case->xmit_policy); in serial_test_xdp_bonding()
|
A D | core_extern.c | 23 static struct test_case { struct 131 struct test_case *t = &test_cases[i]; in test_core_extern()
|
/linux-6.3-rc2/lib/kunit/ |
A D | debugfs.c | 41 struct kunit_case *test_case) in debugfs_print_result() argument 43 if (!test_case || !test_case->log) in debugfs_print_result() 46 seq_printf(seq, "%s", test_case->log); in debugfs_print_result() 56 struct kunit_case *test_case; in debugfs_print_results() local 63 kunit_suite_for_each_test_case(suite, test_case) in debugfs_print_results() 64 debugfs_print_result(seq, suite, test_case); in debugfs_print_results() 94 struct kunit_case *test_case; in kunit_debugfs_create_suite() local 98 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_create_suite() 110 struct kunit_case *test_case; in kunit_debugfs_destroy_suite() local 114 kunit_suite_for_each_test_case(suite, test_case) in kunit_debugfs_destroy_suite() [all …]
|
A D | test.c | 138 struct kunit_case *test_case; in kunit_suite_num_test_cases() local 220 struct kunit_case *test_case) in kunit_test_case_num() argument 226 if (tc == test_case) in kunit_test_case_num() 350 test_case->run_case(test); in kunit_run_case_internal() 374 struct kunit_case *test_case; member 382 struct kunit_case *test_case = ctx->test_case; in kunit_try_run_case() local 434 struct kunit_case *test_case, in kunit_run_case_catch_errors() argument 440 kunit_init_test(test, test_case->name, test_case->log); in kunit_run_case_catch_errors() 449 context.test_case = test_case; in kunit_run_case_catch_errors() 513 struct kunit_case *test_case; in kunit_run_tests() local [all …]
|
A D | executor.c | 61 struct kunit_case *filtered, *test_case; in kunit_filter_tests() local 64 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests() 65 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_tests() 83 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_tests() 84 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_tests() 85 filtered[n++] = *test_case; in kunit_filter_tests() 178 struct kunit_case *test_case; in kunit_exec_list_tests() local 184 kunit_suite_for_each_test_case((*suites), test_case) { in kunit_exec_list_tests() 185 pr_info("%s.%s\n", (*suites)->name, test_case->name); in kunit_exec_list_tests()
|
/linux-6.3-rc2/drivers/virt/nitro_enclaves/ |
A D | ne_misc_dev_test.c | 123 struct ne_phys_regions_test *test_case = &phys_regions_test_cases[i]; in ne_misc_dev_test_merge_phys_contig_memory_regions() local 127 test_case->paddr, test_case->size); in ne_misc_dev_test_merge_phys_contig_memory_regions() 128 KUNIT_EXPECT_EQ(test, rc, test_case->expect_rc); in ne_misc_dev_test_merge_phys_contig_memory_regions() 129 KUNIT_EXPECT_EQ(test, phys_contig_mem_regions.num, test_case->expect_num); in ne_misc_dev_test_merge_phys_contig_memory_regions() 131 if (test_case->expect_last_paddr == INVALID_VALUE) in ne_misc_dev_test_merge_phys_contig_memory_regions() 136 test_case->expect_last_paddr); in ne_misc_dev_test_merge_phys_contig_memory_regions() 138 test_case->expect_last_size); in ne_misc_dev_test_merge_phys_contig_memory_regions()
|
/linux-6.3-rc2/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()
|
/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | cow.c | 1152 run_with_base_page(test_case->fn, test_case->desc); in run_anon_test_case() 1153 run_with_base_page_swap(test_case->fn, test_case->desc); in run_anon_test_case() 1155 run_with_thp(test_case->fn, test_case->desc); in run_anon_test_case() 1156 run_with_thp_swap(test_case->fn, test_case->desc); in run_anon_test_case() 1157 run_with_pte_mapped_thp(test_case->fn, test_case->desc); in run_anon_test_case() 1165 run_with_hugetlb(test_case->fn, test_case->desc, in run_anon_test_case() 1710 run_with_zeropage(test_case->fn, test_case->desc); in run_non_anon_test_case() 1711 run_with_memfd(test_case->fn, test_case->desc); in run_non_anon_test_case() 1712 run_with_tmpfile(test_case->fn, test_case->desc); in run_non_anon_test_case() 1714 run_with_huge_zeropage(test_case->fn, test_case->desc); in run_non_anon_test_case() [all …]
|
A D | mremap_test.c | 368 static void run_mremap_test_case(struct test test_case, int *failures, in run_mremap_test_case() argument 372 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case() 376 if (test_case.expect_failure) in run_mremap_test_case() 378 test_case.name); in run_mremap_test_case() 380 ksft_test_result_fail("%s\n", test_case.name); in run_mremap_test_case() 389 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case() 391 test_case.name, remap_time); in run_mremap_test_case() 393 ksft_test_result_pass("%s\n", test_case.name); in run_mremap_test_case()
|
/linux-6.3-rc2/samples/bpf/ |
A D | test_map_in_map.bpf.c | 110 u16 test_case, port, dst6[8]; in trace_sys_connect() local 131 test_case = dst6[7]; in trace_sys_connect() 142 if (test_case == 0) { in trace_sys_connect() 144 } else if (test_case == 1) { in trace_sys_connect() 146 } else if (test_case == 2) { in trace_sys_connect() 163 if (test_case == 0 || test_case == 1) in trace_sys_connect()
|
A D | map_perf_test.bpf.c | 188 u16 test_case; in BPF_KSYSCALL() local 205 test_case = test_params.tcase; in BPF_KSYSCALL() 206 if (test_case != 3) in BPF_KSYSCALL() 209 if (test_case == 0) { in BPF_KSYSCALL() 211 } else if (test_case == 1) { in BPF_KSYSCALL() 214 } else if (test_case == 2) { in BPF_KSYSCALL() 227 } else if (test_case == 3) { in BPF_KSYSCALL()
|
/linux-6.3-rc2/tools/testing/selftests/kvm/x86_64/ |
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()
|
/linux-6.3-rc2/tools/testing/vsock/ |
A D | util.h | 24 struct test_case { struct 47 void run_tests(const struct test_case *test_cases, argument 49 void list_tests(const struct test_case *test_cases); 50 void skip_test(struct test_case *test_cases, size_t test_cases_len,
|
A D | util.c | 317 void run_tests(const struct test_case *test_cases, in run_tests() 365 void list_tests(const struct test_case *test_cases) in list_tests() 377 void skip_test(struct test_case *test_cases, size_t test_cases_len, in skip_test()
|
/linux-6.3-rc2/lib/ |
A D | test_kmod.c | 73 enum kmod_test_case test_case; member 138 switch (test_case) { in test_case_str() 192 switch (config->test_case) { in test_kmod_put_module() 212 switch (config->test_case) { in run_request() 420 config->test_case); in run_test_driver() 437 config->test_case); in run_test_fs_type() 469 config->test_case); in config_show() 511 config->test_case); in __trigger_config_run() 728 switch (test_case) { in trigger_config_run_type() 746 config->test_case = test_case; in trigger_config_run_type() [all …]
|
/linux-6.3-rc2/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
|
/linux-6.3-rc2/net/mptcp/ |
A D | crypto_test.c | 6 struct test_case { struct 15 static struct test_case tests[] = { argument
|
/linux-6.3-rc2/tools/perf/tests/ |
A D | tests.h | 34 struct test_case { struct 43 struct test_case *test_cases; argument 66 struct test_case tests__##_name[] = { \
|
A D | clang.c | 20 static struct test_case clang_tests[] = {
|
/linux-6.3-rc2/tools/testing/selftests/sysctl/ |
A D | sysctl.sh | 893 test_case $TEST_ID $TEST_COUNT $TEST_TARGET 924 function test_case() function 956 test_case $1 $(get_test_count $1) $(get_test_target $1) 961 test_case $1 $2 $(get_test_target $1) 964 test_case $1 1 $(get_test_target $1)
|
/linux-6.3-rc2/tools/perf/arch/x86/tests/ |
A D | arch-tests.c | 9 static struct test_case intel_pt_tests[] = {
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | rxtimestamp.c | 43 struct test_case { struct 68 static struct test_case test_cases[] = { argument 128 void print_test_case(struct test_case *t) in print_test_case()
|
/linux-6.3-rc2/include/kunit/ |
A D | test.h | 244 struct kunit_case *test_case); 311 #define kunit_suite_for_each_test_case(suite, test_case) \ argument 312 for (test_case = suite->test_cases; test_case->run_case; test_case++)
|