Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.3-rc2/mm/kasan/
A Dkasan_test.c106 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
303 static void pagealloc_uaf(struct kunit *test) in pagealloc_uaf()
445 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
631 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
663 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
697 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
889 static void ksize_uaf(struct kunit *test) in ksize_uaf()
1009 static void kasan_memchr(struct kunit *test) in kasan_memchr()
1206 static void rcu_uaf(struct kunit *test) in rcu_uaf()
1280 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
[all …]
/linux-6.3-rc2/lib/
A Dlist-test.c17 static void list_test_list_init(struct kunit *test) in list_test_list_init()
46 static void list_test_list_add(struct kunit *test) in list_test_list_add()
74 static void list_test_list_del(struct kunit *test) in list_test_list_del()
125 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
184 static void list_test_list_move(struct kunit *test) in list_test_list_move()
812 static void hlist_test_init(struct kunit *test) in hlist_test_init()
883 static void hlist_test_del(struct kunit *test) in hlist_test_del()
920 static void hlist_test_add(struct kunit *test) in hlist_test_add()
944 static void hlist_test_fake(struct kunit *test) in hlist_test_fake()
975 static void hlist_test_empty(struct kunit *test) in hlist_test_empty()
[all …]
A Dcpumask_kunit.c16 #define EXPECT_FOR_EACH_CPU_EQ(test, mask) \ argument
26 #define EXPECT_FOR_EACH_CPU_OP_EQ(test, op, mask1, mask2) \ argument
39 #define EXPECT_FOR_EACH_CPU_WRAP_EQ(test, mask) \ argument
49 #define EXPECT_FOR_EACH_CPU_BUILTIN_EQ(test, name) \ argument
62 static void test_cpumask_weight(struct kunit *test) in test_cpumask_weight()
73 static void test_cpumask_first(struct kunit *test) in test_cpumask_first()
83 static void test_cpumask_last(struct kunit *test) in test_cpumask_last()
91 static void test_cpumask_next(struct kunit *test) in test_cpumask_next()
103 static void test_cpumask_iterators(struct kunit *test) in test_cpumask_iterators()
117 static void test_cpumask_iterators_builtin(struct kunit *test) in test_cpumask_iterators_builtin()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/tests/
A Ddrm_cmdline_parser_test.c14 static void drm_test_cmdline_force_e_only(struct kunit *test) in drm_test_cmdline_force_e_only()
112 static void drm_test_cmdline_res(struct kunit *test) in drm_test_cmdline_res()
134 static void drm_test_cmdline_res_vesa(struct kunit *test) in drm_test_cmdline_res_vesa()
178 static void drm_test_cmdline_res_rblank(struct kunit *test) in drm_test_cmdline_res_rblank()
200 static void drm_test_cmdline_res_bpp(struct kunit *test) in drm_test_cmdline_res_bpp()
485 static void drm_test_cmdline_name(struct kunit *test) in drm_test_cmdline_name()
497 static void drm_test_cmdline_name_bpp(struct kunit *test) in drm_test_cmdline_name_bpp()
538 static void drm_test_cmdline_rotate_0(struct kunit *test) in drm_test_cmdline_rotate_0()
630 static void drm_test_cmdline_hmirror(struct kunit *test) in drm_test_cmdline_hmirror()
653 static void drm_test_cmdline_vmirror(struct kunit *test) in drm_test_cmdline_vmirror()
[all …]
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()
113 static void drm_test_format_block_height_tiled(struct kunit *test) in drm_test_format_block_height_tiled()
124 static void drm_test_format_min_pitch_invalid(struct kunit *test) in drm_test_format_min_pitch_invalid()
225 static void drm_test_format_min_pitch_two_plane(struct kunit *test) in drm_test_format_min_pitch_two_plane()
[all …]
A Ddrm_mm_test.c194 static void drm_test_mm_init(struct kunit *test) in drm_test_mm_init()
248 static void drm_test_mm_debug(struct kunit *test) in drm_test_mm_debug()
466 static void drm_test_mm_reserve(struct kunit *test) in drm_test_mm_reserve()
663 static void drm_test_mm_insert(struct kunit *test) in drm_test_mm_insert()
679 static void drm_test_mm_replace(struct kunit *test) in drm_test_mm_replace()
898 static int insert_outside_range(struct kunit *test) in insert_outside_range()
991 static void drm_test_mm_frag(struct kunit *test) in drm_test_mm_frag()
1053 static void drm_test_mm_align(struct kunit *test) in drm_test_mm_align()
1390 static void drm_test_mm_evict(struct kunit *test) in drm_test_mm_evict()
1810 static void drm_test_mm_lowest(struct kunit *test) in drm_test_mm_lowest()
[all …]
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()
158 static void drm_test_damage_iter_no_damage_src_moved(struct kunit *test) in drm_test_damage_iter_no_damage_src_moved()
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()
274 static void drm_test_damage_iter_single_damage(struct kunit *test) in drm_test_damage_iter_single_damage()
470 static void drm_test_damage_iter_damage(struct kunit *test) in drm_test_damage_iter_damage()
528 static void drm_test_damage_iter_damage_one_outside(struct kunit *test) in drm_test_damage_iter_damage_one_outside()
[all …]
/linux-6.3-rc2/include/kunit/
A Dtest.h440 #define kunit_info(test, fmt, ...) \ argument
451 #define kunit_warn(test, fmt, ...) \ argument
462 #define kunit_err(test, fmt, ...) \ argument
473 #define KUNIT_SUCCEED(test) do {} while (0) argument
732 #define KUNIT_EXPECT_TRUE(test, condition) \ argument
772 #define KUNIT_EXPECT_EQ(test, left, right) \ argument
814 #define KUNIT_EXPECT_NE(test, left, right) \ argument
856 #define KUNIT_EXPECT_LT(test, left, right) \ argument
877 #define KUNIT_EXPECT_LE(test, left, right) \ argument
1343 #define KUNIT_ASSERT_NULL(test, ptr) \ argument
[all …]
/linux-6.3-rc2/security/apparmor/
A Dpolicy_unpack_test.c55 struct kunit *test, size_t buf_size) in build_aa_ext_struct()
112 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init()
127 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds()
156 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name()
198 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name()
243 static void policy_unpack_test_unpack_str_with_name(struct kunit *test) in policy_unpack_test_unpack_str_with_name()
400 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
416 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_2()
453 static void policy_unpack_test_unpack_u32_with_name(struct kunit *test) in policy_unpack_test_unpack_u32_with_name()
503 static void policy_unpack_test_unpack_u64_with_name(struct kunit *test) in policy_unpack_test_unpack_u64_with_name()
[all …]
/linux-6.3-rc2/drivers/mmc/core/
A Dmmc_test.c189 static void mmc_test_prepare_sbc(struct mmc_test_card *test, in mmc_test_prepare_sbc()
209 static void mmc_test_prepare_mrq(struct mmc_test_card *test, in mmc_test_prepare_mrq()
258 static int mmc_test_wait_busy(struct mmc_test_card *test) in mmc_test_wait_busy()
660 static int mmc_test_cleanup(struct mmc_test_card *test) in mmc_test_cleanup()
790 static int mmc_test_start_areq(struct mmc_test_card *test, in mmc_test_start_areq()
930 static int mmc_test_transfer(struct mmc_test_card *test, in mmc_test_transfer()
1115 static int mmc_test_pow2_read(struct mmc_test_card *test) in mmc_test_pow2_read()
1315 static int mmc_test_read_high(struct mmc_test_card *test) in mmc_test_read_high()
1499 static int mmc_test_area_fill(struct mmc_test_card *test) in mmc_test_area_fill()
2320 static int mmc_test_reset(struct mmc_test_card *test) in mmc_test_reset()
[all …]
/linux-6.3-rc2/drivers/clk/
A Dclk-gate_test.c11 static void clk_gate_register_test_dev(struct kunit *test) in clk_gate_register_test_dev()
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()
203 static int clk_gate_test_init(struct kunit *test) in clk_gate_test_init()
224 static void clk_gate_test_exit(struct kunit *test) in clk_gate_test_exit()
239 static void clk_gate_test_invert_enable(struct kunit *test) in clk_gate_test_invert_enable()
282 static int clk_gate_test_invert_init(struct kunit *test) in clk_gate_test_invert_init()
355 static int clk_gate_test_hiword_init(struct kunit *test) in clk_gate_test_hiword_init()
384 static void clk_gate_test_is_enabled(struct kunit *test) in clk_gate_test_is_enabled()
[all …]
A Dclk_test.c167 static int clk_test_init(struct kunit *test) in clk_test_init()
172 static int clk_maximize_test_init(struct kunit *test) in clk_maximize_test_init()
177 static int clk_minimize_test_init(struct kunit *test) in clk_minimize_test_init()
182 static void clk_test_exit(struct kunit *test) in clk_test_exit()
192 static void clk_test_get_rate(struct kunit *test) in clk_test_get_rate()
213 static void clk_test_set_get_rate(struct kunit *test) in clk_test_set_get_rate()
238 static void clk_test_set_set_get_rate(struct kunit *test) in clk_test_set_set_get_rate()
306 static int clk_uncached_test_init(struct kunit *test) in clk_uncached_test_init()
428 clk_multiple_parents_mux_test_init(struct kunit *test) in clk_multiple_parents_mux_test_init()
467 clk_multiple_parents_mux_test_exit(struct kunit *test) in clk_multiple_parents_mux_test_exit()
[all …]
/linux-6.3-rc2/lib/kunit/
A Dkunit-test.c19 struct kunit *test = data; in kunit_test_successful_try() local
27 struct kunit *test = data; in kunit_test_no_catch() local
48 struct kunit *test = data; in kunit_test_unsuccessful_try() local
58 struct kunit *test = data; in kunit_test_catch() local
78 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init()
111 struct kunit test; member
354 static void kunit_resource_test_static(struct kunit *test) in kunit_resource_test_static()
369 static void kunit_resource_test_named(struct kunit *test) in kunit_resource_test_named()
405 static int kunit_resource_test_init(struct kunit *test) in kunit_resource_test_init()
419 static void kunit_resource_test_exit(struct kunit *test) in kunit_resource_test_exit()
[all …]
/linux-6.3-rc2/kernel/events/
A Dhw_breakpoint_test.c15 #define TEST_REQUIRES_BP_SLOTS(test, slots) \ argument
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()
213 static void test_two_tasks_on_one_cpu(struct kunit *test) in test_two_tasks_on_one_cpu()
294 static int test_init(struct kunit *test) in test_init()
[all …]
/linux-6.3-rc2/tools/testing/scatterlist/
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-6.3-rc2/drivers/platform/chrome/
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()
84 static void cros_ec_proto_test_prepare_tx_normal(struct kunit *test) in cros_ec_proto_test_prepare_tx_normal()
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()
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()
804 static void cros_ec_proto_test_query_all_no_mkbp(struct kunit *test) in cros_ec_proto_test_query_all_no_mkbp()
1540 static void cros_ec_proto_test_cmd_xfer_normal(struct kunit *test) in cros_ec_proto_test_cmd_xfer_normal()
2596 static void cros_ec_proto_test_ec_cmd(struct kunit *test) in cros_ec_proto_test_ec_cmd()
2647 static int cros_ec_proto_test_init(struct kunit *test) in cros_ec_proto_test_init()
[all …]
/linux-6.3-rc2/drivers/thunderbolt/
A Dtest.c31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init()
72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host()
406 static void tb_test_path_basic(struct kunit *test) in tb_test_path_basic()
1317 static void tb_test_tunnel_pcie(struct kunit *test) in tb_test_tunnel_pcie()
1372 static void tb_test_tunnel_dp(struct kunit *test) in tb_test_tunnel_dp()
1456 static void tb_test_tunnel_dp_tree(struct kunit *test) in tb_test_tunnel_dp_tree()
1586 static void tb_test_tunnel_usb3(struct kunit *test) in tb_test_tunnel_usb3()
1707 static void tb_test_tunnel_dma(struct kunit *test) in tb_test_tunnel_dma()
1750 static void tb_test_tunnel_dma_rx(struct kunit *test) in tb_test_tunnel_dma_rx()
1787 static void tb_test_tunnel_dma_tx(struct kunit *test) in tb_test_tunnel_dma_tx()
[all …]
/linux-6.3-rc2/mm/kfence/
A Dkfence_test.c35 #define KFENCE_TEST_REQUIRES(test, cond) do { \ argument
384 static void test_double_free(struct kunit *test) in test_double_free()
416 static void test_corruption(struct kunit *test) in test_corruption()
530 static void test_free_bulk(struct kunit *test) in test_free_bulk()
552 static void test_init_on_free(struct kunit *test) in test_init_on_free()
585 static void test_memcache_ctor(struct kunit *test) in test_memcache_ctor()
603 static void test_gfpzero(struct kunit *test) in test_gfpzero()
640 static void test_invalid_access(struct kunit *test) in test_invalid_access()
690 static void test_krealloc(struct kunit *test) in test_krealloc()
800 static int test_init(struct kunit *test) in test_init()
[all …]
/linux-6.3-rc2/mm/kmsan/
A Dkmsan_test.c154 static void test_uninit_kmalloc(struct kunit *test) in test_uninit_kmalloc()
168 static void test_init_kmalloc(struct kunit *test) in test_init_kmalloc()
181 static void test_init_kzalloc(struct kunit *test) in test_init_kzalloc()
193 static void test_uninit_stack_var(struct kunit *test) in test_uninit_stack_var()
204 static void test_init_stack_var(struct kunit *test) in test_init_stack_var()
235 static void test_params(struct kunit *test) in test_params()
336 static void test_init_vmalloc(struct kunit *test) in test_init_vmalloc()
354 static void test_uaf(struct kunit *test) in test_uaf()
392 static void test_printk(struct kunit *test) in test_printk()
527 static int test_init(struct kunit *test) in test_init()
[all …]
/linux-6.3-rc2/net/mptcp/
A Dtoken_test.c6 static struct mptcp_subflow_request_sock *build_req_sock(struct kunit *test) in build_req_sock()
18 static void mptcp_token_test_req_basic(struct kunit *test) in mptcp_token_test_req_basic()
32 static struct inet_connection_sock *build_icsk(struct kunit *test) in build_icsk()
42 static struct mptcp_subflow_context *build_ctx(struct kunit *test) in build_ctx()
52 static struct mptcp_sock *build_msk(struct kunit *test) in build_msk()
66 static void mptcp_token_test_msk_basic(struct kunit *test) in mptcp_token_test_msk_basic()
89 static void mptcp_token_test_accept(struct kunit *test) in mptcp_token_test_accept()
108 static void mptcp_token_test_destroyed(struct kunit *test) in mptcp_token_test_destroyed()
/linux-6.3-rc2/kernel/kcsan/
A Dkcsan_test.c35 #define KCSAN_TEST_REQUIRES(test, cond) do { \ argument
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()
831 static void test_unknown_origin(struct kunit *test) in test_unknown_origin()
1004 static void test_data_race(struct kunit *test) in test_data_race()
1213 static void test_atomic_builtins(struct kunit *test) in test_atomic_builtins()
1283 static void test_correct_barrier(struct kunit *test) in test_correct_barrier()
1302 static void test_missing_barrier(struct kunit *test) in test_missing_barrier()
1497 static int test_init(struct kunit *test) in test_init()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dtest_sock_addr.c644 static int load_insns(const struct sock_addr_test *test, in load_insns()
697 static int bind4_prog_load(const struct sock_addr_test *test) in bind4_prog_load()
702 static int bind6_prog_load(const struct sock_addr_test *test) in bind6_prog_load()
707 static int connect4_prog_load(const struct sock_addr_test *test) in connect4_prog_load()
712 static int connect6_prog_load(const struct sock_addr_test *test) in connect6_prog_load()
717 static int xmsg_ret_only_prog_load(const struct sock_addr_test *test, in xmsg_ret_only_prog_load()
733 static int sendmsg_deny_prog_load(const struct sock_addr_test *test) in sendmsg_deny_prog_load()
743 static int recvmsg_deny_prog_load(const struct sock_addr_test *test) in recvmsg_deny_prog_load()
1143 static int init_addrs(const struct sock_addr_test *test, in init_addrs()
1168 static int run_bind_test_case(const struct sock_addr_test *test) in run_bind_test_case()
[all …]
A Dxskxceiver.c123 static char *mode_string(struct test_spec *test) in mode_string()
137 static void report_failure(struct test_spec *test) in report_failure()
530 static void test_spec_reset(struct test_spec *test) in test_spec_reset()
1298 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_tx() local
1323 struct test_spec *test = (struct test_spec *)arg; in worker_testapp_validate_rx() local
1474 static void testapp_teardown(struct test_spec *test) in testapp_teardown()
1498 static void testapp_bidi(struct test_spec *test) in testapp_bidi()
1528 static void testapp_bpf_res(struct test_spec *test) in testapp_bpf_res()
1540 static void testapp_headroom(struct test_spec *test) in testapp_headroom()
1676 static void testapp_xdp_drop(struct test_spec *test) in testapp_xdp_drop()
[all …]
/linux-6.3-rc2/sound/soc/
A Dsoc-topology-test.c28 static int snd_soc_tplg_test_init(struct kunit *test) in snd_soc_tplg_test_init()
40 static void snd_soc_tplg_test_exit(struct kunit *test) in snd_soc_tplg_test_exit()
242 static void snd_soc_tplg_test_load_with_null_comp(struct kunit *test) in snd_soc_tplg_test_load_with_null_comp()
284 static void snd_soc_tplg_test_load_with_null_ops(struct kunit *test) in snd_soc_tplg_test_load_with_null_ops()
346 static void snd_soc_tplg_test_load_with_null_fw(struct kunit *test) in snd_soc_tplg_test_load_with_null_fw()
383 static void snd_soc_tplg_test_load_empty_tplg(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg()
433 static void snd_soc_tplg_test_load_empty_tplg_bad_magic(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg_bad_magic()
488 static void snd_soc_tplg_test_load_empty_tplg_bad_abi(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg_bad_abi()
543 static void snd_soc_tplg_test_load_empty_tplg_bad_size(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg_bad_size()
652 static void snd_soc_tplg_test_load_pcm_tplg(struct kunit *test) in snd_soc_tplg_test_load_pcm_tplg()
[all …]
/linux-6.3-rc2/arch/s390/lib/
A Dtest_kprobes.c11 static void setup_kprobe(struct kunit *test, struct kprobe *kp, in setup_kprobe()
19 static void test_kprobe_offset(struct kunit *test, struct kprobe *kp, in test_kprobe_offset()
36 static void test_kprobe_odd(struct kunit *test) in test_kprobe_odd()
42 static void test_kprobe_in_insn4(struct kunit *test) in test_kprobe_in_insn4()
48 static void test_kprobe_in_insn6_lo(struct kunit *test) in test_kprobe_in_insn6_lo()
54 static void test_kprobe_in_insn6_hi(struct kunit *test) in test_kprobe_in_insn6_hi()

Completed in 98 milliseconds

12345678910>>...14