Searched refs:test (Results 26 - 50 of 680) sorted by relevance

1234567891011>>

/linux-master/scripts/kconfig/tests/auto_submenu/
H A D__init__.py11 def test(conf): function
/linux-master/scripts/kconfig/tests/choice_value_with_m_dep/
H A D__init__.py13 def test(conf): function
/linux-master/scripts/kconfig/tests/err_recursive_inc/
H A D__init__.py9 def test(conf): function
/linux-master/scripts/kconfig/tests/err_recursive_dep/
H A D__init__.py8 def test(conf): function
/linux-master/scripts/kconfig/tests/inter_choice/
H A D__init__.py13 def test(conf): function
/linux-master/scripts/kconfig/tests/no_write_if_dep_unmet/
H A D__init__.py18 def test(conf): function
/linux-master/scripts/kconfig/tests/new_choice_with_dep/
H A D__init__.py13 def test(conf): function
/linux-master/scripts/kconfig/tests/preprocess/circular_expansion/
H A D__init__.py9 def test(conf): function
/linux-master/scripts/kconfig/tests/preprocess/builtin_func/
H A D__init__.py6 def test(conf): function
/linux-master/scripts/kconfig/tests/preprocess/variable/
H A D__init__.py6 def test(conf): function
/linux-master/scripts/kconfig/tests/preprocess/escape/
H A D__init__.py6 def test(conf): function
/linux-master/drivers/gpu/drm/xe/tests/
H A Dxe_dma_buf_test.h11 void xe_dma_buf_kunit(struct kunit *test);
H A Dxe_migrate_test.h11 void xe_migrate_sanity_kunit(struct kunit *test);
H A Dxe_kunit_helpers.c6 #include <kunit/test.h>
18 * xe_kunit_helper_alloc_xe_device - Allocate a &xe_device for a KUnit test.
19 * @test: the &kunit where this &xe_device will be used
23 * The xe_device allocation is managed by the test.
31 struct xe_device *xe_kunit_helper_alloc_xe_device(struct kunit *test, argument
36 xe = drm_kunit_helper_alloc_drm_device(test, dev,
39 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, xe);
46 struct kunit *test = kunit_get_current_test(); local
48 test->priv = priv;
52 * xe_kunit_helper_xe_device_test_init - Prepare a &xe_device for a KUnit test
69 xe_kunit_helper_xe_device_test_init(struct kunit *test) argument
[all...]
/linux-master/drivers/of/
H A Dof_test.c8 #include <kunit/test.h>
13 static void of_dtb_root_node_found_by_path(struct kunit *test) argument
18 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, np);
24 * enabled. Remove this test once of_root is removed from global access.
26 static void of_dtb_root_node_populates_of_root(struct kunit *test) argument
28 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, of_root);
37 static int of_dtb_test_init(struct kunit *test) argument
40 kunit_skip(test, "requires CONFIG_OF_EARLY_FLATTREE");
/linux-master/tools/pci/
H A Dpcitest.c41 static int run_test(struct pci_test *test) argument
47 fd = open(test->device, O_RDWR);
53 if (test->barnum >= 0 && test->barnum <= 5) {
54 ret = ioctl(fd, PCITEST_BAR, test->barnum);
55 fprintf(stdout, "BAR%d:\t\t", test->barnum);
62 if (test->set_irqtype) {
63 ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype);
64 fprintf(stdout, "SET IRQ TYPE TO %s:\t\t", irq[test->irqtype]);
71 if (test
160 struct pci_test *test; local
[all...]
/linux-master/fs/bcachefs/
H A Dmean_and_variance_test.c2 #include <kunit/test.h>
8 static void mean_and_variance_basic_test(struct kunit *test) argument
15 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(s), 2);
16 KUNIT_EXPECT_EQ(test, mean_and_variance_get_variance(s), 0);
17 KUNIT_EXPECT_EQ(test, s.n, 2);
22 KUNIT_EXPECT_EQ(test, mean_and_variance_get_mean(s), 3);
23 KUNIT_EXPECT_EQ(test, mean_and_variance_get_variance(s), 1);
24 KUNIT_EXPECT_EQ(test, s.n, 4);
32 static void mean_and_variance_weighted_test(struct kunit *test) argument
37 KUNIT_EXPECT_EQ(test, mean_and_variance_weighted_get_mea
63 mean_and_variance_weighted_advanced_test(struct kunit *test) argument
89 do_mean_and_variance_test(struct kunit *test, s64 initial_value, s64 initial_n, s64 n, unsigned weight, s64 *data, s64 *mean, s64 *stddev, s64 *weighted_mean, s64 *weighted_stddev) argument
127 mean_and_variance_test_1(struct kunit *test) argument
140 mean_and_variance_test_2(struct kunit *test) argument
152 mean_and_variance_fast_divpow2(struct kunit *test) argument
170 mean_and_variance_u128_basic_test(struct kunit *test) argument
[all...]
/linux-master/net/mptcp/
H A Dtoken_test.c2 #include <kunit/test.h>
6 static struct mptcp_subflow_request_sock *build_req_sock(struct kunit *test) argument
10 req = kunit_kzalloc(test, sizeof(struct mptcp_subflow_request_sock),
12 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, req);
18 static void mptcp_token_test_req_basic(struct kunit *test) argument
20 struct mptcp_subflow_request_sock *req = build_req_sock(test);
23 KUNIT_ASSERT_EQ(test, 0,
25 KUNIT_EXPECT_NE(test, 0, (int)req->token);
26 KUNIT_EXPECT_PTR_EQ(test, null_msk, mptcp_token_get_sock(&init_net, req->token));
32 static struct inet_connection_sock *build_icsk(struct kunit *test) argument
42 build_ctx(struct kunit *test) argument
52 build_msk(struct kunit *test) argument
71 mptcp_token_test_msk_basic(struct kunit *test) argument
94 mptcp_token_test_accept(struct kunit *test) argument
113 mptcp_token_test_destroyed(struct kunit *test) argument
[all...]
/linux-master/drivers/base/power/
H A Dqos-test.c5 #include <kunit/test.h>
8 /* Basic test for aggregating two "min" requests */
9 static void freq_qos_test_min(struct kunit *test) argument
20 KUNIT_EXPECT_EQ(test, ret, 1);
22 KUNIT_EXPECT_EQ(test, ret, 1);
24 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 2000);
27 KUNIT_EXPECT_EQ(test, ret, 1);
28 KUNIT_EXPECT_EQ(test, freq_qos_read_value(&qos, FREQ_QOS_MIN), 1000);
31 KUNIT_EXPECT_EQ(test, ret, 1);
32 KUNIT_EXPECT_EQ(test, freq_qos_read_valu
37 freq_qos_test_maxdef(struct kunit *test) argument
78 freq_qos_test_readd(struct kunit *test) argument
[all...]
/linux-master/drivers/base/test/
H A Dproperty-entry-test.c6 #include <kunit/test.h>
10 static void pe_test_uints(struct kunit *test) argument
28 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node);
31 KUNIT_EXPECT_EQ(test, error, 1);
34 KUNIT_EXPECT_EQ(test, error, 0);
35 KUNIT_EXPECT_EQ(test, val_u8, 8);
38 KUNIT_EXPECT_EQ(test, error, 0);
39 KUNIT_EXPECT_EQ(test, array_u8[0], 8);
42 KUNIT_EXPECT_NE(test, error, 0);
45 KUNIT_EXPECT_NE(test, erro
117 pe_test_uint_arrays(struct kunit *test) argument
252 pe_test_strings(struct kunit *test) argument
324 pe_test_bool(struct kunit *test) argument
343 pe_test_move_inline_u8(struct kunit *test) argument
373 pe_test_move_inline_str(struct kunit *test) argument
406 pe_test_reference(struct kunit *test) argument
[all...]
/linux-master/arch/s390/lib/
H A Dtest_kprobes.c6 #include <kunit/test.h>
11 static void setup_kprobe(struct kunit *test, struct kprobe *kp, argument
19 static void test_kprobe_offset(struct kunit *test, struct kprobe *kp, argument
24 setup_kprobe(test, kp, target, 0);
28 KUNIT_EXPECT_EQ(test, 0, ret);
29 setup_kprobe(test, kp, target, offset);
31 KUNIT_EXPECT_EQ(test, -EINVAL, ret);
36 static void test_kprobe_odd(struct kunit *test) argument
38 test_kprobe_offset(test, &kp, "kprobes_target_odd",
42 static void test_kprobe_in_insn4(struct kunit *test) argument
48 test_kprobe_in_insn6_lo(struct kunit *test) argument
54 test_kprobe_in_insn6_hi(struct kunit *test) argument
[all...]
/linux-master/lib/kunit/
H A Dexecutor_test.c3 * KUnit test for the KUnit executor.
9 #include <kunit/test.h>
12 static void free_suite_set_at_end(struct kunit *test, const void *to_free);
13 static struct kunit_suite *alloc_fake_suite(struct kunit *test,
17 static void dummy_test(struct kunit *test) {} argument
26 static void parse_filter_test(struct kunit *test) argument
31 KUNIT_EXPECT_STREQ(test, filter.suite_glob, "suite");
32 KUNIT_EXPECT_FALSE(test, filter.test_glob);
36 kunit_parse_glob_filter(&filter, "suite.test");
37 KUNIT_EXPECT_STREQ(test, filte
43 filter_suites_test(struct kunit *test) argument
69 filter_suites_test_glob_test(struct kunit *test) argument
98 filter_suites_to_empty_test(struct kunit *test) argument
118 parse_filter_attr_test(struct kunit *test) argument
150 filter_attr_test(struct kunit *test) argument
188 filter_attr_empty_test(struct kunit *test) argument
209 filter_attr_skip_test(struct kunit *test) argument
268 free_suite_set_at_end(struct kunit *test, const void *to_free) argument
281 alloc_fake_suite(struct kunit *test, const char *suite_name, struct kunit_case *test_cases) argument
[all...]
/linux-master/lib/
H A Dfortify_kunit.c3 * Runtime test cases for CONFIG_FORTIFY_SOURCE. For testing memcpy(),
27 #include <kunit/test.h>
28 #include <kunit/test-bug.h>
67 static void known_sizes_test(struct kunit *test) argument
69 KUNIT_EXPECT_EQ(test, __compiletime_strlen("88888888"), 8);
70 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_of_10), 10);
71 KUNIT_EXPECT_EQ(test, __compiletime_strlen(ptr_of_11), 11);
73 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX);
75 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test
100 control_flow_split_test(struct kunit *test) argument
364 strlen_test(struct kunit *test) argument
387 strnlen_test(struct kunit *test) argument
425 strcpy_test(struct kunit *test) argument
483 strncpy_test(struct kunit *test) argument
542 strscpy_test(struct kunit *test) argument
599 strcat_test(struct kunit *test) argument
656 strncat_test(struct kunit *test) argument
729 strlcat_test(struct kunit *test) argument
814 memscan_test(struct kunit *test) argument
833 memchr_test(struct kunit *test) argument
852 memchr_inv_test(struct kunit *test) argument
872 memcmp_test(struct kunit *test) argument
894 kmemdup_test(struct kunit *test) argument
937 fortify_test_init(struct kunit *test) argument
[all...]
/linux-master/drivers/gpu/drm/ttm/tests/
H A Dttm_tt_test.c18 static int ttm_tt_test_init(struct kunit *test) argument
22 priv = kunit_kzalloc(test, sizeof(*priv), GFP_KERNEL);
23 KUNIT_ASSERT_NOT_NULL(test, priv);
25 priv = ttm_test_devices_all(test);
26 test->priv = priv;
52 static void ttm_tt_init_basic(struct kunit *test) argument
54 const struct ttm_tt_test_case *params = test->param_value;
63 tt = kunit_kzalloc(test, sizeof(*tt), GFP_KERNEL);
64 KUNIT_ASSERT_NOT_NULL(test, tt);
66 bo = ttm_bo_kunit_init(test, tes
80 ttm_tt_init_misaligned(struct kunit *test) argument
103 ttm_tt_fini_basic(struct kunit *test) argument
123 ttm_tt_fini_sg(struct kunit *test) argument
143 ttm_tt_fini_shmem(struct kunit *test) argument
166 ttm_tt_create_basic(struct kunit *test) argument
185 ttm_tt_create_invalid_bo_type(struct kunit *test) argument
201 ttm_tt_create_ttm_exists(struct kunit *test) argument
236 ttm_tt_create_failed(struct kunit *test) argument
254 ttm_tt_destroy_basic(struct kunit *test) argument
[all...]
/linux-master/mm/kasan/
H A Dkasan_test.c8 #define pr_fmt(fmt) "kasan: test: " fmt
10 #include <kunit/test.h>
89 static void kasan_test_exit(struct kunit *test) argument
91 KUNIT_EXPECT_FALSE(test, READ_ONCE(test_status.report_found));
96 * KASAN report; causes a KUnit test failure otherwise.
98 * @test: Currently executing KUnit test.
102 * checking is auto-disabled. When this happens, this test handler reenables
116 #define KUNIT_EXPECT_KASAN_FAIL(test, expression) do { \
120 KUNIT_EXPECT_FALSE(test, READ_ONC
161 kmalloc_oob_right(struct kunit *test) argument
190 kmalloc_oob_left(struct kunit *test) argument
203 kmalloc_node_oob_right(struct kunit *test) argument
220 kmalloc_big_oob_right(struct kunit *test) argument
239 kmalloc_large_oob_right(struct kunit *test) argument
253 kmalloc_large_uaf(struct kunit *test) argument
265 kmalloc_large_invalid_free(struct kunit *test) argument
276 page_alloc_oob_right(struct kunit *test) argument
298 page_alloc_uaf(struct kunit *test) argument
312 krealloc_more_oob_helper(struct kunit *test, size_t size1, size_t size2) argument
347 krealloc_less_oob_helper(struct kunit *test, size_t size1, size_t size2) argument
391 krealloc_more_oob(struct kunit *test) argument
396 krealloc_less_oob(struct kunit *test) argument
401 krealloc_large_more_oob(struct kunit *test) argument
407 krealloc_large_less_oob(struct kunit *test) argument
417 krealloc_uaf(struct kunit *test) argument
432 kmalloc_oob_16(struct kunit *test) argument
457 kmalloc_uaf_16(struct kunit *test) argument
482 kmalloc_oob_memset_2(struct kunit *test) argument
500 kmalloc_oob_memset_4(struct kunit *test) argument
518 kmalloc_oob_memset_8(struct kunit *test) argument
536 kmalloc_oob_memset_16(struct kunit *test) argument
554 kmalloc_oob_in_memset(struct kunit *test) argument
571 kmalloc_memmove_negative_size(struct kunit *test) argument
597 kmalloc_memmove_invalid_size(struct kunit *test) argument
616 kmalloc_uaf(struct kunit *test) argument
628 kmalloc_uaf_memset(struct kunit *test) argument
648 kmalloc_uaf2(struct kunit *test) argument
682 kmalloc_uaf3(struct kunit *test) argument
701 kasan_atomics_helper(struct kunit *test, void *unsafe, void *safe) argument
759 kasan_atomics(struct kunit *test) argument
779 kmalloc_double_kzfree(struct kunit *test) argument
792 ksize_unpoisons_memory(struct kunit *test) argument
823 ksize_uaf(struct kunit *test) argument
860 rcu_uaf(struct kunit *test) argument
880 workqueue_uaf(struct kunit *test) argument
899 kfree_via_page(struct kunit *test) argument
914 kfree_via_phys(struct kunit *test) argument
927 kmem_cache_oob(struct kunit *test) argument
949 kmem_cache_double_free(struct kunit *test) argument
970 kmem_cache_invalid_free(struct kunit *test) argument
1001 kmem_cache_double_destroy(struct kunit *test) argument
1012 kmem_cache_accounted(struct kunit *test) argument
1039 kmem_cache_bulk(struct kunit *test) argument
1064 mempool_prepare_kmalloc(struct kunit *test, mempool_t *pool, size_t size) argument
1086 mempool_prepare_slab(struct kunit *test, mempool_t *pool, size_t size) argument
1107 mempool_prepare_page(struct kunit *test, mempool_t *pool, int order) argument
1123 mempool_oob_right_helper(struct kunit *test, mempool_t *pool, size_t size) argument
1142 mempool_kmalloc_oob_right(struct kunit *test) argument
1156 mempool_kmalloc_large_oob_right(struct kunit *test) argument
1170 mempool_slab_oob_right(struct kunit *test) argument
1192 mempool_uaf_helper(struct kunit *test, mempool_t *pool, bool page) argument
1205 mempool_kmalloc_uaf(struct kunit *test) argument
1219 mempool_kmalloc_large_uaf(struct kunit *test) argument
1233 mempool_slab_uaf(struct kunit *test) argument
1247 mempool_page_alloc_uaf(struct kunit *test) argument
1261 mempool_double_free_helper(struct kunit *test, mempool_t *pool) argument
1273 mempool_kmalloc_double_free(struct kunit *test) argument
1287 mempool_kmalloc_large_double_free(struct kunit *test) argument
1301 mempool_page_alloc_double_free(struct kunit *test) argument
1315 mempool_kmalloc_invalid_free_helper(struct kunit *test, mempool_t *pool) argument
1327 mempool_kmalloc_invalid_free(struct kunit *test) argument
1341 mempool_kmalloc_large_invalid_free(struct kunit *test) argument
1363 kasan_global_oob_right(struct kunit *test) argument
1386 kasan_global_oob_left(struct kunit *test) argument
1400 kasan_stack_oob(struct kunit *test) argument
1412 kasan_alloca_oob_left(struct kunit *test) argument
1427 kasan_alloca_oob_right(struct kunit *test) argument
1442 kasan_memchr(struct kunit *test) argument
1467 kasan_memcmp(struct kunit *test) argument
1493 kasan_strings(struct kunit *test) argument
1529 kasan_bitops_modify(struct kunit *test, int nr, void *addr) argument
1541 kasan_bitops_test_and_modify(struct kunit *test, int nr, void *addr) argument
1556 kasan_bitops_generic(struct kunit *test) argument
1585 kasan_bitops_tags(struct kunit *test) argument
1603 vmalloc_helpers_tags(struct kunit *test) argument
1641 vmalloc_oob(struct kunit *test) argument
1692 vmap_tags(struct kunit *test) argument
1738 vm_map_ram_tags(struct kunit *test) argument
1768 vmalloc_percpu(struct kunit *test) argument
1799 match_all_not_assigned(struct kunit *test) argument
1840 match_all_ptr_tag(struct kunit *test) argument
1866 match_all_mem_tag(struct kunit *test) argument
[all...]

Completed in 238 milliseconds

1234567891011>>