Searched refs:test_case (Results 1 - 25 of 44) sorted by relevance

12

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dmigrate_reuseport.c185 static int drop_ack(struct migrate_reuseport_test_case *test_case, argument
188 if (test_case->family == AF_INET)
190 &test_case->addr)->sin_port;
193 &test_case->addr)->sin6_port;
195 test_case->link = bpf_program__attach_xdp(skel->progs.drop_ack,
197 if (!ASSERT_OK_PTR(test_case->link, "bpf_program__attach_xdp"))
203 static int pass_ack(struct migrate_reuseport_test_case *test_case) argument
207 err = bpf_link__destroy(test_case->link);
211 test_case->link = NULL;
216 static int start_servers(struct migrate_reuseport_test_case *test_case, argument
278 start_clients(struct migrate_reuseport_test_case *test_case) argument
321 update_maps(struct migrate_reuseport_test_case *test_case, struct test_migrate_reuseport *skel) argument
351 migrate_dance(struct migrate_reuseport_test_case *test_case) argument
407 count_requests(struct migrate_reuseport_test_case *test_case, struct test_migrate_reuseport *skel) argument
456 run_test(struct migrate_reuseport_test_case *test_case, struct test_migrate_reuseport *skel) argument
[all...]
H A Dtcp_custom_syncookie.c92 static void create_connection(struct test_tcp_custom_syncookie_case *test_case) argument
96 server = start_server(test_case->family, test_case->type, test_case->addr, 0, 0);
H A Dcore_reloc.c1001 struct core_reloc_test_case *test_case, test_case_copy; local
1018 test_case = &test_case_copy;
1020 if (!test__start_subtest(test_case->case_name))
1023 if (test_case->needs_testmod && !env.has_testmod) {
1031 if (!test_case->btf_src_file || test_case->run_btfgen_fails) {
1040 err = run_btfgen(test_case->btf_src_file, btf_file,
1041 test_case->bpf_obj_file);
1045 test_case->btf_src_file = btf_file;
1048 if (test_case
[all...]
H A Dcore_extern.c23 static struct test_case { struct
131 struct test_case *t = &test_cases[i];
/linux-master/drivers/virt/nitro_enclaves/
H A Dne_misc_dev_test.c123 struct ne_phys_regions_test *test_case = &phys_regions_test_cases[i]; local
127 test_case->paddr, test_case->size);
128 KUNIT_EXPECT_EQ(test, rc, test_case->expect_rc);
129 KUNIT_EXPECT_EQ(test, phys_contig_mem_regions.num, test_case->expect_num);
131 if (test_case->expect_last_paddr == INVALID_VALUE)
136 test_case->expect_last_paddr);
138 test_case->expect_last_size);
/linux-master/tools/perf/arch/x86/tests/
H A Darch-tests.c11 static struct test_case intel_pt_tests[] = {
28 static struct test_case hybrid_tests[] = {
/linux-master/lib/kunit/
H A Ddebugfs.c68 struct kunit_case *test_case; local
84 kunit_suite_for_each_test_case(suite, test_case)
85 debugfs_print_result(seq, test_case->log);
170 struct kunit_case *test_case; local
179 * The suite->log and test_case->log pointer are expected to be NULL
190 kunit_suite_for_each_test_case(suite, test_case) {
196 test_case->log = stream;
215 kunit_suite_for_each_test_case(suite, test_case)
216 string_stream_destroy(test_case->log);
221 struct kunit_case *test_case; local
[all...]
H A Dtest.c133 struct kunit_case *test_case; local
136 kunit_suite_for_each_test_case(suite, test_case)
207 const struct kunit_case *test_case; local
213 kunit_suite_for_each_test_case(suite, test_case) {
214 if (test_case->status == KUNIT_FAILURE)
216 else if (test_case->status == KUNIT_SUCCESS)
236 struct kunit_case *test_case)
242 if (tc == test_case)
358 struct kunit_case *test_case,
363 enum kunit_speed speed = test_case
235 kunit_test_case_num(struct kunit_suite *suite, struct kunit_case *test_case) argument
357 kunit_run_case_check_speed(struct kunit *test, struct kunit_case *test_case, struct timespec64 duration) argument
379 kunit_run_case_internal(struct kunit *test, struct kunit_suite *suite, struct kunit_case *test_case) argument
426 struct kunit_case *test_case; member in struct:kunit_try_catch_context
434 struct kunit_case *test_case = ctx->test_case; local
518 kunit_run_case_catch_errors(struct kunit_suite *suite, struct kunit_case *test_case, struct kunit *test) argument
604 struct kunit_case *test_case; local
[all...]
H A Dexecutor.c107 struct kunit_case *filtered, *test_case; local
110 kunit_suite_for_each_test_case(suite, test_case) {
111 if (!test_glob || glob_match(test_glob, test_case->name))
129 kunit_suite_for_each_test_case(suite, test_case) {
130 if (!test_glob || glob_match(test_glob, test_case->name))
131 filtered[n++] = *test_case;
281 struct kunit_case *test_case; local
293 kunit_suite_for_each_test_case((*suites), test_case) {
294 pr_info("%s.%s\n", (*suites)->name, test_case->name);
296 kunit_print_attr((void *)test_case, tru
[all...]
H A Dattributes.c229 // Suites get their module attribute from their first test_case
401 struct kunit_case *filtered, *test_case; local
411 kunit_suite_for_each_test_case(suite, test_case) { n++; }
433 kunit_suite_for_each_test_case(suite, test_case) {
434 test_val = filter.attr->get_attr((void *) test_case, true);
435 test_result = filter.attr->filter(filter.attr->get_attr(test_case, true),
457 filtered[n++] = *test_case;
459 test_case->status = KUNIT_SKIPPED;
460 filtered[n++] = *test_case;
/linux-master/tools/testing/vsock/
H A Dutil.h27 struct test_case { struct
57 void run_tests(const struct test_case *test_cases,
59 void list_tests(const struct test_case *test_cases);
60 void skip_test(struct test_case *test_cases, size_t test_cases_len,
/linux-master/tools/testing/selftests/kvm/
H A Dsystem_counter_offset_test.c19 struct test_case { struct
23 static struct test_case test_cases[] = {
36 static void setup_system_counter(struct kvm_vcpu *vcpu, struct test_case *test)
42 static uint64_t guest_read_system_counter(struct test_case *test)
47 static uint64_t host_read_guest_system_counter(struct test_case *test)
66 struct test_case *test = &test_cases[i];
96 struct test_case *test = &test_cases[i];
/linux-master/tools/testing/selftests/mm/
H A Dgup_longterm.c320 struct test_case { struct
377 static const struct test_case test_cases[] = {
422 static void run_test_case(struct test_case const *test_case) argument
426 run_with_memfd(test_case->fn, test_case->desc);
427 run_with_tmpfile(test_case->fn, test_case->desc);
428 run_with_local_tmpfile(test_case->fn, test_case
[all...]
H A Dcow.c1005 struct test_case { struct
1014 static const struct test_case anon_test_cases[] = {
1132 static void run_anon_test_case(struct test_case const *test_case) argument
1136 run_with_base_page(test_case->fn, test_case->desc);
1137 run_with_base_page_swap(test_case->fn, test_case->desc);
1147 run_with_thp(test_case->fn, test_case
1395 struct test_case const *test_case = &anon_thp_test_cases[i]; local
1703 run_non_anon_test_case(struct non_anon_test_case const *test_case) argument
[all...]
H A Dmremap_test.c569 static void run_mremap_test_case(struct test test_case, int *failures, argument
573 long long remap_time = remap_region(test_case.config, threshold_mb,
577 if (test_case.expect_failure)
579 test_case.name);
581 ksft_test_result_fail("%s\n", test_case.name);
590 test_case.config.region_size <= threshold_mb * _1MB)
592 test_case.name, remap_time);
594 ksft_test_result_pass("%s\n", test_case.name);
/linux-master/samples/bpf/
H A Dtest_map_in_map.bpf.c109 u16 test_case, port, dst6[8]; local
127 test_case = dst6[7];
138 if (test_case == 0) {
140 } else if (test_case == 1) {
142 } else if (test_case == 2) {
159 if (test_case == 0 || test_case == 1)
H A Dmap_perf_test.bpf.c188 u16 test_case; local
205 test_case = test_params.tcase;
206 if (test_case != 3)
209 if (test_case == 0) {
211 } else if (test_case == 1) {
214 } else if (test_case == 2) {
227 } else if (test_case == 3) {
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dkvm_clock_test.c19 struct test_case { struct
24 static struct test_case test_cases[] = {
77 static void setup_clock(struct kvm_vm *vm, struct test_case *test_case) argument
83 data.clock = test_case->kvmclock_base;
84 if (test_case->realtime_offset) {
99 data.realtime += test_case->realtime_offset;
/linux-master/net/mptcp/
H A Dcrypto_test.c6 struct test_case { struct
15 static struct test_case tests[] = {
/linux-master/lib/
H A Dtest_kmod.c76 enum kmod_test_case test_case; member in struct:test_config
140 static const char *test_case_str(enum kmod_test_case test_case) argument
142 switch (test_case) {
196 switch (config->test_case) {
216 switch (config->test_case) {
248 switch (config->test_case) {
423 test_case_str(config->test_case),
424 config->test_case);
440 test_case_str(config->test_case),
441 config->test_case);
723 trigger_config_run_type(struct kmod_test_device *test_dev, enum kmod_test_case test_case, const char *test_str) argument
[all...]
/linux-master/tools/perf/tests/
H A Dtests.h34 struct test_case { struct
43 struct test_case *test_cases;
66 struct test_case tests__##_name[] = { \
H A Dopenat-syscall.c74 static struct test_case tests__openat_syscall_event[] = {
H A Dpfm.c185 static struct test_case pfm_tests[] = {
/linux-master/tools/testing/selftests/kmod/
H 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
/linux-master/tools/testing/selftests/net/
H A Drxtimestamp.c43 struct test_case { struct
68 static struct test_case test_cases[] = {
128 void print_test_case(struct test_case *t)

Completed in 373 milliseconds

12