| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | migrate_reuseport.c | 185 static int drop_ack(struct migrate_reuseport_test_case *test_case, in drop_ack() argument 188 if (test_case->family == AF_INET) in drop_ack() 190 &test_case->addr)->sin_port; in drop_ack() 193 &test_case->addr)->sin6_port; in drop_ack() 195 test_case->link = bpf_program__attach_xdp(skel->progs.drop_ack, in drop_ack() 197 if (!ASSERT_OK_PTR(test_case->link, "bpf_program__attach_xdp")) in drop_ack() 203 static int pass_ack(struct migrate_reuseport_test_case *test_case) in pass_ack() argument 207 err = bpf_link__destroy(test_case->link); in pass_ack() 211 test_case->link = NULL; in pass_ack() 216 static int start_servers(struct migrate_reuseport_test_case *test_case, in start_servers() argument [all …]
|
| H A D | core_reloc.c | 1004 struct core_reloc_test_case *test_case, test_case_copy; in run_core_reloc_tests() 1021 test_case = &test_case_copy; in run_core_reloc_tests() 1023 if (!test__start_subtest(test_case->case_name)) in run_core_reloc_tests() 1026 if (test_case->needs_testmod && !env.has_testmod) { in run_core_reloc_tests() 1034 if (!test_case->btf_src_file || test_case->run_btfgen_fails) { in run_core_reloc_tests() 1043 err = run_btfgen(test_case->btf_src_file, btf_file, in run_core_reloc_tests() 1044 test_case->bpf_obj_file); in run_core_reloc_tests() 1048 test_case->btf_src_file = btf_file; in run_core_reloc_tests() 1051 if (test_case in run_core_reloc_tests() 1002 struct core_reloc_test_case *test_case, test_case_copy; run_core_reloc_tests() local [all...] |
| H 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()
|
| H A D | core_extern.c | 23 static struct test_case { struct 131 struct test_case *t = &test_cases[i]; in test_core_extern()
|
| H 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()
|
| /linux/lib/kunit/ |
| H A D | test.c | 140 struct kunit_case *test_case; in kunit_suite_num_test_cases() local 143 kunit_suite_for_each_test_case(suite, test_case) in kunit_suite_num_test_cases() 214 const struct kunit_case *test_case; in kunit_suite_has_succeeded() local 220 kunit_suite_for_each_test_case(suite, test_case) { in kunit_suite_has_succeeded() 221 if (test_case->status == KUNIT_FAILURE) in kunit_suite_has_succeeded() 223 else if (test_case->status == KUNIT_SUCCESS) in kunit_suite_has_succeeded() 243 struct kunit_case *test_case) in kunit_test_case_num() argument 249 if (tc == test_case) in kunit_test_case_num() 374 struct kunit_case *test_case, in kunit_run_case_check_speed() argument 379 enum kunit_speed speed = test_case->attr.speed; in kunit_run_case_check_speed() [all …]
|
| H A D | executor.c | 119 struct kunit_case *filtered, *test_case; in kunit_filter_glob_tests() local 122 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests() 123 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_glob_tests() 141 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_glob_tests() 142 if (!test_glob || glob_match(test_glob, test_case->name)) in kunit_filter_glob_tests() 143 filtered[n++] = *test_case; in kunit_filter_glob_tests() 294 struct kunit_case *test_case; in kunit_exec_list_tests() local 306 kunit_suite_for_each_test_case((*suites), test_case) { in kunit_exec_list_tests() 307 pr_info("%s.%s\n", (*suites)->name, test_case->name); in kunit_exec_list_tests() 309 kunit_print_attr((void *)test_case, true, 0); in kunit_exec_list_tests()
|
| H A D | attributes.c | 401 struct kunit_case *filtered, *test_case; in kunit_filter_attr_tests() local 411 kunit_suite_for_each_test_case(suite, test_case) { n++; } in kunit_filter_attr_tests() 433 kunit_suite_for_each_test_case(suite, test_case) { in kunit_filter_attr_tests() 434 test_val = filter.attr->get_attr((void *) test_case, true); in kunit_filter_attr_tests() 435 test_result = filter.attr->filter(filter.attr->get_attr(test_case, true), in kunit_filter_attr_tests() 457 filtered[n++] = *test_case; in kunit_filter_attr_tests() 459 test_case->status = KUNIT_SKIPPED; in kunit_filter_attr_tests() 460 filtered[n++] = *test_case; in kunit_filter_attr_tests()
|
| /linux/drivers/virt/nitro_enclaves/ |
| H 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/tools/testing/selftests/kvm/ |
| H 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/tools/testing/selftests/mm/ |
| H A D | cow.c | 1077 struct test_case { struct 1086 static const struct test_case anon_test_cases[] = { argument 1204 static void run_anon_test_case(struct test_case const *test_case) in run_anon_test_case() argument 1208 run_with_base_page(test_case->fn, test_case->desc); in run_anon_test_case() 1209 run_with_base_page_swap(test_case->fn, test_case->desc); in run_anon_test_case() 1219 run_with_thp(test_case->fn, test_case->desc, size); in run_anon_test_case() 1220 run_with_thp_swap(test_case->fn, test_case->desc, size); in run_anon_test_case() 1223 run_with_pte_mapped_thp(test_case->fn, test_case->desc, size); in run_anon_test_case() 1224 run_with_pte_mapped_thp_swap(test_case->fn, test_case->desc, size); in run_anon_test_case() 1225 run_with_single_pte_of_thp(test_case->fn, test_case->desc, size); in run_anon_test_case() [all …]
|
| H 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()
|
| H A D | mremap_test.c | 1248 static void run_mremap_test_case(struct test test_case, int *failures, in run_mremap_test_case() argument 1252 long long remap_time = remap_region(test_case.config, threshold_mb, in run_mremap_test_case() 1256 if (test_case.expect_failure) in run_mremap_test_case() 1258 test_case.name); in run_mremap_test_case() 1260 ksft_test_result_fail("%s\n", test_case.name); in run_mremap_test_case() 1269 test_case.config.region_size <= threshold_mb * _1MB) in run_mremap_test_case() 1271 test_case.name, remap_time); in run_mremap_test_case() 1273 ksft_test_result_pass("%s\n", test_case.name); in run_mremap_test_case()
|
| /linux/samples/bpf/ |
| H A D | test_map_in_map.bpf.c | 109 u16 test_case, port, dst6[8]; in BPF_KSYSCALL() local 127 test_case = dst6[7]; in BPF_KSYSCALL() 138 if (test_case == 0) { in BPF_KSYSCALL() 140 } else if (test_case == 1) { in BPF_KSYSCALL() 142 } else if (test_case == 2) { in BPF_KSYSCALL() 159 if (test_case == 0 || test_case == 1) in BPF_KSYSCALL()
|
| H 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/lib/ |
| H A D | test_kmod.c | 82 enum kmod_test_case test_case; member 146 static const char *test_case_str(enum kmod_test_case test_case) in test_case_str() argument 148 switch (test_case) { in test_case_str() 202 switch (config->test_case) { in test_kmod_put_module() 222 switch (config->test_case) { in run_request() 254 switch (config->test_case) { in tally_work_test() 429 test_case_str(config->test_case), in run_test_driver() 430 config->test_case); in run_test_driver() 446 test_case_str(config->test_case), in run_test_fs_type() 447 config->test_case); in run_test_fs_type() [all …]
|
| /linux/tools/testing/vsock/ |
| H 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,
|
| /linux/tools/perf/tests/ |
| H A D | builtin-test.c | 238 static const char *skip_reason(const struct test_suite *t, int test_case) in skip_reason() argument 243 return t->test_cases[test_case >= 0 ? test_case : 0].skip_reason; in skip_reason() 246 static const char *test_description(const struct test_suite *t, int test_case) in test_description() argument 248 if (t->test_cases && test_case >= 0) in test_description() 249 return t->test_cases[test_case].desc; in test_description() 254 static test_fnptr test_function(const struct test_suite *t, int test_case) in test_function() argument 256 if (test_case <= 0) in test_function() 259 return t->test_cases[test_case].run_case; in test_function() 262 static bool test_exclusive(const struct test_suite *t, int test_case) in test_exclusive() argument 264 if (test_case <= 0) in test_exclusive() [all …]
|
| H 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[] = { \
|
| /linux/tools/testing/selftests/kmod/ |
| H 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/tools/perf/arch/x86/tests/ |
| H A D | arch-tests.c | 10 static struct test_case intel_pt_tests[] = { 26 static struct test_case hybrid_tests[] = {
|
| /linux/net/mptcp/ |
| H A D | crypto_test.c | 6 struct test_case { struct 15 static struct test_case tests[] = { argument
|
| /linux/tools/testing/selftests/sysctl/ |
| H 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)
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | psp.py | 574 def test_case(cfg): function 578 test_case.__name__ = f"{name}_v{psp_ver}_ip{ipver}" 579 return test_case 584 def test_case(cfg): function 588 test_case.__name__ = f"{name}_ip{ipver}" 589 return test_case
|
| /linux/tools/testing/selftests/net/ |
| H 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()
|