Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dcore_reloc.c293 struct core_reloc_test_case *test_case; in test_core_reloc() local
303 test_case = &test_cases[i]; in test_core_reloc()
305 if (!test__start_subtest(test_case->case_name)) in test_core_reloc()
308 obj = bpf_object__open(test_case->bpf_obj_file); in test_core_reloc()
311 test_case->bpf_obj_file, PTR_ERR(obj))) in test_core_reloc()
322 load_attr.target_btf_path = test_case->btf_src_file; in test_core_reloc()
324 if (test_case->fails) { in test_core_reloc()
345 memcpy(data.in, test_case->input, test_case->input_len); in test_core_reloc()
361 equal = memcmp(data.out, test_case->output, in test_core_reloc()
362 test_case->output_len) == 0; in test_core_reloc()
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_btf_dump.c58 int test_btf_dump_case(int n, struct btf_dump_test_case *test_case) in test_btf_dump_case() argument
65 fprintf(stderr, "Test case #%d (%s): ", n, test_case->name); in test_btf_dump_case()
67 snprintf(test_file, sizeof(test_file), "%s.o", test_case->name); in test_btf_dump_case()
78 "/tmp/%s.output.XXXXXX", test_case->name); in test_btf_dump_case()
91 test_case->opts.ctx = f; in test_btf_dump_case()
92 err = btf_dump_all_types(btf, &test_case->opts); in test_btf_dump_case()
99 snprintf(test_file, sizeof(test_file), "progs/%s.c", test_case->name); in test_btf_dump_case()
106 test_case->name); in test_btf_dump_case()
/Linux-v5.4/samples/bpf/
Dtest_map_in_map_kern.c107 u16 test_case, port, dst6[8]; in trace_sys_connect() local
128 test_case = dst6[7]; in trace_sys_connect()
139 if (test_case == 0) { in trace_sys_connect()
141 } else if (test_case == 1) { in trace_sys_connect()
143 } else if (test_case == 2) { in trace_sys_connect()
160 if (test_case == 0 || test_case == 1) in trace_sys_connect()
Dmap_perf_test_kern.c171 u16 test_case; in stress_lru_hmap_alloc() local
191 test_case = test_params.tcase; in stress_lru_hmap_alloc()
192 if (test_case != 3) in stress_lru_hmap_alloc()
195 if (test_case == 0) { in stress_lru_hmap_alloc()
197 } else if (test_case == 1) { in stress_lru_hmap_alloc()
200 } else if (test_case == 2) { in stress_lru_hmap_alloc()
213 } else if (test_case == 3) { in stress_lru_hmap_alloc()
/Linux-v5.4/lib/
Dtest_kmod.c84 enum kmod_test_case test_case; member
147 static const char *test_case_str(enum kmod_test_case test_case) in test_case_str() argument
149 switch (test_case) { in test_case_str()
203 switch (config->test_case) { in test_kmod_put_module()
223 switch (config->test_case) { in run_request()
255 switch (config->test_case) { in tally_work_test()
430 test_case_str(config->test_case), in run_test_driver()
431 config->test_case); in run_test_driver()
447 test_case_str(config->test_case), in run_test_fs_type()
448 config->test_case); in run_test_fs_type()
[all …]
/Linux-v5.4/tools/testing/selftests/kmod/
Dkmod.sh530 test_case $TEST_ID $TEST_COUNT
561 function test_case() function
591 test_case $1 $(get_test_count $1)
596 test_case $1 $2
599 test_case $1 1
/Linux-v5.4/tools/testing/selftests/sysctl/
Dsysctl.sh846 test_case $TEST_ID $TEST_COUNT $TEST_TARGET
877 function test_case() function
909 test_case $1 $(get_test_count $1) $(get_test_target $1)
914 test_case $1 $2 $(get_test_target $1)
917 test_case $1 1 $(get_test_target $1)
/Linux-v5.4/tools/testing/selftests/networking/timestamping/
Drxtimestamp.c43 struct test_case { struct
67 static struct test_case test_cases[] = { argument
123 void print_test_case(struct test_case *t) in print_test_case()
272 bool run_test_case(struct socket_type s, struct test_case t) in run_test_case()
/Linux-v5.4/tools/testing/ktest/
Dktest.pl947 my $test_case = 0;
989 $test_case = 1;
1093 $test_case = 1;
1174 return $test_case;
1190 my $test_case;
1193 $test_case = __read_config $config, \$test_num;
1199 if (!$test_case) {