Home
last modified time | relevance | path

Searched refs:test_case (Results 1 – 25 of 43) sorted by relevance

12

/tools/testing/selftests/bpf/prog_tests/
A Dmigrate_reuseport.c211 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 Dcore_reloc.c1021 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 Dtcp_custom_syncookie.c92 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 Dcore_extern.c23 static struct test_case { struct
131 struct test_case *t = &test_cases[i]; in test_core_extern()
A Dxdp_bonding.c671 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 Dsystem_counter_offset_test.c19 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 Dkvm_clock_test.c19 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 Dgup_longterm.c388 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 Dcow.c1213 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 Dmremap_test.c990 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 Dutil.h59 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 Darch-tests.c11 static struct test_case intel_pt_tests[] = {
28 static struct test_case hybrid_tests[] = {
/tools/perf/tests/
A Dbuiltin-test.c237 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 Dtests.h35 struct test_case { struct
45 struct test_case *test_cases; argument
85 struct test_case tests__##_name[] = { \
95 struct test_case tests__##_name[] = { \
A Dopenat-syscall.c74 static struct test_case tests__openat_syscall_event[] = {
A Devsel-tp-sched.c92 static struct test_case tests__perf_evsel__tp_sched_test[] = {
A Dtool_pmu.c102 static struct test_case tests__tool_pmu[] = {
A Dsubcmd-help.c98 static struct test_case tests__subcmd_help[] = {
A Dopenat-syscall-all-cpus.c128 static struct test_case tests__openat_syscall_event_on_all_cpus[] = {
A Dpfm.c185 static struct test_case pfm_tests[] = {
A Dopenat-syscall-tp-fields.c150 static struct test_case tests__syscall_openat_tp_fields[] = {
A Dtask-exit.c154 struct test_case tests__task_exit[] = {
/tools/testing/selftests/kmod/
A Dkmod.sh589 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 Dsysctl.sh1007 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 Drxtimestamp.c43 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()

Completed in 29 milliseconds

12