Symbol: test_case
drivers/virt/nitro_enclaves/ne_misc_dev_test.c
123
struct ne_phys_regions_test *test_case = &phys_regions_test_cases[i];
drivers/virt/nitro_enclaves/ne_misc_dev_test.c
127
test_case->paddr, test_case->size);
drivers/virt/nitro_enclaves/ne_misc_dev_test.c
128
KUNIT_EXPECT_EQ(test, rc, test_case->expect_rc);
drivers/virt/nitro_enclaves/ne_misc_dev_test.c
129
KUNIT_EXPECT_EQ(test, phys_contig_mem_regions.num, test_case->expect_num);
drivers/virt/nitro_enclaves/ne_misc_dev_test.c
131
if (test_case->expect_last_paddr == INVALID_VALUE)
drivers/virt/nitro_enclaves/ne_misc_dev_test.c
136
test_case->expect_last_paddr);
drivers/virt/nitro_enclaves/ne_misc_dev_test.c
138
test_case->expect_last_size);
fs/btrfs/tests/chunk-allocation-tests.c
265
const struct pending_extent_test_case *test_case = &find_hole_tests[i];
fs/btrfs/tests/chunk-allocation-tests.c
266
u64 hole_start = test_case->hole_start;
fs/btrfs/tests/chunk-allocation-tests.c
267
u64 hole_len = test_case->hole_len;
fs/btrfs/tests/chunk-allocation-tests.c
270
for (int j = 0; j < ARRAY_SIZE(test_case->pending_extents); j++) {
fs/btrfs/tests/chunk-allocation-tests.c
271
u64 start = test_case->pending_extents[j].start;
fs/btrfs/tests/chunk-allocation-tests.c
272
u64 len = test_case->pending_extents[j].len;
fs/btrfs/tests/chunk-allocation-tests.c
283
test_case->min_hole_size);
fs/btrfs/tests/chunk-allocation-tests.c
286
if (found != test_case->expected_found) {
fs/btrfs/tests/chunk-allocation-tests.c
288
test_case->name, test_case->expected_found, found);
fs/btrfs/tests/chunk-allocation-tests.c
292
if (hole_start != test_case->expected_start ||
fs/btrfs/tests/chunk-allocation-tests.c
293
hole_len != test_case->expected_len) {
fs/btrfs/tests/chunk-allocation-tests.c
295
test_case->name, test_case->expected_start,
fs/btrfs/tests/chunk-allocation-tests.c
296
test_case->expected_start +
fs/btrfs/tests/chunk-allocation-tests.c
297
test_case->expected_len,
fs/btrfs/tests/chunk-allocation-tests.c
411
const struct first_pending_test_case *test_case = &first_pending_tests[i];
fs/btrfs/tests/chunk-allocation-tests.c
412
u64 start = test_case->pending_extent.start;
fs/btrfs/tests/chunk-allocation-tests.c
413
u64 len = test_case->pending_extent.len;
fs/btrfs/tests/chunk-allocation-tests.c
424
found = btrfs_first_pending_extent(device, test_case->hole_start,
fs/btrfs/tests/chunk-allocation-tests.c
425
test_case->hole_len,
fs/btrfs/tests/chunk-allocation-tests.c
429
if (found != test_case->expected_found) {
fs/btrfs/tests/chunk-allocation-tests.c
431
test_case->name, test_case->expected_found, found);
fs/btrfs/tests/chunk-allocation-tests.c
438
if (pending_start != test_case->expected_pending_start ||
fs/btrfs/tests/chunk-allocation-tests.c
439
pending_end != test_case->expected_pending_end) {
fs/btrfs/tests/chunk-allocation-tests.c
441
test_case->name,
fs/btrfs/tests/chunk-allocation-tests.c
442
test_case->expected_pending_start,
fs/btrfs/tests/chunk-allocation-tests.c
443
test_case->expected_pending_end,
include/kunit/test.h
378
struct kunit_case *test_case);
include/kunit/test.h
467
#define kunit_suite_for_each_test_case(suite, test_case) \
include/kunit/test.h
468
for (test_case = suite->test_cases; test_case->run_case; test_case++)
lib/kunit/attributes.c
401
struct kunit_case *filtered, *test_case;
lib/kunit/attributes.c
411
kunit_suite_for_each_test_case(suite, test_case) { n++; }
lib/kunit/attributes.c
433
kunit_suite_for_each_test_case(suite, test_case) {
lib/kunit/attributes.c
434
test_val = filter.attr->get_attr((void *) test_case, true);
lib/kunit/attributes.c
435
test_result = filter.attr->filter(filter.attr->get_attr(test_case, true),
lib/kunit/attributes.c
457
filtered[n++] = *test_case;
lib/kunit/attributes.c
459
test_case->status = KUNIT_SKIPPED;
lib/kunit/attributes.c
460
filtered[n++] = *test_case;
lib/kunit/debugfs.c
170
struct kunit_case *test_case;
lib/kunit/debugfs.c
190
kunit_suite_for_each_test_case(suite, test_case) {
lib/kunit/debugfs.c
196
test_case->log = stream;
lib/kunit/debugfs.c
216
kunit_suite_for_each_test_case(suite, test_case) {
lib/kunit/debugfs.c
217
string_stream_destroy(test_case->log);
lib/kunit/debugfs.c
218
test_case->log = NULL;
lib/kunit/debugfs.c
224
struct kunit_case *test_case;
lib/kunit/debugfs.c
228
kunit_suite_for_each_test_case(suite, test_case)
lib/kunit/debugfs.c
229
string_stream_destroy(test_case->log);
lib/kunit/debugfs.c
68
struct kunit_case *test_case;
lib/kunit/debugfs.c
84
kunit_suite_for_each_test_case(suite, test_case)
lib/kunit/debugfs.c
85
debugfs_print_result(seq, test_case->log);
lib/kunit/executor.c
119
struct kunit_case *filtered, *test_case;
lib/kunit/executor.c
122
kunit_suite_for_each_test_case(suite, test_case) {
lib/kunit/executor.c
123
if (!test_glob || glob_match(test_glob, test_case->name))
lib/kunit/executor.c
141
kunit_suite_for_each_test_case(suite, test_case) {
lib/kunit/executor.c
142
if (!test_glob || glob_match(test_glob, test_case->name))
lib/kunit/executor.c
143
filtered[n++] = *test_case;
lib/kunit/executor.c
294
struct kunit_case *test_case;
lib/kunit/executor.c
306
kunit_suite_for_each_test_case((*suites), test_case) {
lib/kunit/executor.c
307
pr_info("%s.%s\n", (*suites)->name, test_case->name);
lib/kunit/executor.c
309
kunit_print_attr((void *)test_case, true, 0);
lib/kunit/test.c
140
struct kunit_case *test_case;
lib/kunit/test.c
143
kunit_suite_for_each_test_case(suite, test_case)
lib/kunit/test.c
214
const struct kunit_case *test_case;
lib/kunit/test.c
220
kunit_suite_for_each_test_case(suite, test_case) {
lib/kunit/test.c
221
if (test_case->status == KUNIT_FAILURE)
lib/kunit/test.c
223
else if (test_case->status == KUNIT_SUCCESS)
lib/kunit/test.c
243
struct kunit_case *test_case)
lib/kunit/test.c
249
if (tc == test_case)
lib/kunit/test.c
374
struct kunit_case *test_case,
lib/kunit/test.c
379
enum kunit_speed speed = test_case->attr.speed;
lib/kunit/test.c
409
static unsigned long kunit_test_timeout(struct kunit_suite *suite, struct kunit_case *test_case)
lib/kunit/test.c
420
if (test_case->attr.speed != KUNIT_SPEED_UNSET)
lib/kunit/test.c
421
mult = kunit_timeout_mult(test_case->attr.speed);
lib/kunit/test.c
431
struct kunit_case *test_case)
lib/kunit/test.c
448
test_case->run_case(test);
lib/kunit/test.c
452
kunit_run_case_check_speed(test, test_case, timespec64_sub(end, start));
lib/kunit/test.c
476
struct kunit_case *test_case;
lib/kunit/test.c
484
struct kunit_case *test_case = ctx->test_case;
lib/kunit/test.c
493
kunit_run_case_internal(test, suite, test_case);
lib/kunit/test.c
569
struct kunit_case *test_case,
lib/kunit/test.c
581
kunit_test_timeout(suite, test_case));
lib/kunit/test.c
584
context.test_case = test_case;
lib/kunit/test.c
592
kunit_test_timeout(suite, test_case));
lib/kunit/test.c
597
test_case->status = KUNIT_FAILURE;
lib/kunit/test.c
598
else if (test_case->status != KUNIT_FAILURE && test->status == KUNIT_SUCCESS)
lib/kunit/test.c
599
test_case->status = KUNIT_SUCCESS;
lib/kunit/test.c
670
static void kunit_init_parent_param_test(struct kunit_case *test_case, struct kunit *test)
lib/kunit/test.c
672
if (test_case->param_init) {
lib/kunit/test.c
673
int err = test_case->param_init(test);
lib/kunit/test.c
676
kunit_err(test_case, KUNIT_SUBTEST_INDENT KUNIT_SUBTEST_INDENT
lib/kunit/test.c
679
test_case->status = KUNIT_FAILURE;
lib/kunit/test.c
685
kunit_run_param_test(struct kunit_suite *suite, struct kunit_case *test_case,
lib/kunit/test.c
694
kunit_init_parent_param_test(test_case, test);
lib/kunit/test.c
695
if (test_case->status == KUNIT_FAILURE) {
lib/kunit/test.c
702
curr_param = test_case->generate_params(test, NULL, param_desc);
lib/kunit/test.c
703
test_case->status = KUNIT_SKIPPED;
lib/kunit/test.c
707
"# Subtest: %s", test_case->name);
lib/kunit/test.c
709
test_case->generate_params == kunit_array_gen_params) {
lib/kunit/test.c
721
kunit_init_test(&param_test, test_case->name, NULL);
lib/kunit/test.c
722
param_test.log = test_case->log;
lib/kunit/test.c
723
kunit_run_case_catch_errors(suite, test_case, &param_test);
lib/kunit/test.c
740
curr_param = test_case->generate_params(test, curr_param,
lib/kunit/test.c
747
if (test_case->param_exit)
lib/kunit/test.c
748
test_case->param_exit(test);
lib/kunit/test.c
754
kunit_run_one_test(struct kunit_suite *suite, struct kunit_case *test_case,
lib/kunit/test.c
761
kunit_init_test(&test, test_case->name, test_case->log);
lib/kunit/test.c
762
if (test_case->status == KUNIT_SKIPPED) {
lib/kunit/test.c
766
} else if (!test_case->generate_params) {
lib/kunit/test.c
768
test_case->status = KUNIT_SKIPPED;
lib/kunit/test.c
769
kunit_run_case_catch_errors(suite, test_case, &test);
lib/kunit/test.c
772
kunit_run_param_test(suite, test_case, &test, suite_stats,
lib/kunit/test.c
775
kunit_print_attr((void *)test_case, true, KUNIT_LEVEL_CASE);
lib/kunit/test.c
779
kunit_print_ok_not_ok(&test, KUNIT_LEVEL_CASE, test_case->status,
lib/kunit/test.c
780
kunit_test_case_num(suite, test_case),
lib/kunit/test.c
781
test_case->name,
lib/kunit/test.c
784
kunit_update_stats(suite_stats, test_case->status);
lib/kunit/test.c
791
struct kunit_case *test_case;
lib/kunit/test.c
809
kunit_suite_for_each_test_case(suite, test_case)
lib/kunit/test.c
810
kunit_run_one_test(suite, test_case, &suite_stats, &total_stats);
lib/test_kmod.c
1016
&config->test_case,
lib/test_kmod.c
1028
return test_dev_config_show_uint(test_dev, buf, config->test_case);
lib/test_kmod.c
146
static const char *test_case_str(enum kmod_test_case test_case)
lib/test_kmod.c
148
switch (test_case) {
lib/test_kmod.c
202
switch (config->test_case) {
lib/test_kmod.c
222
switch (config->test_case) {
lib/test_kmod.c
254
switch (config->test_case) {
lib/test_kmod.c
429
test_case_str(config->test_case),
lib/test_kmod.c
430
config->test_case);
lib/test_kmod.c
446
test_case_str(config->test_case),
lib/test_kmod.c
447
config->test_case);
lib/test_kmod.c
478
test_case_str(config->test_case),
lib/test_kmod.c
479
config->test_case);
lib/test_kmod.c
513
switch (config->test_case) {
lib/test_kmod.c
526
config->test_case);
lib/test_kmod.c
735
enum kmod_test_case test_case)
lib/test_kmod.c
741
switch (test_case) {
lib/test_kmod.c
755
config->test_case = test_case;
lib/test_kmod.c
82
enum kmod_test_case test_case;
lib/test_kmod.c
824
config->test_case = TEST_START_TEST_CASE;
net/mptcp/crypto_test.c
15
static struct test_case tests[] = {
samples/bpf/map_perf_test.bpf.c
188
u16 test_case;
samples/bpf/map_perf_test.bpf.c
205
test_case = test_params.tcase;
samples/bpf/map_perf_test.bpf.c
206
if (test_case != 3)
samples/bpf/map_perf_test.bpf.c
209
if (test_case == 0) {
samples/bpf/map_perf_test.bpf.c
211
} else if (test_case == 1) {
samples/bpf/map_perf_test.bpf.c
214
} else if (test_case == 2) {
samples/bpf/map_perf_test.bpf.c
227
} else if (test_case == 3) {
samples/bpf/test_map_in_map.bpf.c
109
u16 test_case, port, dst6[8];
samples/bpf/test_map_in_map.bpf.c
127
test_case = dst6[7];
samples/bpf/test_map_in_map.bpf.c
138
if (test_case == 0) {
samples/bpf/test_map_in_map.bpf.c
140
} else if (test_case == 1) {
samples/bpf/test_map_in_map.bpf.c
142
} else if (test_case == 2) {
samples/bpf/test_map_in_map.bpf.c
159
if (test_case == 0 || test_case == 1)
tools/perf/arch/x86/tests/arch-tests.c
10
static struct test_case intel_pt_tests[] = {
tools/perf/arch/x86/tests/arch-tests.c
26
static struct test_case hybrid_tests[] = {
tools/perf/tests/builtin-test.c
243
static const char *skip_reason(const struct test_suite *t, int test_case)
tools/perf/tests/builtin-test.c
248
return t->test_cases[test_case >= 0 ? test_case : 0].skip_reason;
tools/perf/tests/builtin-test.c
251
static const char *test_description(const struct test_suite *t, int test_case)
tools/perf/tests/builtin-test.c
253
if (t->test_cases && test_case >= 0)
tools/perf/tests/builtin-test.c
254
return t->test_cases[test_case].desc;
tools/perf/tests/builtin-test.c
259
static test_fnptr test_function(const struct test_suite *t, int test_case)
tools/perf/tests/builtin-test.c
261
if (test_case <= 0)
tools/perf/tests/builtin-test.c
264
return t->test_cases[test_case].run_case;
tools/perf/tests/builtin-test.c
267
static bool test_exclusive(const struct test_suite *t, int test_case)
tools/perf/tests/builtin-test.c
269
if (test_case <= 0)
tools/perf/tests/builtin-test.c
272
return t->test_cases[test_case].exclusive;
tools/perf/tests/cpumap.c
282
static struct test_case tests__cpu_map[] = {
tools/perf/tests/dso-data.c
397
static struct test_case tests__dso_data[] = {
tools/perf/tests/evsel-tp-sched.c
92
static struct test_case tests__perf_evsel__tp_sched_test[] = {
tools/perf/tests/hwmon_pmu.c
347
static struct test_case tests__hwmon_pmu[] = {
tools/perf/tests/maps.c
236
static struct test_case tests__maps[] = {
tools/perf/tests/mmap-basic.c
399
static struct test_case tests__basic_mmap[] = {
tools/perf/tests/openat-syscall-all-cpus.c
128
static struct test_case tests__openat_syscall_event_on_all_cpus[] = {
tools/perf/tests/openat-syscall-tp-fields.c
150
static struct test_case tests__syscall_openat_tp_fields[] = {
tools/perf/tests/openat-syscall.c
74
static struct test_case tests__openat_syscall_event[] = {
tools/perf/tests/parse-events.c
2926
static struct test_case tests__parse_events[] = {
tools/perf/tests/perf-record.c
361
static struct test_case tests__PERF_RECORD[] = {
tools/perf/tests/perf-time-to-tsc.c
210
static struct test_case time_to_tsc_tests[] = {
tools/perf/tests/pfm.c
186
static struct test_case pfm_tests[] = {
tools/perf/tests/pmu-events.c
1042
static struct test_case pmu_events_tests[] = {
tools/perf/tests/pmu.c
625
static struct test_case tests__pmu[] = {
tools/perf/tests/subcmd-help.c
123
static struct test_case tests__subcmd_help[] = {
tools/perf/tests/task-exit.c
154
struct test_case tests__task_exit[] = {
tools/perf/tests/tests-scripts.c
176
struct test_case *tests;
tools/perf/tests/tests.h
45
struct test_case *test_cases;
tools/perf/tests/tests.h
85
struct test_case tests__##_name[] = { \
tools/perf/tests/tests.h
95
struct test_case tests__##_name[] = { \
tools/perf/tests/tool_pmu.c
102
static struct test_case tests__tool_pmu[] = {
tools/perf/tests/wp.c
203
static struct test_case wp_tests[] = {
tools/testing/selftests/bpf/prog_tests/core_extern.c
131
struct test_case *t = &test_cases[i];
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1004
struct core_reloc_test_case *test_case, test_case_copy;
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1021
test_case = &test_case_copy;
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1023
if (!test__start_subtest(test_case->case_name))
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1026
if (test_case->needs_testmod && !env.has_testmod) {
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1034
if (!test_case->btf_src_file || test_case->run_btfgen_fails) {
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1043
err = run_btfgen(test_case->btf_src_file, btf_file,
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1044
test_case->bpf_obj_file);
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1048
test_case->btf_src_file = btf_file;
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1051
if (test_case->setup) {
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1052
err = test_case->setup(test_case);
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1057
if (test_case->btf_src_file) {
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1058
err = access(test_case->btf_src_file, R_OK);
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1063
open_opts.btf_custom_path = test_case->btf_src_file;
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1064
obj = bpf_object__open_file(test_case->bpf_obj_file, &open_opts);
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1068
probe_name = test_case->prog_name;
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1069
tp_name = test_case->raw_tp_name; /* NULL for tp_btf */
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1077
if (!test_case->fails)
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1096
if (test_case->input_len)
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1097
memcpy(data->in, test_case->input, test_case->input_len);
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1105
if (test_case->trigger) {
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1106
if (!ASSERT_OK(test_case->trigger(test_case), "test_trigger"))
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1117
if (!ASSERT_FALSE(test_case->fails, "obj_load_should_fail"))
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1120
equal = memcmp(data->out, test_case->output,
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1121
test_case->output_len) == 0;
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1126
for (j = 0; j < test_case->input_len; j++) {
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1128
j, test_case->input[j]);
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1130
for (j = 0; j < test_case->output_len; j++) {
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1132
j, test_case->output[j], data->out[j]);
tools/testing/selftests/bpf/prog_tests/core_reloc.c
1143
remove(test_case->btf_src_file);
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
67
static struct test_case test_cases[] = {
tools/testing/selftests/bpf/prog_tests/ctx_rewrite.c
707
static void run_one_testcase(struct btf *btf, struct test_case *test)
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
185
static int drop_ack(struct migrate_reuseport_test_case *test_case,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
188
if (test_case->family == AF_INET)
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
190
&test_case->addr)->sin_port;
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
193
&test_case->addr)->sin6_port;
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
195
test_case->link = bpf_program__attach_xdp(skel->progs.drop_ack,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
197
if (!ASSERT_OK_PTR(test_case->link, "bpf_program__attach_xdp"))
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
203
static int pass_ack(struct migrate_reuseport_test_case *test_case)
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
207
err = bpf_link__destroy(test_case->link);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
211
test_case->link = NULL;
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
216
static int start_servers(struct migrate_reuseport_test_case *test_case,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
223
make_sockaddr(test_case->family,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
224
test_case->family == AF_INET ? "127.0.0.1" : "::1", 0,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
225
&test_case->addr, &test_case->addrlen);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
228
test_case->servers[i] = socket(test_case->family, SOCK_STREAM,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
230
if (!ASSERT_NEQ(test_case->servers[i], -1, "socket"))
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
233
err = setsockopt(test_case->servers[i], SOL_SOCKET,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
238
err = bind(test_case->servers[i],
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
239
(struct sockaddr *)&test_case->addr,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
240
test_case->addrlen);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
245
err = setsockopt(test_case->servers[i], SOL_SOCKET,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
252
err = getsockname(test_case->servers[i],
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
253
(struct sockaddr *)&test_case->addr,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
254
&test_case->addrlen);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
259
if (test_case->fastopen) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
260
err = setsockopt(test_case->servers[i],
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
269
err = listen(test_case->servers[i], qlen);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
278
static int start_clients(struct migrate_reuseport_test_case *test_case)
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
284
test_case->clients[i] = socket(test_case->family, SOCK_STREAM,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
286
if (!ASSERT_NEQ(test_case->clients[i], -1, "socket"))
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
292
err = settimeo(test_case->clients[i], 100);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
296
if (test_case->fastopen) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
299
err = setsockopt(test_case->clients[i], IPPROTO_TCP,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
307
err = connect(test_case->clients[i],
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
308
(struct sockaddr *)&test_case->addr,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
309
test_case->addrlen);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
313
err = write(test_case->clients[i], buf, MSGLEN);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
321
static int update_maps(struct migrate_reuseport_test_case *test_case,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
332
value = (__u64)test_case->servers[i];
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
351
static int migrate_dance(struct migrate_reuseport_test_case *test_case)
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
359
err = shutdown(test_case->servers[i], SHUT_RDWR);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
365
if (test_case->state == BPF_TCP_NEW_SYN_RECV)
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
381
err = listen(test_case->servers[1], QLEN);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
390
err = shutdown(test_case->servers[MIGRATED_TO], SHUT_RDWR);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
395
err = listen(test_case->servers[MIGRATED_TO], QLEN);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
400
err = shutdown(test_case->servers[1], SHUT_RDWR);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
407
static void count_requests(struct migrate_reuseport_test_case *test_case,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
415
err = settimeo(test_case->servers[MIGRATED_TO], 4000);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
420
client = accept(test_case->servers[MIGRATED_TO],
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
436
switch (test_case->state) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
444
if (test_case->expire_synack_timer)
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
456
static void run_test(struct migrate_reuseport_test_case *test_case,
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
467
init_fds(test_case->servers, NR_SERVERS);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
468
init_fds(test_case->clients, NR_CLIENTS);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
470
if (test_case->fastopen) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
478
err = start_servers(test_case, skel);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
482
if (test_case->drop_ack) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
486
err = drop_ack(test_case, skel);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
492
err = start_clients(test_case);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
496
err = listen(test_case->servers[MIGRATED_TO], QLEN);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
500
err = update_maps(test_case, skel);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
507
err = migrate_dance(test_case);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
511
if (test_case->expire_synack_timer) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
518
if (test_case->link) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
520
err = pass_ack(test_case);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
525
count_requests(test_case, skel);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
528
close_fds(test_case->clients, NR_CLIENTS);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
530
if (test_case->link) {
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
531
err = pass_ack(test_case);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
536
close_fds(test_case->servers, NR_SERVERS);
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
538
if (test_case->fastopen) {
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
104
sk = socket(AF_INET, test_case->type, 0);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
113
static long tcp_get_memory_allocated(struct test_case *test_case, struct sk_bypass_prot_mem *skel)
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
115
return get_memory_allocated(test_case,
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
120
static long udp_get_memory_allocated(struct test_case *test_case, struct sk_bypass_prot_mem *skel)
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
122
return get_memory_allocated(test_case,
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
127
static int check_bypass(struct test_case *test_case,
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
138
err = test_case->create_sockets(test_case, sk, ARRAY_SIZE(sk));
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
142
memory_allocated[0] = test_case->get_memory_allocated(test_case, skel);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
160
memory_allocated[1] = test_case->get_memory_allocated(test_case, skel);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
168
if (test_case->type == SOCK_DGRAM) {
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
197
static void run_test(struct test_case *test_case)
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
225
err = check_bypass(test_case, skel, false);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
23
int (*create_sockets)(struct test_case *test_case, int sk[], int len);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
233
err = check_bypass(test_case, skel, true);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
24
long (*get_memory_allocated)(struct test_case *test_case, struct sk_bypass_prot_mem *skel);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
245
err = check_bypass(test_case, skel, true);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
258
static struct test_case test_cases[] = {
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
27
static int tcp_create_sockets(struct test_case *test_case, int sk[], int len)
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
31
server = start_server(test_case->family, test_case->type, NULL, 0, 0);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
57
static int udp_create_sockets(struct test_case *test_case, int sk[], int len)
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
63
sk[i] = start_server(test_case->family, test_case->type, NULL, 0, 0);
tools/testing/selftests/bpf/prog_tests/sk_bypass_prot_mem.c
93
static long get_memory_allocated(struct test_case *test_case,
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
615
static struct test_case resume_tests[] = {
tools/testing/selftests/bpf/prog_tests/sock_iter_batch.c
775
static void do_resume_test(struct test_case *tc)
tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
92
static void create_connection(struct test_tcp_custom_syncookie_case *test_case)
tools/testing/selftests/bpf/prog_tests/tcp_custom_syncookie.c
96
server = start_server(test_case->family, test_case->type, test_case->addr, 0, 0);
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
726
struct bond_test_case *test_case = &bond_test_cases[i];
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
728
if (test__start_subtest(test_case->name))
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
731
test_case->mode,
tools/testing/selftests/bpf/prog_tests/xdp_bonding.c
732
test_case->xmit_policy);
tools/testing/selftests/kvm/system_counter_offset_test.c
23
static struct test_case test_cases[] = {
tools/testing/selftests/kvm/system_counter_offset_test.c
36
static void setup_system_counter(struct kvm_vcpu *vcpu, struct test_case *test)
tools/testing/selftests/kvm/system_counter_offset_test.c
42
static uint64_t guest_read_system_counter(struct test_case *test)
tools/testing/selftests/kvm/system_counter_offset_test.c
47
static uint64_t host_read_guest_system_counter(struct test_case *test)
tools/testing/selftests/kvm/system_counter_offset_test.c
66
struct test_case *test = &test_cases[i];
tools/testing/selftests/kvm/system_counter_offset_test.c
96
struct test_case *test = &test_cases[i];
tools/testing/selftests/kvm/x86/kvm_clock_test.c
24
static struct test_case test_cases[] = {
tools/testing/selftests/kvm/x86/kvm_clock_test.c
77
static void setup_clock(struct kvm_vm *vm, struct test_case *test_case)
tools/testing/selftests/kvm/x86/kvm_clock_test.c
83
data.clock = test_case->kvmclock_base;
tools/testing/selftests/kvm/x86/kvm_clock_test.c
84
if (test_case->realtime_offset) {
tools/testing/selftests/kvm/x86/kvm_clock_test.c
99
data.realtime += test_case->realtime_offset;
tools/testing/selftests/mm/cow.c
1098
static const struct test_case anon_test_cases[] = {
tools/testing/selftests/mm/cow.c
1216
static void run_anon_test_case(struct test_case const *test_case)
tools/testing/selftests/mm/cow.c
1220
run_with_base_page(test_case->fn, test_case->desc);
tools/testing/selftests/mm/cow.c
1221
run_with_base_page_swap(test_case->fn, test_case->desc);
tools/testing/selftests/mm/cow.c
1231
run_with_thp(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1232
run_with_thp_swap(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1235
run_with_pte_mapped_thp(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1236
run_with_pte_mapped_thp_swap(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1237
run_with_single_pte_of_thp(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1238
run_with_single_pte_of_thp_swap(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1239
run_with_partial_mremap_thp(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1240
run_with_partial_shared_thp(test_case->fn, test_case->desc, size);
tools/testing/selftests/mm/cow.c
1245
run_with_hugetlb(test_case->fn, test_case->desc,
tools/testing/selftests/mm/cow.c
1452
static const struct test_case anon_thp_test_cases[] = {
tools/testing/selftests/mm/cow.c
1498
struct test_case const *test_case = &anon_thp_test_cases[i];
tools/testing/selftests/mm/cow.c
1500
log_test_start("%s", test_case->desc);
tools/testing/selftests/mm/cow.c
1501
do_run_with_thp(test_case->fn, THP_RUN_PMD, pmdsize);
tools/testing/selftests/mm/cow.c
1845
static void run_non_anon_test_case(struct non_anon_test_case const *test_case)
tools/testing/selftests/mm/cow.c
1849
run_with_zeropage(test_case->fn, test_case->desc);
tools/testing/selftests/mm/cow.c
1850
run_with_memfd(test_case->fn, test_case->desc);
tools/testing/selftests/mm/cow.c
1851
run_with_tmpfile(test_case->fn, test_case->desc);
tools/testing/selftests/mm/cow.c
1853
run_with_huge_zeropage(test_case->fn, test_case->desc);
tools/testing/selftests/mm/cow.c
1855
run_with_memfd_hugetlb(test_case->fn, test_case->desc,
tools/testing/selftests/mm/gup_longterm.c
445
static const struct test_case test_cases[] = {
tools/testing/selftests/mm/gup_longterm.c
490
static void run_test_case(struct test_case const *test_case)
tools/testing/selftests/mm/gup_longterm.c
494
run_with_memfd(test_case->fn, test_case->desc);
tools/testing/selftests/mm/gup_longterm.c
495
run_with_tmpfile(test_case->fn, test_case->desc);
tools/testing/selftests/mm/gup_longterm.c
496
run_with_local_tmpfile(test_case->fn, test_case->desc);
tools/testing/selftests/mm/gup_longterm.c
498
run_with_memfd_hugetlb(test_case->fn, test_case->desc,
tools/testing/selftests/mm/mremap_test.c
1248
static void run_mremap_test_case(struct test test_case, int *failures,
tools/testing/selftests/mm/mremap_test.c
1252
long long remap_time = remap_region(test_case.config, threshold_mb,
tools/testing/selftests/mm/mremap_test.c
1256
if (test_case.expect_failure)
tools/testing/selftests/mm/mremap_test.c
1258
test_case.name);
tools/testing/selftests/mm/mremap_test.c
1260
ksft_test_result_fail("%s\n", test_case.name);
tools/testing/selftests/mm/mremap_test.c
1269
test_case.config.region_size <= threshold_mb * _1MB)
tools/testing/selftests/mm/mremap_test.c
1271
test_case.name, remap_time);
tools/testing/selftests/mm/mremap_test.c
1273
ksft_test_result_pass("%s\n", test_case.name);
tools/testing/selftests/net/rxtimestamp.c
146
void print_test_case(struct test_case *t)
tools/testing/selftests/net/rxtimestamp.c
70
static struct test_case test_cases[] = {
tools/testing/vsock/util.c
472
void run_tests(const struct test_case *test_cases,
tools/testing/vsock/util.c
532
void list_tests(const struct test_case *test_cases)
tools/testing/vsock/util.c
565
void skip_test(struct test_case *test_cases, size_t test_cases_len,
tools/testing/vsock/util.c
572
void pick_test(struct test_case *test_cases, size_t test_cases_len,
tools/testing/vsock/util.h
100
void skip_test(struct test_case *test_cases, size_t test_cases_len,
tools/testing/vsock/util.h
102
void pick_test(struct test_case *test_cases, size_t test_cases_len,
tools/testing/vsock/util.h
97
void run_tests(const struct test_case *test_cases,
tools/testing/vsock/util.h
99
void list_tests(const struct test_case *test_cases);
tools/testing/vsock/vsock_diag_test.c
427
static struct test_case test_cases[] = {
tools/testing/vsock/vsock_test.c
2329
static struct test_case test_cases[] = {
tools/testing/vsock/vsock_uring_test.c
214
static struct test_case test_cases[] = {