Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 1204) sorted by relevance

12345678910>>...49

/linux-5.19.10/include/kunit/
Dtest.h99 void (*run_case)(struct kunit *test);
174 int (*init)(struct kunit *test);
175 void (*exit)(struct kunit *test);
226 static inline void kunit_set_failure(struct kunit *test) in kunit_set_failure() argument
228 WRITE_ONCE(test->status, KUNIT_FAILURE); in kunit_set_failure()
231 void kunit_init_test(struct kunit *test, const char *name, char *log);
360 void *kunit_kmalloc_array(struct kunit *test, size_t n, size_t size, gfp_t gfp);
370 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kmalloc() argument
372 return kunit_kmalloc_array(test, 1, size, gfp); in kunit_kmalloc()
380 void kunit_kfree(struct kunit *test, const void *ptr);
[all …]
/linux-5.19.10/lib/kunit/
Dkunit-test.c19 struct kunit *test = data; in kunit_test_successful_try() local
20 struct kunit_try_catch_test_context *ctx = test->priv; in kunit_test_successful_try()
27 struct kunit *test = data; in kunit_test_no_catch() local
29 KUNIT_FAIL(test, "Catch should not be called\n"); in kunit_test_no_catch()
32 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch() argument
34 struct kunit_try_catch_test_context *ctx = test->priv; in kunit_test_try_catch_successful_try_no_catch()
38 test, in kunit_test_try_catch_successful_try_no_catch()
41 kunit_try_catch_run(try_catch, test); in kunit_test_try_catch_successful_try_no_catch()
43 KUNIT_EXPECT_TRUE(test, ctx->function_called); in kunit_test_try_catch_successful_try_no_catch()
48 struct kunit *test = data; in kunit_test_unsuccessful_try() local
[all …]
Dkunit-example-test.c21 static void example_simple_test(struct kunit *test) in example_simple_test() argument
29 KUNIT_EXPECT_EQ(test, 1 + 1, 2); in example_simple_test()
36 static int example_test_init(struct kunit *test) in example_test_init() argument
38 kunit_info(test, "initializing\n"); in example_test_init()
57 static void example_skip_test(struct kunit *test) in example_skip_test() argument
60 kunit_info(test, "You should not see a line below."); in example_skip_test()
63 kunit_skip(test, "this test should be skipped"); in example_skip_test()
66 KUNIT_FAIL(test, "You should not see this line."); in example_skip_test()
72 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test() argument
75 kunit_info(test, "You should see a line below."); in example_mark_skipped_test()
[all …]
Dexecutor_test.c11 static void kfree_at_end(struct kunit *test, const void *to_free);
12 static void free_subsuite_at_end(struct kunit *test,
14 static struct kunit_suite *alloc_fake_suite(struct kunit *test,
18 static void dummy_test(struct kunit *test) {} in dummy_test() argument
27 static void parse_filter_test(struct kunit *test) in parse_filter_test() argument
32 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test()
33 KUNIT_EXPECT_FALSE(test, filter.test_glob); in parse_filter_test()
38 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite"); in parse_filter_test()
39 KUNIT_EXPECT_STREQ(test, filter.test_glob, "test"); in parse_filter_test()
44 static void filter_subsuite_test(struct kunit *test) in filter_subsuite_test() argument
[all …]
Dtest.c84 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats() argument
90 kunit_log(KERN_INFO, test, in kunit_print_test_stats()
93 test->name, in kunit_print_test_stats()
153 struct kunit *test = is_test ? test_or_suite : NULL; in kunit_print_ok_not_ok() local
170 kunit_log(KERN_INFO, test, in kunit_print_ok_not_ok()
223 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream() argument
234 kunit_err(test, in kunit_print_string_stream()
237 kunit_err(test, "%s", fragment->fragment); in kunit_print_string_stream()
239 kunit_err(test, "\n"); in kunit_print_string_stream()
241 kunit_err(test, "%s", buf); in kunit_print_string_stream()
[all …]
/linux-5.19.10/drivers/base/test/
Dproperty-entry-test.c10 static void pe_test_uints(struct kunit *test) in pe_test_uints() argument
28 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in pe_test_uints()
31 KUNIT_EXPECT_EQ(test, error, 1); in pe_test_uints()
34 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
35 KUNIT_EXPECT_EQ(test, val_u8, 8); in pe_test_uints()
38 KUNIT_EXPECT_EQ(test, error, 0); in pe_test_uints()
39 KUNIT_EXPECT_EQ(test, array_u8[0], 8); in pe_test_uints()
42 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints()
45 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints()
48 KUNIT_EXPECT_NE(test, error, 0); in pe_test_uints()
[all …]
/linux-5.19.10/lib/
Dtest_kasan.c49 static int kasan_test_init(struct kunit *test) in kasan_test_init() argument
52 kunit_err(test, "can't run KASAN tests with KASAN disabled"); in kasan_test_init()
59 kunit_add_named_resource(test, NULL, NULL, &resource, in kasan_test_init()
64 static void kasan_test_exit(struct kunit *test) in kasan_test_exit() argument
67 KUNIT_EXPECT_FALSE(test, test_status.report_found); in kasan_test_exit()
91 #define KUNIT_EXPECT_KASAN_FAIL(test, expression) do { \ argument
95 KUNIT_EXPECT_FALSE(test, READ_ONCE(test_status.report_found)); \
102 KUNIT_FAIL(test, KUNIT_SUBTEST_INDENT "KASAN failure " \
116 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument
118 kunit_skip((test), "Test requires " #config "=y"); \
[all …]
Dlist-test.c17 static void list_test_list_init(struct kunit *test) in list_test_list_init() argument
36 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list1)); in list_test_list_init()
37 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list2)); in list_test_list_init()
38 KUNIT_EXPECT_TRUE(test, list_empty_careful(&list3)); in list_test_list_init()
39 KUNIT_EXPECT_TRUE(test, list_empty_careful(list4)); in list_test_list_init()
40 KUNIT_EXPECT_TRUE(test, list_empty_careful(list5)); in list_test_list_init()
46 static void list_test_list_add(struct kunit *test) in list_test_list_add() argument
55 KUNIT_EXPECT_PTR_EQ(test, list.next, &b); in list_test_list_add()
56 KUNIT_EXPECT_PTR_EQ(test, b.prev, &list); in list_test_list_add()
57 KUNIT_EXPECT_PTR_EQ(test, b.next, &a); in list_test_list_add()
[all …]
Dtest_printf.c136 #define test(expect, fmt, ...) \ macro
145 test("", &nul); in test_basic()
146 test("100%", "100%%"); in test_basic()
147 test("xxx%yyy", "xxx%cyyy", '%'); in test_basic()
154 test("0x1234abcd ", "%#-12x", 0x1234abcd); in test_number()
155 test(" 0x1234abcd", "%#12x", 0x1234abcd); in test_number()
156test("0|001| 12|+123| 1234|-123|-1234", "%d|%03d|%3d|%+d|% d|%+d|% d", 0, 1, 12, 123, 1234, -123, … in test_number()
157 test("0|1|1|128|255", "%hhu|%hhu|%hhu|%hhu|%hhu", 0, 1, 257, 128, -1); in test_number()
158 test("0|1|1|-128|-1", "%hhd|%hhd|%hhd|%hhd|%hhd", 0, 1, 257, 128, -1); in test_number()
159 test("2015122420151225", "%ho%ho%#ho", 1037, 5282, -11627); in test_number()
[all …]
Dcrc32test.c558 } const test[] __initconst = variable
678 bytes += test[i].length; in crc32c_test()
680 crc ^= __crc32c_le(test[i].crc, test_buf + in crc32c_test()
681 test[i].start, test[i].length); in crc32c_test()
689 if (test[i].crc32c_le != __crc32c_le(test[i].crc, test_buf + in crc32c_test()
690 test[i].start, test[i].length)) in crc32c_test()
717 crc_full = __crc32c_le(test[i].crc, test_buf + test[i].start, in crc32c_combine_test()
718 test[i].length); in crc32c_combine_test()
719 for (j = 0; j <= test[i].length; ++j) { in crc32c_combine_test()
721 u32 len1 = j, len2 = test[i].length - j; in crc32c_combine_test()
[all …]
/linux-5.19.10/tools/pci/
Dpcitest.c41 static int run_test(struct pci_test *test) in run_test() argument
47 fd = open(test->device, O_RDWR); in run_test()
53 if (test->barnum >= 0 && test->barnum <= 5) { in run_test()
54 ret = ioctl(fd, PCITEST_BAR, test->barnum); in run_test()
55 fprintf(stdout, "BAR%d:\t\t", test->barnum); in run_test()
62 if (test->set_irqtype) { in run_test()
63 ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype); in run_test()
64 fprintf(stdout, "SET IRQ TYPE TO %s:\t\t", irq[test->irqtype]); in run_test()
71 if (test->get_irqtype) { in run_test()
80 if (test->clear_irq) { in run_test()
[all …]
/linux-5.19.10/drivers/clk/
Dclk_test.c111 static int clk_test_init_with_ops(struct kunit *test, const struct clk_ops *ops) in clk_test_init_with_ops() argument
117 ctx = kunit_kzalloc(test, sizeof(*ctx), GFP_KERNEL); in clk_test_init_with_ops()
121 test->priv = ctx; in clk_test_init_with_ops()
134 static int clk_test_init(struct kunit *test) in clk_test_init() argument
136 return clk_test_init_with_ops(test, &clk_dummy_rate_ops); in clk_test_init()
139 static int clk_maximize_test_init(struct kunit *test) in clk_maximize_test_init() argument
141 return clk_test_init_with_ops(test, &clk_dummy_maximize_rate_ops); in clk_maximize_test_init()
144 static int clk_minimize_test_init(struct kunit *test) in clk_minimize_test_init() argument
146 return clk_test_init_with_ops(test, &clk_dummy_minimize_rate_ops); in clk_minimize_test_init()
149 static void clk_test_exit(struct kunit *test) in clk_test_exit() argument
[all …]
Dclk-gate_test.c11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev() argument
17 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); in clk_gate_register_test_dev()
21 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_dev()
22 KUNIT_EXPECT_STREQ(test, "test_gate", clk_hw_get_name(ret)); in clk_gate_register_test_dev()
23 KUNIT_EXPECT_EQ(test, 0UL, clk_hw_get_flags(ret)); in clk_gate_register_test_dev()
29 static void clk_gate_register_test_parent_names(struct kunit *test) in clk_gate_register_test_parent_names() argument
36 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_names()
40 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ret); in clk_gate_register_test_parent_names()
41 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_names()
47 static void clk_gate_register_test_parent_data(struct kunit *test) in clk_gate_register_test_parent_data() argument
[all …]
/linux-5.19.10/drivers/thunderbolt/
Dtest.c31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init() argument
33 kunit_alloc_resource(test, __ida_init, __ida_destroy, GFP_KERNEL, ida); in kunit_ida_init()
36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch() argument
43 sw = kunit_kzalloc(test, sizeof(*sw), GFP_KERNEL); in alloc_switch()
55 sw->ports = kunit_kzalloc(test, size, GFP_KERNEL); in alloc_switch()
64 kunit_ida_init(test, &sw->ports[i].in_hopids); in alloc_switch()
65 kunit_ida_init(test, &sw->ports[i].out_hopids); in alloc_switch()
72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host() argument
76 sw = alloc_switch(test, 0, 7, 13); in alloc_host()
154 static struct tb_switch *alloc_host_usb4(struct kunit *test) in alloc_host_usb4() argument
[all …]
/linux-5.19.10/security/apparmor/
Dpolicy_unpack_test.c52 struct kunit *test, size_t buf_size) in build_aa_ext_struct() argument
57 buf = kunit_kzalloc(test, buf_size, GFP_USER); in build_aa_ext_struct()
58 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, buf); in build_aa_ext_struct()
60 e = kunit_kmalloc(test, sizeof(*e), GFP_USER); in build_aa_ext_struct()
61 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, e); in build_aa_ext_struct()
109 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init() argument
114 puf = kunit_kmalloc(test, sizeof(*puf), GFP_USER); in policy_unpack_test_init()
115 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, puf); in policy_unpack_test_init()
118 puf->e = build_aa_ext_struct(puf, test, e_size); in policy_unpack_test_init()
120 test->priv = puf; in policy_unpack_test_init()
[all …]
/linux-5.19.10/drivers/misc/
Dpci_endpoint_test.c128 static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, in pci_endpoint_test_readl() argument
131 return readl(test->base + offset); in pci_endpoint_test_readl()
134 static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test, in pci_endpoint_test_writel() argument
137 writel(value, test->base + offset); in pci_endpoint_test_writel()
140 static inline u32 pci_endpoint_test_bar_readl(struct pci_endpoint_test *test, in pci_endpoint_test_bar_readl() argument
143 return readl(test->bar[bar] + offset); in pci_endpoint_test_bar_readl()
146 static inline void pci_endpoint_test_bar_writel(struct pci_endpoint_test *test, in pci_endpoint_test_bar_writel() argument
149 writel(value, test->bar[bar] + offset); in pci_endpoint_test_bar_writel()
154 struct pci_endpoint_test *test = dev_id; in pci_endpoint_test_irqhandler() local
157 reg = pci_endpoint_test_readl(test, PCI_ENDPOINT_TEST_STATUS); in pci_endpoint_test_irqhandler()
[all …]
/linux-5.19.10/drivers/mmc/host/
Dsdhci-of-aspeed-test.c6 static void aspeed_sdhci_phase_ddr52(struct kunit *test) in aspeed_sdhci_phase_ddr52() argument
10 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52()
12 KUNIT_EXPECT_EQ(test, 0, in aspeed_sdhci_phase_ddr52()
14 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52()
16 KUNIT_EXPECT_EQ(test, 1, in aspeed_sdhci_phase_ddr52()
18 KUNIT_EXPECT_EQ(test, 2, in aspeed_sdhci_phase_ddr52()
20 KUNIT_EXPECT_EQ(test, 3, in aspeed_sdhci_phase_ddr52()
22 KUNIT_EXPECT_EQ(test, 14, in aspeed_sdhci_phase_ddr52()
24 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52()
26 KUNIT_EXPECT_EQ(test, 15, in aspeed_sdhci_phase_ddr52()
[all …]
/linux-5.19.10/drivers/mmc/core/
Dmmc_test.c178 static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) in mmc_test_set_blksize() argument
180 return mmc_set_blocklen(test->card, size); in mmc_test_set_blksize()
189 static void mmc_test_prepare_sbc(struct mmc_test_card *test, in mmc_test_prepare_sbc() argument
192 struct mmc_card *card = test->card; in mmc_test_prepare_sbc()
209 static void mmc_test_prepare_mrq(struct mmc_test_card *test, in mmc_test_prepare_mrq() argument
225 if (!mmc_card_blockaddr(test->card)) in mmc_test_prepare_mrq()
244 mmc_test_prepare_sbc(test, mrq, blocks); in mmc_test_prepare_mrq()
246 mmc_set_data_timeout(mrq->data, test->card); in mmc_test_prepare_mrq()
258 static int mmc_test_wait_busy(struct mmc_test_card *test) in mmc_test_wait_busy() argument
268 cmd.arg = test->card->rca << 16; in mmc_test_wait_busy()
[all …]
/linux-5.19.10/tools/testing/scatterlist/
Dmain.c8 struct test { struct
30 static void fail(struct test *test, struct sg_table *st, const char *cond) in fail() argument
37 test->size, test->max_seg, test->expected_segments, st->nents, in fail()
40 printf("%u input PFNs:", test->num_pages); in fail()
41 for (i = 0; i < test->num_pages; i++) in fail()
42 printf(" %x", test->pfn[i]); in fail()
48 #define VALIDATE(cond, st, test) \ argument
50 fail((test), (st), #cond);
55 struct test *test, tests[] = { in main() local
86 for (i = 0, test = tests; test->expected_segments; test++, i++) { in main()
[all …]
/linux-5.19.10/net/mptcp/
Dtoken_test.c6 static struct mptcp_subflow_request_sock *build_req_sock(struct kunit *test) in build_req_sock() argument
10 req = kunit_kzalloc(test, sizeof(struct mptcp_subflow_request_sock), in build_req_sock()
12 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, req); in build_req_sock()
18 static void mptcp_token_test_req_basic(struct kunit *test) in mptcp_token_test_req_basic() argument
20 struct mptcp_subflow_request_sock *req = build_req_sock(test); in mptcp_token_test_req_basic()
23 KUNIT_ASSERT_EQ(test, 0, in mptcp_token_test_req_basic()
25 KUNIT_EXPECT_NE(test, 0, (int)req->token); in mptcp_token_test_req_basic()
26 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, req->token)); in mptcp_token_test_req_basic()
32 static struct inet_connection_sock *build_icsk(struct kunit *test) in build_icsk() argument
36 icsk = kunit_kzalloc(test, sizeof(struct inet_connection_sock), in build_icsk()
[all …]
/linux-5.19.10/tools/testing/kunit/
Dkunit_parser.py256 version_type: str, test: Test) -> None:
270 test.add_error(f'{version_type} version lower than expected!')
272 test.add_error(f'{version_type} version higer than expected!')
274 def parse_ktap_header(lines: LineStream, test: Test) -> bool:
294 check_version(version_num, KTAP_VERSIONS, 'KTAP', test)
297 check_version(version_num, TAP_VERSIONS, 'TAP', test)
300 test.log.append(lines.pop())
305 def parse_test_header(lines: LineStream, test: Test) -> bool:
323 test.log.append(lines.pop())
324 test.name = match.group(1)
[all …]
/linux-5.19.10/kernel/
Dsysctl-test.c19 static void sysctl_test_api_dointvec_null_tbl_data(struct kunit *test) in sysctl_test_api_dointvec_null_tbl_data() argument
39 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_null_tbl_data()
49 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
52 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_null_tbl_data()
58 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table, in sysctl_test_api_dointvec_null_tbl_data()
61 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_null_tbl_data()
69 static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test) in sysctl_test_api_dointvec_table_maxlen_unset() argument
85 void __user *buffer = (void __user *)kunit_kzalloc(test, sizeof(int), in sysctl_test_api_dointvec_table_maxlen_unset()
95 KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&data_maxlen_unset_table, in sysctl_test_api_dointvec_table_maxlen_unset()
98 KUNIT_EXPECT_EQ(test, 0, len); in sysctl_test_api_dointvec_table_maxlen_unset()
[all …]
/linux-5.19.10/mm/kfence/
Dkfence_test.c35 #define KFENCE_TEST_REQUIRES(test, cond) do { \ argument
37 kunit_skip((test), "Test requires: " #cond); \
185 static size_t setup_test_cache(struct kunit *test, size_t size, slab_flags_t flags, in setup_test_cache() argument
188 if (test->priv != TEST_PRIV_WANT_MEMCACHE) in setup_test_cache()
191 kunit_info(test, "%s: size=%zu, ctor=%ps\n", __func__, size, ctor); in setup_test_cache()
200 KUNIT_ASSERT_TRUE_MSG(test, test_cache, "could not create cache"); in setup_test_cache()
243 static void *test_alloc(struct kunit *test, size_t size, gfp_t gfp, enum allocation_policy policy) in test_alloc() argument
264 kunit_info(test, "%s: size=%zu, gfp=%x, policy=%s, cache=%i\n", __func__, size, gfp, in test_alloc()
294 KUNIT_EXPECT_EQ(test, obj_to_index(s, slab, alloc), 0U); in test_alloc()
295 KUNIT_EXPECT_EQ(test, objs_per_slab(s, slab), 1); in test_alloc()
[all …]
/linux-5.19.10/drivers/iio/test/
Diio-test-format.c15 static void iio_test_iio_format_value_integer(struct kunit *test) in iio_test_iio_format_value_integer() argument
21 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_integer()
22 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buf); in iio_test_iio_format_value_integer()
26 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "42\n"); in iio_test_iio_format_value_integer()
30 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-23\n"); in iio_test_iio_format_value_integer()
34 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "0\n"); in iio_test_iio_format_value_integer()
38 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "2147483647\n"); in iio_test_iio_format_value_integer()
42 IIO_TEST_FORMAT_EXPECT_EQ(test, buf, ret, "-2147483648\n"); in iio_test_iio_format_value_integer()
45 static void iio_test_iio_format_value_fixedpoint(struct kunit *test) in iio_test_iio_format_value_fixedpoint() argument
51 buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); in iio_test_iio_format_value_fixedpoint()
[all …]
/linux-5.19.10/tools/testing/selftests/bpf/
Dxdpxceiver.c126 #define mode_string(test) (test)->ifobj_tx->xdp_flags & XDP_FLAGS_SKB_MODE ? "SKB" : "DRV" argument
127 #define busy_poll_string(test) (test)->ifobj_tx->busy_poll ? "BUSY-POLL " : "" argument
129 static void report_failure(struct test_spec *test) in report_failure() argument
131 if (test->fail) in report_failure()
134 ksft_test_result_fail("FAIL: %s %s%s\n", mode_string(test), busy_poll_string(test), in report_failure()
135 test->name); in report_failure()
136 test->fail = true; in report_failure()
417 static void __test_spec_init(struct test_spec *test, struct ifobject *ifobj_tx, in __test_spec_init() argument
429 ifobj->pkt_stream = test->pkt_stream_default; in __test_spec_init()
450 test->ifobj_tx = ifobj_tx; in __test_spec_init()
[all …]

12345678910>>...49