Home
last modified time | relevance | path

Searched defs:test (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/linux/mm/kasan/
H A Dkasan_test_c.c91 static void kasan_test_exit(struct kunit *test) in kasan_test_exit() argument
121 #define KUNIT_EXPECT_KASAN_RESULT(test, expr, expr_str, fail) \ argument
158 KUNIT_EXPECT_KASAN_FAIL(test,expr) global() argument
175 KUNIT_EXPECT_KASAN_FAIL_READ(test,expr) global() argument
179 KASAN_TEST_NEEDS_CONFIG_ON(test,config) global() argument
184 KASAN_TEST_NEEDS_CONFIG_OFF(test,config) global() argument
189 KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) global() argument
198 kmalloc_oob_right(struct kunit * test) kmalloc_oob_right() argument
227 kmalloc_oob_left(struct kunit * test) kmalloc_oob_left() argument
240 kmalloc_node_oob_right(struct kunit * test) kmalloc_node_oob_right() argument
253 kmalloc_track_caller_oob_right(struct kunit * test) kmalloc_track_caller_oob_right() argument
287 kmalloc_big_oob_right(struct kunit * test) kmalloc_big_oob_right() argument
306 kmalloc_large_oob_right(struct kunit * test) kmalloc_large_oob_right() argument
320 kmalloc_large_uaf(struct kunit * test) kmalloc_large_uaf() argument
332 kmalloc_large_invalid_free(struct kunit * test) kmalloc_large_invalid_free() argument
343 page_alloc_oob_right(struct kunit * test) page_alloc_oob_right() argument
365 page_alloc_uaf(struct kunit * test) page_alloc_uaf() argument
379 krealloc_more_oob_helper(struct kunit * test,size_t size1,size_t size2) krealloc_more_oob_helper() argument
414 krealloc_less_oob_helper(struct kunit * test,size_t size1,size_t size2) krealloc_less_oob_helper() argument
458 krealloc_more_oob(struct kunit * test) krealloc_more_oob() argument
463 krealloc_less_oob(struct kunit * test) krealloc_less_oob() argument
468 krealloc_large_more_oob(struct kunit * test) krealloc_large_more_oob() argument
474 krealloc_large_less_oob(struct kunit * test) krealloc_large_less_oob() argument
484 krealloc_uaf(struct kunit * test) krealloc_uaf() argument
499 kmalloc_oob_16(struct kunit * test) kmalloc_oob_16() argument
524 kmalloc_uaf_16(struct kunit * test) kmalloc_uaf_16() argument
549 kmalloc_oob_memset_2(struct kunit * test) kmalloc_oob_memset_2() argument
567 kmalloc_oob_memset_4(struct kunit * test) kmalloc_oob_memset_4() argument
585 kmalloc_oob_memset_8(struct kunit * test) kmalloc_oob_memset_8() argument
603 kmalloc_oob_memset_16(struct kunit * test) kmalloc_oob_memset_16() argument
621 kmalloc_oob_in_memset(struct kunit * test) kmalloc_oob_in_memset() argument
638 kmalloc_memmove_negative_size(struct kunit * test) kmalloc_memmove_negative_size() argument
664 kmalloc_memmove_invalid_size(struct kunit * test) kmalloc_memmove_invalid_size() argument
683 kmalloc_uaf(struct kunit * test) kmalloc_uaf() argument
695 kmalloc_uaf_memset(struct kunit * test) kmalloc_uaf_memset() argument
715 kmalloc_uaf2(struct kunit * test) kmalloc_uaf2() argument
749 kmalloc_uaf3(struct kunit * test) kmalloc_uaf3() argument
768 kasan_atomics_helper(struct kunit * test,void * unsafe,void * safe) kasan_atomics_helper() argument
852 kasan_atomics(struct kunit * test) kasan_atomics() argument
872 kmalloc_double_kzfree(struct kunit * test) kmalloc_double_kzfree() argument
885 ksize_unpoisons_memory(struct kunit * test) ksize_unpoisons_memory() argument
916 ksize_uaf(struct kunit * test) ksize_uaf() argument
953 rcu_uaf(struct kunit * test) rcu_uaf() argument
973 workqueue_uaf(struct kunit * test) workqueue_uaf() argument
992 kfree_via_page(struct kunit * test) kfree_via_page() argument
1007 kfree_via_phys(struct kunit * test) kfree_via_phys() argument
1020 kmem_cache_oob(struct kunit * test) kmem_cache_oob() argument
1042 kmem_cache_double_free(struct kunit * test) kmem_cache_double_free() argument
1063 kmem_cache_invalid_free(struct kunit * test) kmem_cache_invalid_free() argument
1092 kmem_cache_rcu_uaf(struct kunit * test) kmem_cache_rcu_uaf() argument
1143 kmem_cache_rcu_reuse(struct kunit * test) kmem_cache_rcu_reuse() argument
1176 kmem_cache_double_destroy(struct kunit * test) kmem_cache_double_destroy() argument
1186 kmem_cache_accounted(struct kunit * test) kmem_cache_accounted() argument
1213 kmem_cache_bulk(struct kunit * test) kmem_cache_bulk() argument
1238 mempool_prepare_kmalloc(struct kunit * test,mempool_t * pool,size_t size) mempool_prepare_kmalloc() argument
1260 mempool_prepare_slab(struct kunit * test,mempool_t * pool,size_t size) mempool_prepare_slab() argument
1281 mempool_prepare_page(struct kunit * test,mempool_t * pool,int order) mempool_prepare_page() argument
1297 mempool_oob_right_helper(struct kunit * test,mempool_t * pool,size_t size) mempool_oob_right_helper() argument
1316 mempool_kmalloc_oob_right(struct kunit * test) mempool_kmalloc_oob_right() argument
1330 mempool_kmalloc_large_oob_right(struct kunit * test) mempool_kmalloc_large_oob_right() argument
1344 mempool_slab_oob_right(struct kunit * test) mempool_slab_oob_right() argument
1366 mempool_uaf_helper(struct kunit * test,mempool_t * pool,bool page) mempool_uaf_helper() argument
1379 mempool_kmalloc_uaf(struct kunit * test) mempool_kmalloc_uaf() argument
1393 mempool_kmalloc_large_uaf(struct kunit * test) mempool_kmalloc_large_uaf() argument
1407 mempool_slab_uaf(struct kunit * test) mempool_slab_uaf() argument
1421 mempool_page_alloc_uaf(struct kunit * test) mempool_page_alloc_uaf() argument
1435 mempool_double_free_helper(struct kunit * test,mempool_t * pool) mempool_double_free_helper() argument
1447 mempool_kmalloc_double_free(struct kunit * test) mempool_kmalloc_double_free() argument
1461 mempool_kmalloc_large_double_free(struct kunit * test) mempool_kmalloc_large_double_free() argument
1475 mempool_page_alloc_double_free(struct kunit * test) mempool_page_alloc_double_free() argument
1489 mempool_kmalloc_invalid_free_helper(struct kunit * test,mempool_t * pool) mempool_kmalloc_invalid_free_helper() argument
1501 mempool_kmalloc_invalid_free(struct kunit * test) mempool_kmalloc_invalid_free() argument
1515 mempool_kmalloc_large_invalid_free(struct kunit * test) mempool_kmalloc_large_invalid_free() argument
1537 kasan_global_oob_right(struct kunit * test) kasan_global_oob_right() argument
1560 kasan_global_oob_left(struct kunit * test) kasan_global_oob_left() argument
1574 kasan_stack_oob(struct kunit * test) kasan_stack_oob() argument
1586 kasan_alloca_oob_left(struct kunit * test) kasan_alloca_oob_left() argument
1601 kasan_alloca_oob_right(struct kunit * test) kasan_alloca_oob_right() argument
1616 kasan_memchr(struct kunit * test) kasan_memchr() argument
1641 kasan_memcmp(struct kunit * test) kasan_memcmp() argument
1667 kasan_strings(struct kunit * test) kasan_strings() argument
1725 kasan_bitops_modify(struct kunit * test,int nr,void * addr) kasan_bitops_modify() argument
1737 kasan_bitops_test_and_modify(struct kunit * test,int nr,void * addr) kasan_bitops_test_and_modify() argument
1758 kasan_bitops_generic(struct kunit * test) kasan_bitops_generic() argument
1787 kasan_bitops_tags(struct kunit * test) kasan_bitops_tags() argument
1805 vmalloc_helpers_tags(struct kunit * test) vmalloc_helpers_tags() argument
1843 vmalloc_oob_helper(struct kunit * test,char * v_ptr,size_t size) vmalloc_oob_helper() argument
1866 vmalloc_oob(struct kunit * test) vmalloc_oob() argument
1914 vmap_tags(struct kunit * test) vmap_tags() argument
1960 vm_map_ram_tags(struct kunit * test) vm_map_ram_tags() argument
1995 match_all_not_assigned(struct kunit * test) match_all_not_assigned() argument
2036 match_all_ptr_tag(struct kunit * test) match_all_ptr_tag() argument
2062 match_all_mem_tag(struct kunit * test) match_all_mem_tag() argument
2102 rust_uaf(struct kunit * test) rust_uaf() argument
2113 copy_to_kernel_nofault_oob(struct kunit * test) copy_to_kernel_nofault_oob() argument
2149 copy_user_test_oob(struct kunit * test) copy_user_test_oob() argument
[all...]
/linux/lib/tests/
H A Dlist-test.c18 static void list_test_list_init(struct kunit *test) in list_test_list_init()
47 static void list_test_list_add(struct kunit *test) in list_test_list_add()
61 static void list_test_list_add_tail(struct kunit *test) in list_test_list_add_tail()
75 static void list_test_list_del(struct kunit *test) in list_test_list_del()
91 static void list_test_list_replace(struct kunit *test) in list_test_list_replace()
109 static void list_test_list_replace_init(struct kunit *test) in list_test_list_replace_init()
130 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
152 static void list_test_list_del_init(struct kunit *test) in list_test_list_del_init()
169 static void list_test_list_del_init_careful(struct kunit *test) in list_test_list_del_init_careful()
189 static void list_test_list_move(struct kunit *test) in list_test_list_move()
[all …]
H A Dstring_kunit.c24 #define STRCMP_TEST_EXPECT_EQUAL(test, fn, ...) KUNIT_EXPECT_EQ(test, fn(__VA_ARGS__), 0) argument
25 #define STRCMP_TEST_EXPECT_LOWER(test, fn, ...) KUNIT_EXPECT_LT(test, fn(__VA_ARGS__), 0) argument
26 #define STRCMP_TEST_EXPECT_GREATER(test, fn, ...) KUNIT_EXPECT_GT(test, fn(__VA_ARGS__), 0) argument
34 static void string_test_memset16(struct kunit *test) in string_test_memset16()
63 static void string_test_memset32(struct kunit *test) in string_test_memset32()
92 static void string_test_memset64(struct kunit *test) in string_test_memset64()
121 static void string_test_strlen(struct kunit *test) in string_test_strlen()
145 static void string_test_strnlen(struct kunit *test) in string_test_strnlen()
179 static void string_test_strchr(struct kunit *test) in string_test_strchr()
202 static void string_test_strrchr(struct kunit *test) in string_test_strrchr()
[all …]
H A Dseq_buf_kunit.c11 static void seq_buf_init_test(struct kunit *test) in seq_buf_init_test() argument
26 static void seq_buf_declare_test(struct kunit *test) in seq_buf_declare_test() argument
38 seq_buf_clear_test(struct kunit * test) seq_buf_clear_test() argument
54 seq_buf_puts_test(struct kunit * test) seq_buf_puts_test() argument
69 seq_buf_puts_overflow_test(struct kunit * test) seq_buf_puts_overflow_test() argument
88 seq_buf_putc_test(struct kunit * test) seq_buf_putc_test() argument
116 seq_buf_printf_test(struct kunit * test) seq_buf_printf_test() argument
131 seq_buf_printf_overflow_test(struct kunit * test) seq_buf_printf_overflow_test() argument
151 seq_buf_get_buf_commit_test(struct kunit * test) seq_buf_get_buf_commit_test() argument
[all...]
/linux/drivers/gpu/drm/tests/
H A Ddrm_cmdline_parser_test.c15 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only()
33 static void drm_test_cmdline_force_D_only_not_digital(struct kunit *test) in drm_test_cmdline_force_D_only_not_digital()
55 static void drm_test_cmdline_force_D_only_hdmi(struct kunit *test) in drm_test_cmdline_force_D_only_hdmi()
77 static void drm_test_cmdline_force_D_only_dvi(struct kunit *test) in drm_test_cmdline_force_D_only_dvi()
95 static void drm_test_cmdline_force_d_only(struct kunit *test) in drm_test_cmdline_force_d_only()
113 static void drm_test_cmdline_res(struct kunit *test) in drm_test_cmdline_res()
135 static void drm_test_cmdline_res_vesa(struct kunit *test) in drm_test_cmdline_res_vesa()
157 static void drm_test_cmdline_res_vesa_rblank(struct kunit *test) in drm_test_cmdline_res_vesa_rblank()
179 static void drm_test_cmdline_res_rblank(struct kunit *test) in drm_test_cmdline_res_rblank()
201 static void drm_test_cmdline_res_bpp(struct kunit *test) in drm_test_cmdline_res_bpp()
[all …]
H A Ddrm_format_test.c12 static void drm_test_format_block_width_invalid(struct kunit *test) in drm_test_format_block_width_invalid()
21 static void drm_test_format_block_width_one_plane(struct kunit *test) in drm_test_format_block_width_one_plane()
32 static void drm_test_format_block_width_two_plane(struct kunit *test) in drm_test_format_block_width_two_plane()
44 static void drm_test_format_block_width_three_plane(struct kunit *test) in drm_test_format_block_width_three_plane()
57 static void drm_test_format_block_width_tiled(struct kunit *test) in drm_test_format_block_width_tiled()
68 static void drm_test_format_block_height_invalid(struct kunit *test) in drm_test_format_block_height_invalid()
77 static void drm_test_format_block_height_one_plane(struct kunit *test) in drm_test_format_block_height_one_plane()
88 static void drm_test_format_block_height_two_plane(struct kunit *test) in drm_test_format_block_height_two_plane()
100 static void drm_test_format_block_height_three_plane(struct kunit *test) in drm_test_format_block_height_three_plane()
113 static void drm_test_format_block_height_tiled(struct kunit *test) in drm_test_format_block_height_tiled()
[all …]
H A Ddrm_damage_helper_test.c26 static int drm_damage_helper_init(struct kunit *test) in drm_damage_helper_init()
95 static void check_damage_clip(struct kunit *test, struct drm_rect *r, in check_damage_clip()
119 static void drm_test_damage_iter_no_damage(struct kunit *test) in drm_test_damage_iter_no_damage()
137 static void drm_test_damage_iter_no_damage_fractional_src(struct kunit *test) in drm_test_damage_iter_no_damage_fractional_src()
158 static void drm_test_damage_iter_no_damage_src_moved(struct kunit *test) in drm_test_damage_iter_no_damage_src_moved()
177 static void drm_test_damage_iter_no_damage_fractional_src_moved(struct kunit *test) in drm_test_damage_iter_no_damage_fractional_src_moved()
197 static void drm_test_damage_iter_no_damage_not_visible(struct kunit *test) in drm_test_damage_iter_no_damage_not_visible()
215 static void drm_test_damage_iter_no_damage_no_crtc(struct kunit *test) in drm_test_damage_iter_no_damage_no_crtc()
233 static void drm_test_damage_iter_no_damage_no_fb(struct kunit *test) in drm_test_damage_iter_no_damage_no_fb()
251 static void drm_test_damage_iter_simple_damage(struct kunit *test) in drm_test_damage_iter_simple_damage()
[all …]
/linux/include/kunit/
H A Dtest.h359 kunit_set_failure(struct kunit * test) kunit_set_failure() argument
499 kunit_kmalloc(struct kunit * test,size_t size,gfp_t gfp) kunit_kmalloc() argument
519 kunit_kzalloc(struct kunit * test,size_t size,gfp_t gfp) kunit_kzalloc() argument
533 kunit_kcalloc(struct kunit * test,size_t n,size_t size,gfp_t gfp) kunit_kcalloc() argument
558 kunit_kstrdup(struct kunit * test,const char * str,gfp_t gfp) kunit_kstrdup() argument
631 kunit_mark_skipped(test,fmt,...) global() argument
650 kunit_skip(test,fmt,...) global() argument
667 kunit_printk(lvl,test,fmt,...) global() argument
680 kunit_info(test,fmt,...) global() argument
691 kunit_warn(test,fmt,...) global() argument
702 kunit_err(test,fmt,...) global() argument
709 _KUNIT_SAVE_LOC(test) global() argument
722 KUNIT_SUCCEED(test) global() argument
733 _KUNIT_FAILED(test,assert_type,assert_class,assert_format,INITIALIZER,fmt,...) global() argument
748 KUNIT_FAIL_ASSERTION(test,assert_type,fmt,...) global() argument
770 KUNIT_FAIL(test,fmt,...) global() argument
779 KUNIT_UNARY_ASSERTION(test,assert_type,condition_,expected_true_,fmt,...) global() argument
800 KUNIT_TRUE_MSG_ASSERTION(test,assert_type,condition,fmt,...) global() argument
808 KUNIT_FALSE_MSG_ASSERTION(test,assert_type,condition,fmt,...) global() argument
830 KUNIT_BASE_BINARY_ASSERTION(test,assert_class,format_func,assert_type,left,op,right,fmt,...) global() argument
863 KUNIT_BINARY_INT_ASSERTION(test,assert_type,left,op,right,fmt,...) global() argument
878 KUNIT_BINARY_PTR_ASSERTION(test,assert_type,left,op,right,fmt,...) global() argument
893 KUNIT_BINARY_STR_ASSERTION(test,assert_type,left,op,right,fmt,...) global() argument
926 KUNIT_MEM_ASSERTION(test,assert_type,left,op,right,size_,fmt,...) global() argument
961 KUNIT_PTR_NOT_ERR_OR_NULL_MSG_ASSERTION(test,assert_type,ptr,fmt,...) global() argument
993 KUNIT_EXPECT_TRUE(test,condition) global() argument
996 KUNIT_EXPECT_TRUE_MSG(test,condition,fmt,...) global() argument
1012 KUNIT_EXPECT_FALSE(test,condition) global() argument
1015 KUNIT_EXPECT_FALSE_MSG(test,condition,fmt,...) global() argument
1033 KUNIT_EXPECT_EQ(test,left,right) global() argument
1036 KUNIT_EXPECT_EQ_MSG(test,left,right,fmt,...) global() argument
1054 KUNIT_EXPECT_PTR_EQ(test,left,right) global() argument
1057 KUNIT_EXPECT_PTR_EQ_MSG(test,left,right,fmt,...) global() argument
1075 KUNIT_EXPECT_NE(test,left,right) global() argument
1078 KUNIT_EXPECT_NE_MSG(test,left,right,fmt,...) global() argument
1096 KUNIT_EXPECT_PTR_NE(test,left,right) global() argument
1099 KUNIT_EXPECT_PTR_NE_MSG(test,left,right,fmt,...) global() argument
1117 KUNIT_EXPECT_LT(test,left,right) global() argument
1120 KUNIT_EXPECT_LT_MSG(test,left,right,fmt,...) global() argument
1138 KUNIT_EXPECT_LE(test,left,right) global() argument
1141 KUNIT_EXPECT_LE_MSG(test,left,right,fmt,...) global() argument
1159 KUNIT_EXPECT_GT(test,left,right) global() argument
1162 KUNIT_EXPECT_GT_MSG(test,left,right,fmt,...) global() argument
1180 KUNIT_EXPECT_GE(test,left,right) global() argument
1183 KUNIT_EXPECT_GE_MSG(test,left,right,fmt,...) global() argument
1201 KUNIT_EXPECT_STREQ(test,left,right) global() argument
1204 KUNIT_EXPECT_STREQ_MSG(test,left,right,fmt,...) global() argument
1222 KUNIT_EXPECT_STRNEQ(test,left,right) global() argument
1225 KUNIT_EXPECT_STRNEQ_MSG(test,left,right,fmt,...) global() argument
1248 KUNIT_EXPECT_MEMEQ(test,left,right,size) global() argument
1251 KUNIT_EXPECT_MEMEQ_MSG(test,left,right,size,fmt,...) global() argument
1275 KUNIT_EXPECT_MEMNEQ(test,left,right,size) global() argument
1278 KUNIT_EXPECT_MEMNEQ_MSG(test,left,right,size,fmt,...) global() argument
1295 KUNIT_EXPECT_NULL(test,ptr) global() argument
1300 KUNIT_EXPECT_NULL_MSG(test,ptr,fmt,...) global() argument
1316 KUNIT_EXPECT_NOT_NULL(test,ptr) global() argument
1321 KUNIT_EXPECT_NOT_NULL_MSG(test,ptr,fmt,...) global() argument
1338 KUNIT_EXPECT_NOT_ERR_OR_NULL(test,ptr) global() argument
1341 KUNIT_EXPECT_NOT_ERR_OR_NULL_MSG(test,ptr,fmt,...) global() argument
1359 KUNIT_FAIL_AND_ABORT(test,fmt,...) global() argument
1373 KUNIT_ASSERT_TRUE(test,condition) global() argument
1376 KUNIT_ASSERT_TRUE_MSG(test,condition,fmt,...) global() argument
1392 KUNIT_ASSERT_FALSE(test,condition) global() argument
1395 KUNIT_ASSERT_FALSE_MSG(test,condition,fmt,...) global() argument
1412 KUNIT_ASSERT_EQ(test,left,right) global() argument
1415 KUNIT_ASSERT_EQ_MSG(test,left,right,fmt,...) global() argument
1432 KUNIT_ASSERT_PTR_EQ(test,left,right) global() argument
1435 KUNIT_ASSERT_PTR_EQ_MSG(test,left,right,fmt,...) global() argument
1452 KUNIT_ASSERT_NE(test,left,right) global() argument
1455 KUNIT_ASSERT_NE_MSG(test,left,right,fmt,...) global() argument
1473 KUNIT_ASSERT_PTR_NE(test,left,right) global() argument
1476 KUNIT_ASSERT_PTR_NE_MSG(test,left,right,fmt,...) global() argument
1493 KUNIT_ASSERT_LT(test,left,right) global() argument
1496 KUNIT_ASSERT_LT_MSG(test,left,right,fmt,...) global() argument
1513 KUNIT_ASSERT_LE(test,left,right) global() argument
1516 KUNIT_ASSERT_LE_MSG(test,left,right,fmt,...) global() argument
1534 KUNIT_ASSERT_GT(test,left,right) global() argument
1537 KUNIT_ASSERT_GT_MSG(test,left,right,fmt,...) global() argument
1555 KUNIT_ASSERT_GE(test,left,right) global() argument
1558 KUNIT_ASSERT_GE_MSG(test,left,right,fmt,...) global() argument
1575 KUNIT_ASSERT_STREQ(test,left,right) global() argument
1578 KUNIT_ASSERT_STREQ_MSG(test,left,right,fmt,...) global() argument
1596 KUNIT_ASSERT_STRNEQ(test,left,right) global() argument
1599 KUNIT_ASSERT_STRNEQ_MSG(test,left,right,fmt,...) global() argument
1622 KUNIT_ASSERT_MEMEQ(test,left,right,size) global() argument
1625 KUNIT_ASSERT_MEMEQ_MSG(test,left,right,size,fmt,...) global() argument
1649 KUNIT_ASSERT_MEMNEQ(test,left,right,size) global() argument
1652 KUNIT_ASSERT_MEMNEQ_MSG(test,left,right,size,fmt,...) global() argument
1669 KUNIT_ASSERT_NULL(test,ptr) global() argument
1674 KUNIT_ASSERT_NULL_MSG(test,ptr,fmt,...) global() argument
1690 KUNIT_ASSERT_NOT_NULL(test,ptr) global() argument
1695 KUNIT_ASSERT_NOT_NULL_MSG(test,ptr,fmt,...) global() argument
1712 KUNIT_ASSERT_NOT_ERR_OR_NULL(test,ptr) global() argument
1715 KUNIT_ASSERT_NOT_ERR_OR_NULL_MSG(test,ptr,fmt,...) global() argument
1785 kunit_register_params_array(test,array,param_count,get_desc) global() argument
[all...]
/linux/lib/kunit/
H A Dkunit-example-test.c22 static void example_simple_test(struct kunit *test) in example_simple_test()
37 static int example_test_init(struct kunit *test) in example_test_init()
48 static void example_test_exit(struct kunit *test) in example_test_exit()
78 static void example_skip_test(struct kunit *test) in example_skip_test()
93 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test()
108 static void example_all_expect_macros_test(struct kunit *test) in example_all_expect_macros_test()
184 static void example_static_stub_test(struct kunit *test) in example_static_stub_test()
208 static void example_static_stub_using_fn_ptr_test(struct kunit *test) in example_static_stub_using_fn_ptr_test()
243 static void example_params_test(struct kunit *test) in example_params_test()
261 static void example_priv_test(struct kunit *test) in example_priv_test()
[all …]
H A Dkunit-test.c26 struct kunit *test = data; in kunit_test_successful_try() local
34 struct kunit *test = data; in kunit_test_no_catch() local
39 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch()
56 struct kunit *test = data; in kunit_test_unsuccessful_try() local
66 struct kunit *test = data; in kunit_test_catch() local
72 static void kunit_test_try_catch_unsuccessful_try_does_catch(struct kunit *test) in kunit_test_try_catch_unsuccessful_try_does_catch()
87 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init()
119 struct kunit *test = data; in kunit_test_null_dereference() local
127 static void kunit_test_fault_null_dereference(struct kunit *test) in kunit_test_fault_null_dereference()
163 struct kunit test; member
[all …]
H A Dassert_test.c11 #define ASSERT_TEST_EXPECT_CONTAIN(test, str, substr) KUNIT_EXPECT_TRUE(test, strstr(str, substr)) argument
12 #define ASSERT_TEST_EXPECT_NCONTAIN(test, str, substr) KUNIT_EXPECT_FALSE(test, strstr(str, substr)) argument
14 static void kunit_test_is_literal(struct kunit *test) in kunit_test_is_literal()
26 static void kunit_test_is_str_literal(struct kunit *test) in kunit_test_is_str_literal()
41 static char *get_str_from_stream(struct kunit *test, struct string_stream *stream) in get_str_from_stream()
51 static void kunit_test_assert_prologue(struct kunit *test) in kunit_test_assert_prologue()
83 static void verify_assert_print_msg(struct kunit *test, in verify_assert_print_msg()
99 static void kunit_test_assert_print_msg(struct kunit *test) in kunit_test_assert_print_msg()
118 static void validate_assert(assert_format_t format_func, struct kunit *test, in validate_assert()
137 static void kunit_test_unary_assert_format(struct kunit *test) in kunit_test_unary_assert_format()
[all …]
/linux/security/apparmor/
H A Dpolicy_unpack_test.c57 struct kunit *test, size_t buf_size) in build_aa_ext_struct()
113 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init()
128 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds()
137 static void policy_unpack_test_inbounds_when_out_of_bounds(struct kunit *test) in policy_unpack_test_inbounds_when_out_of_bounds()
144 static void policy_unpack_test_unpack_array_with_null_name(struct kunit *test) in policy_unpack_test_unpack_array_with_null_name()
157 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name()
171 static void policy_unpack_test_unpack_array_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_array_out_of_bounds()
185 static void policy_unpack_test_unpack_blob_with_null_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_null_name()
199 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name()
213 static void policy_unpack_test_unpack_blob_out_of_bounds(struct kunit *test) in policy_unpack_test_unpack_blob_out_of_bounds()
[all …]
/linux/sound/soc/codecs/
H A Dcs-amp-lib-test.c61 cs_amp_lib_test_cal_blob_dup(struct kunit * test) cs_amp_lib_test_cal_blob_dup() argument
75 cs_amp_lib_test_init_dummy_cal_blob(struct kunit * test,int num_amps) cs_amp_lib_test_init_dummy_cal_blob() argument
106 cs_amp_lib_test_get_target_uid(struct kunit * test) cs_amp_lib_test_get_target_uid() argument
135 cs_amp_lib_test_cal_data_too_short_test(struct kunit * test) cs_amp_lib_test_cal_data_too_short_test() argument
157 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_bad_count() local
175 cs_amp_lib_test_cal_count_too_big_test(struct kunit * test) cs_amp_lib_test_cal_count_too_big_test() argument
203 cs_amp_lib_test_no_cal_data_test(struct kunit * test) cs_amp_lib_test_no_cal_data_test() argument
227 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable() local
271 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_all_zeros() local
312 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_hp_cal_efi_variable() local
342 cs_amp_lib_test_get_hp_efi_cal(struct kunit * test) cs_amp_lib_test_get_hp_efi_cal() argument
361 cs_amp_lib_test_get_efi_cal_by_uid_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_uid_test() argument
395 cs_amp_lib_test_get_efi_cal_by_index_unchecked_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_unchecked_test() argument
426 cs_amp_lib_test_get_efi_cal_by_index_checked_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_checked_test() argument
462 cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test() argument
488 cs_amp_lib_test_get_efi_cal_by_index_fallback_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_by_index_fallback_test() argument
529 cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test() argument
558 cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test() argument
587 cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test() argument
605 cs_amp_lib_test_get_efi_cal_no_uid_no_index_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_no_uid_no_index_test() argument
626 cs_amp_lib_test_get_efi_cal_zero_not_matched_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_zero_not_matched_test() argument
653 cs_amp_lib_test_get_efi_cal_empty_entry_test(struct kunit * test) cs_amp_lib_test_get_efi_cal_empty_entry_test() argument
703 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_write_cal_coeff() local
722 cs_amp_lib_test_write_cal_data_test(struct kunit * test) cs_amp_lib_test_write_cal_data_test() argument
770 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_read_cal_coeff() local
787 cs_amp_lib_test_read_cal_data_test(struct kunit * test) cs_amp_lib_test_read_cal_data_test() argument
811 cs_amp_lib_test_write_ambient_test(struct kunit * test) cs_amp_lib_test_write_ambient_test() argument
845 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_set_efi_variable() local
881 cs_amp_lib_test_create_new_cal_efi(struct kunit * test) cs_amp_lib_test_create_new_cal_efi() argument
942 cs_amp_lib_test_create_new_cal_efi_indexed(struct kunit * test) cs_amp_lib_test_create_new_cal_efi_indexed() argument
995 cs_amp_lib_test_create_new_cal_efi_indexed_no_max(struct kunit * test) cs_amp_lib_test_create_new_cal_efi_indexed_no_max() argument
1050 cs_amp_lib_test_grow_append_cal_efi(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi() argument
1142 cs_amp_lib_test_grow_append_cal_efi_indexed(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi_indexed() argument
1223 cs_amp_lib_test_cal_efi_all_zeros_add_first(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first() argument
1253 cs_amp_lib_test_cal_efi_all_zeros_add_first_no_shrink(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_no_shrink() argument
1284 cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed() argument
1318 cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed_no_shrink(struct kunit * test) cs_amp_lib_test_cal_efi_all_zeros_add_first_indexed_no_shrink() argument
1353 cs_amp_lib_test_grow_append_cal_efi_indexed_no_max(struct kunit * test) cs_amp_lib_test_grow_append_cal_efi_indexed_no_max() argument
1459 cs_amp_lib_test_grow_cal_efi_replace_indexed(struct kunit * test) cs_amp_lib_test_grow_cal_efi_replace_indexed() argument
1554 cs_amp_lib_test_grow_cal_efi_replace_by_uid(struct kunit * test) cs_amp_lib_test_grow_cal_efi_replace_by_uid() argument
1649 cs_amp_lib_test_cal_efi_replace_by_uid(struct kunit * test) cs_amp_lib_test_cal_efi_replace_by_uid() argument
1723 cs_amp_lib_test_cal_efi_replace_by_index(struct kunit * test) cs_amp_lib_test_cal_efi_replace_by_index() argument
1801 cs_amp_lib_test_cal_efi_deduplicate(struct kunit * test) cs_amp_lib_test_cal_efi_deduplicate() argument
1892 cs_amp_lib_test_cal_efi_find_free(struct kunit * test) cs_amp_lib_test_cal_efi_find_free() argument
1973 cs_amp_lib_test_cal_efi_bad_cal_target(struct kunit * test) cs_amp_lib_test_cal_efi_bad_cal_target() argument
1996 cs_amp_lib_test_cal_efi_write_denied(struct kunit * test) cs_amp_lib_test_cal_efi_write_denied() argument
2032 cs_amp_lib_test_cal_efi_attr_preserved(struct kunit * test) cs_amp_lib_test_cal_efi_attr_preserved() argument
2066 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_set_hp_efi_cal_variable() local
2091 cs_amp_lib_test_cal_efi_update_hp(struct kunit * test) cs_amp_lib_test_cal_efi_update_hp() argument
2123 cs_amp_lib_test_spkid_lenovo_not_present(struct kunit * test) cs_amp_lib_test_spkid_lenovo_not_present() argument
2141 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_d0() local
2160 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_d1() local
2179 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_lenovo_00() local
2189 cs_amp_lib_test_spkid_lenovo_d0(struct kunit * test) cs_amp_lib_test_spkid_lenovo_d0() argument
2201 cs_amp_lib_test_spkid_lenovo_d1(struct kunit * test) cs_amp_lib_test_spkid_lenovo_d1() argument
2213 cs_amp_lib_test_spkid_lenovo_illegal(struct kunit * test) cs_amp_lib_test_spkid_lenovo_illegal() argument
2234 cs_amp_lib_test_spkid_lenovo_oversize(struct kunit * test) cs_amp_lib_test_spkid_lenovo_oversize() argument
2252 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_hp_30() local
2271 struct kunit *test = kunit_get_current_test(); cs_amp_lib_test_get_efi_variable_hp_31() local
2284 cs_amp_lib_test_spkid_hp_30(struct kunit * test) cs_amp_lib_test_spkid_hp_30() argument
2296 cs_amp_lib_test_spkid_hp_31(struct kunit * test) cs_amp_lib_test_spkid_hp_31() argument
2308 cs_amp_lib_test_case_init(struct kunit * test) cs_amp_lib_test_case_init() argument
[all...]
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_guc_relay_test.c25 static int relay_test_init(struct kunit *test) in relay_test_init()
65 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_always_fails() local
78 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_expects_pf2guc_relay() local
120 static void pf_rejects_guc2pf_too_short(struct kunit *test) in pf_rejects_guc2pf_too_short()
129 static void pf_rejects_guc2pf_too_long(struct kunit *test) in pf_rejects_guc2pf_too_long()
138 static void pf_rejects_guc2pf_no_payload(struct kunit *test) in pf_rejects_guc2pf_no_payload()
147 static void pf_fails_no_payload(struct kunit *test) in pf_fails_no_payload()
155 static void pf_fails_bad_origin(struct kunit *test) in pf_fails_bad_origin()
167 static void pf_fails_bad_type(struct kunit *test) in pf_fails_bad_type()
179 static void pf_txn_reports_error(struct kunit *test) in pf_txn_reports_error()
[all …]
H A Dxe_sriov_pf_service_kunit.c12 static int pf_service_test_init(struct kunit *test) in pf_service_test_init()
43 static void pf_negotiate_any(struct kunit *test) in pf_negotiate_any()
56 static void pf_negotiate_base_match(struct kunit *test) in pf_negotiate_base_match()
70 static void pf_negotiate_base_newer(struct kunit *test) in pf_negotiate_base_newer()
88 static void pf_negotiate_base_next(struct kunit *test) in pf_negotiate_base_next()
105 static void pf_negotiate_base_older(struct kunit *test) in pf_negotiate_base_older()
120 static void pf_negotiate_base_prev(struct kunit *test) in pf_negotiate_base_prev()
131 static void pf_negotiate_latest_match(struct kunit *test) in pf_negotiate_latest_match()
145 static void pf_negotiate_latest_newer(struct kunit *test) in pf_negotiate_latest_newer()
159 static void pf_negotiate_latest_next(struct kunit *test) in pf_negotiate_latest_next()
[all …]
/linux/drivers/clk/
H A Dclk-gate_test.c11 static void clk_gate_register_test_dev(struct kunit *test) 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()
47 static void clk_gate_register_test_parent_data(struct kunit *test) in clk_gate_register_test_parent_data()
67 static void clk_gate_register_test_parent_data_legacy(struct kunit *test) in clk_gate_register_test_parent_data_legacy()
87 static void clk_gate_register_test_parent_hw(struct kunit *test) in clk_gate_register_test_parent_hw()
105 static void clk_gate_register_test_hiword_invalid(struct kunit *test) in clk_gate_register_test_hiword_invalid()
137 static struct clk_gate_test_context *clk_gate_test_alloc_ctx(struct kunit *test) in clk_gate_test_alloc_ctx()
148 static void clk_gate_test_parent_rate(struct kunit *test) in clk_gate_test_parent_rate()
159 static void clk_gate_test_enable(struct kunit *test) in clk_gate_test_enable()
176 static void clk_gate_test_disable(struct kunit *test) in clk_gate_test_disable()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_proto_test.c26 static void cros_ec_proto_test_prepare_tx_legacy_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_normal()
69 static void cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize(struct kunit *test) in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize()
84 static void cros_ec_proto_test_prepare_tx_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_normal()
125 static void cros_ec_proto_test_prepare_tx_bad_msg_outsize(struct kunit *test) in cros_ec_proto_test_prepare_tx_bad_msg_outsize()
138 static void cros_ec_proto_test_check_result(struct kunit *test) in cros_ec_proto_test_check_result()
178 static void cros_ec_proto_test_query_all_pretest(struct kunit *test) in cros_ec_proto_test_query_all_pretest()
193 static void cros_ec_proto_test_query_all_normal(struct kunit *test) in cros_ec_proto_test_query_all_normal()
347 static void cros_ec_proto_test_query_all_no_pd_return_error(struct kunit *test) in cros_ec_proto_test_query_all_no_pd_return_error()
412 static void cros_ec_proto_test_query_all_no_pd_return0(struct kunit *test) in cros_ec_proto_test_query_all_no_pd_return0()
477 static void cros_ec_proto_test_query_all_legacy_normal_v3_return_error(struct kunit *test) in cros_ec_proto_test_query_all_legacy_normal_v3_return_error()
[all …]
/linux/mm/kmsan/
H A Dkmsan_test.c165 static void test_uninit_kmalloc(struct kunit *test) in test_uninit_kmalloc()
179 static void test_init_kmalloc(struct kunit *test) in test_init_kmalloc()
192 static void test_init_kzalloc(struct kunit *test) in test_init_kzalloc()
204 static void test_uninit_stack_var(struct kunit *test) in test_uninit_stack_var()
215 static void test_init_stack_var(struct kunit *test) in test_init_stack_var()
246 static void test_params(struct kunit *test) in test_params()
274 static void test_uninit_multiple_params(struct kunit *test) in test_uninit_multiple_params()
298 static void test_uninit_kmsan_check_memory(struct kunit *test) in test_uninit_kmsan_check_memory()
316 static void test_init_kmsan_vmap_vunmap(struct kunit *test) in test_init_kmsan_vmap_vunmap()
347 static void test_init_vmalloc(struct kunit *test) in test_init_vmalloc()
[all …]
/linux/kernel/events/
H A Dhw_breakpoint_test.c15 #define TEST_REQUIRES_BP_SLOTS(test, slots) \ argument
65 static void fill_one_bp_slot(struct kunit *test, int *id, int cpu, struct task_struct *tsk) in fill_one_bp_slot()
80 static bool fill_bp_slots(struct kunit *test, int *id, int cpu, struct task_struct *tsk, int skip) in fill_bp_slots()
93 static struct task_struct *get_other_task(struct kunit *test) in get_other_task()
122 static void test_one_cpu(struct kunit *test) in test_one_cpu()
131 static void test_many_cpus(struct kunit *test) in test_many_cpus()
146 static void test_one_task_on_all_cpus(struct kunit *test) in test_one_task_on_all_cpus()
159 static void test_two_tasks_on_all_cpus(struct kunit *test) in test_two_tasks_on_all_cpus()
177 static void test_one_task_on_one_cpu(struct kunit *test) in test_one_task_on_one_cpu()
193 static void test_one_task_mixed(struct kunit *test) in test_one_task_mixed()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_xsk.c209 __test_spec_init(struct test_spec * test,struct ifobject * ifobj_tx,struct ifobject * ifobj_rx) __test_spec_init() argument
271 test_init(struct test_spec * test,struct ifobject * ifobj_tx,struct ifobject * ifobj_rx,enum test_mode mode,const struct test_spec * test_to_run) test_init() argument
301 test_spec_reset(struct test_spec * test) test_spec_reset() argument
306 test_spec_set_xdp_prog(struct test_spec * test,struct bpf_program * xdp_prog_rx,struct bpf_program * xdp_prog_tx,struct bpf_map * xskmap_rx,struct bpf_map * xskmap_tx) test_spec_set_xdp_prog() argument
316 test_spec_set_mtu(struct test_spec * test,int mtu) test_spec_set_mtu() argument
369 pkt_stream_restore_default(struct test_spec * test) pkt_stream_restore_default() argument
497 pkt_stream_replace(struct test_spec * test,u32 nb_pkts,u32 pkt_len) pkt_stream_replace() argument
526 pkt_stream_replace_half(struct test_spec * test,u32 pkt_len,int offset) pkt_stream_replace_half() argument
536 pkt_stream_receive_half(struct test_spec * test) pkt_stream_receive_half() argument
562 pkt_stream_even_odd_sequence(struct test_spec * test) pkt_stream_even_odd_sequence() argument
586 release_even_odd_sequence(struct test_spec * test) release_even_odd_sequence() argument
685 pkt_stream_generate_custom(struct test_spec * test,struct pkt * pkts,u32 nb_pkts) pkt_stream_generate_custom() argument
969 __receive_pkts(struct test_spec * test,struct xsk_socket_info * xsk) __receive_pkts() argument
1091 all_packets_received(struct test_spec * test,struct xsk_socket_info * xsk,u32 sock_num,unsigned long * bitmap) all_packets_received() argument
1110 receive_pkts(struct test_spec * test) receive_pkts() argument
1299 all_packets_sent(struct test_spec * test,unsigned long * bitmap) all_packets_sent() argument
1304 send_pkts(struct test_spec * test,struct ifobject * ifobject) send_pkts() argument
1459 xsk_configure(struct test_spec * test,struct ifobject * ifobject,struct xsk_umem_info * umem,bool tx) xsk_configure() argument
1489 thread_common_ops_tx(struct test_spec * test,struct ifobject * ifobject) thread_common_ops_tx() argument
1549 thread_common_ops(struct test_spec * test,struct ifobject * ifobject) thread_common_ops() argument
1601 struct test_spec *test = (struct test_spec *)arg; worker_testapp_validate_tx() local
1631 struct test_spec *test = (struct test_spec *)arg; worker_testapp_validate_rx() local
1693 xdp_prog_changed_rx(struct test_spec * test) xdp_prog_changed_rx() argument
1700 xdp_prog_changed_tx(struct test_spec * test) xdp_prog_changed_tx() argument
1732 xsk_attach_xdp_progs(struct test_spec * test,struct ifobject * ifobj_rx,struct ifobject * ifobj_tx) xsk_attach_xdp_progs() argument
1752 clean_sockets(struct test_spec * test,struct ifobject * ifobj) clean_sockets() argument
1763 clean_umem(struct test_spec * test,struct ifobject * ifobj1,struct ifobject * ifobj2) clean_umem() argument
1773 __testapp_validate_traffic(struct test_spec * test,struct ifobject * ifobj1,struct ifobject * ifobj2) __testapp_validate_traffic() argument
1843 testapp_validate_traffic(struct test_spec * test) testapp_validate_traffic() argument
1871 testapp_validate_traffic_single_thread(struct test_spec * test,struct ifobject * ifobj) testapp_validate_traffic_single_thread() argument
1876 testapp_teardown(struct test_spec * test) testapp_teardown() argument
1901 testapp_bidirectional(struct test_spec * test) testapp_bidirectional() argument
1919 swap_xsk_resources(struct test_spec * test) swap_xsk_resources() argument
1937 testapp_xdp_prog_cleanup(struct test_spec * test) testapp_xdp_prog_cleanup() argument
1954 testapp_headroom(struct test_spec * test) testapp_headroom() argument
1960 testapp_stats_rx_dropped(struct test_spec * test) testapp_stats_rx_dropped() argument
1979 testapp_stats_tx_invalid_descs(struct test_spec * test) testapp_stats_tx_invalid_descs() argument
1987 testapp_stats_rx_full(struct test_spec * test) testapp_stats_rx_full() argument
2007 testapp_stats_fill_empty(struct test_spec * test) testapp_stats_fill_empty() argument
2026 testapp_send_receive_unaligned(struct test_spec * test) testapp_send_receive_unaligned() argument
2037 testapp_send_receive_unaligned_mb(struct test_spec * test) testapp_send_receive_unaligned_mb() argument
2047 testapp_single_pkt(struct test_spec * test) testapp_single_pkt() argument
2056 testapp_send_receive_mb(struct test_spec * test) testapp_send_receive_mb() argument
2065 testapp_invalid_desc_mb(struct test_spec * test) testapp_invalid_desc_mb() argument
2106 testapp_invalid_desc(struct test_spec * test) testapp_invalid_desc() argument
2152 testapp_xdp_drop(struct test_spec * test) testapp_xdp_drop() argument
2165 testapp_xdp_metadata_copy(struct test_spec * test) testapp_xdp_metadata_copy() argument
2180 testapp_xdp_shared_umem(struct test_spec * test) testapp_xdp_shared_umem() argument
2203 testapp_poll_txq_tmout(struct test_spec * test) testapp_poll_txq_tmout() argument
2213 testapp_poll_rxq_tmout(struct test_spec * test) testapp_poll_rxq_tmout() argument
2219 testapp_too_many_frags(struct test_spec * test) testapp_too_many_frags() argument
2333 testapp_send_receive(struct test_spec * test) testapp_send_receive() argument
2338 testapp_send_receive_2k_frame(struct test_spec * test) testapp_send_receive_2k_frame() argument
2347 testapp_poll_rx(struct test_spec * test) testapp_poll_rx() argument
2353 testapp_poll_tx(struct test_spec * test) testapp_poll_tx() argument
2359 testapp_aligned_inv_desc(struct test_spec * test) testapp_aligned_inv_desc() argument
2364 testapp_aligned_inv_desc_2k_frame(struct test_spec * test) testapp_aligned_inv_desc_2k_frame() argument
2371 testapp_unaligned_inv_desc(struct test_spec * test) testapp_unaligned_inv_desc() argument
2378 testapp_unaligned_inv_desc_4001_frame(struct test_spec * test) testapp_unaligned_inv_desc_4001_frame() argument
2398 testapp_aligned_inv_desc_mb(struct test_spec * test) testapp_aligned_inv_desc_mb() argument
2403 testapp_unaligned_inv_desc_mb(struct test_spec * test) testapp_unaligned_inv_desc_mb() argument
2410 testapp_xdp_metadata(struct test_spec * test) testapp_xdp_metadata() argument
2415 testapp_xdp_metadata_mb(struct test_spec * test) testapp_xdp_metadata_mb() argument
2421 testapp_hw_sw_min_ring_size(struct test_spec * test) testapp_hw_sw_min_ring_size() argument
2441 testapp_hw_sw_max_ring_size(struct test_spec * test) testapp_hw_sw_max_ring_size() argument
2475 testapp_xdp_adjust_tail(struct test_spec * test,int adjust_value) testapp_xdp_adjust_tail() argument
2489 testapp_adjust_tail(struct test_spec * test,u32 value,u32 pkt_len) testapp_adjust_tail() argument
2518 testapp_adjust_tail_shrink(struct test_spec * test) testapp_adjust_tail_shrink() argument
2524 testapp_adjust_tail_shrink_mb(struct test_spec * test) testapp_adjust_tail_shrink_mb() argument
2531 testapp_adjust_tail_grow(struct test_spec * test) testapp_adjust_tail_grow() argument
2540 testapp_adjust_tail_grow_mb(struct test_spec * test) testapp_adjust_tail_grow_mb() argument
2563 testapp_tx_queue_consumer(struct test_spec * test) testapp_tx_queue_consumer() argument
[all...]
/linux/tools/testing/scatterlist/
H A Dmain.c8 struct test { struct
30 static void fail(struct test *test, struct sg_table *st, const char *cond) in fail()
48 #define VALIDATE(cond, st, test) \ argument
55 struct test *test, tests[] = { in main() local
/linux/drivers/pinctrl/qcom/
H A Dtlmm-test.c145 static void tlmm_test_request_hard_irq(struct kunit *test, unsigned long irqflags) in tlmm_test_request_hard_irq() argument
154 tlmm_test_request_threaded_irq(struct kunit * test,unsigned long irqflags) tlmm_test_request_threaded_irq() argument
166 tlmm_test_silent(struct kunit * test,unsigned long irqflags) tlmm_test_silent() argument
188 tlmm_test_silent_rising(struct kunit * test) tlmm_test_silent_rising() argument
196 tlmm_test_silent_falling(struct kunit * test) tlmm_test_silent_falling() argument
204 tlmm_test_silent_low(struct kunit * test) tlmm_test_silent_low() argument
212 tlmm_test_silent_high(struct kunit * test) tlmm_test_silent_high() argument
220 tlmm_test_rising(struct kunit * test) tlmm_test_rising() argument
245 tlmm_test_falling(struct kunit * test) tlmm_test_falling() argument
270 tlmm_test_low(struct kunit * test) tlmm_test_low() argument
295 tlmm_test_high(struct kunit * test) tlmm_test_high() argument
320 tlmm_test_falling_in_handler(struct kunit * test) tlmm_test_falling_in_handler() argument
342 tlmm_test_rising_in_handler(struct kunit * test) tlmm_test_rising_in_handler() argument
364 tlmm_test_thread_rising(struct kunit * test) tlmm_test_thread_rising() argument
390 tlmm_test_thread_falling(struct kunit * test) tlmm_test_thread_falling() argument
417 tlmm_test_thread_high(struct kunit * test) tlmm_test_thread_high() argument
442 tlmm_test_thread_low(struct kunit * test) tlmm_test_thread_low() argument
468 tlmm_test_thread_rising_in_handler(struct kunit * test) tlmm_test_thread_rising_in_handler() argument
493 tlmm_test_thread_falling_in_handler(struct kunit * test) tlmm_test_thread_falling_in_handler() argument
517 tlmm_test_rising_while_disabled(struct kunit * test) tlmm_test_rising_while_disabled() argument
549 tlmm_test_init(struct kunit * test) tlmm_test_init() argument
[all...]
/linux/security/landlock/
H A Did.c44 static void __init test_init_min(struct kunit *const test) in test_init_min() argument
52 static void __init test_init_max(struct kunit *const test) in test_init_max() argument
60 static void __init test_init_once(struct kunit *const test) in test_init_once() argument
128 static void test_range1_rand0(struct kunit *const test) in test_range1_rand0() argument
142 test_range1_rand1(struct kunit * const test) test_range1_rand1() argument
156 test_range1_rand15(struct kunit * const test) test_range1_rand15() argument
170 test_range1_rand16(struct kunit * const test) test_range1_rand16() argument
184 test_range2_rand0(struct kunit * const test) test_range2_rand0() argument
198 test_range2_rand1(struct kunit * const test) test_range2_rand1() argument
212 test_range2_rand2(struct kunit * const test) test_range2_rand2() argument
226 test_range2_rand15(struct kunit * const test) test_range2_rand15() argument
240 test_range2_rand16(struct kunit * const test) test_range2_rand16() argument
[all...]
/linux/drivers/base/regmap/
H A Dregmap-kunit.c183 static struct regmap *gen_regmap(struct kunit *test, in gen_regmap()
255 struct kunit *test = dev_get_drvdata(dev); in reg_5_false() local
269 struct kunit *test = dev_get_drvdata(dev); in reg_default_test_cb() local
279 static void expect_reg_default_value(struct kunit *test, struct regmap *map, in expect_reg_default_value()
292 static void basic_read_write(struct kunit *test) in basic_read_write()
317 static void bulk_write(struct kunit *test) in bulk_write()
350 static void bulk_read(struct kunit *test) in bulk_read()
379 static void multi_write(struct kunit *test) in multi_write()
418 static void multi_read(struct kunit *test) in multi_read()
450 static void read_bypassed(struct kunit *test) in read_bypassed()
[all …]
/linux/kernel/kcsan/
H A Dkcsan_test.c35 #define KCSAN_TEST_REQUIRES(test, cond) do { \ argument
528 static void test_barrier_nothreads(struct kunit *test) in test_barrier_nothreads()
713 static void test_basic(struct kunit *test) in test_basic()
744 static void test_concurrent_races(struct kunit *test) in test_concurrent_races()
773 static void test_novalue_change(struct kunit *test) in test_novalue_change()
805 static void test_novalue_change_exception(struct kunit *test) in test_novalue_change_exception()
831 static void test_unknown_origin(struct kunit *test) in test_unknown_origin()
853 static void test_write_write_assume_atomic(struct kunit *test) in test_write_write_assume_atomic()
879 static void test_write_write_struct(struct kunit *test) in test_write_write_struct()
901 static void test_write_write_struct_part(struct kunit *test) in test_write_write_struct_part()
[all …]

12345678910>>...17