Home
last modified time | relevance | path

Searched refs:kunit (Results 1 – 25 of 347) sorted by relevance

12345678910>>...14

/linux-6.15/include/kunit/
H A Dresource.h153 int __kunit_add_resource(struct kunit *test,
169 static inline int kunit_add_resource(struct kunit *test, in kunit_add_resource()
191 static inline int kunit_add_named_resource(struct kunit *test, in kunit_add_named_resource()
237 kunit_alloc_and_get_resource(struct kunit *test, in kunit_alloc_and_get_resource()
280 static inline void *kunit_alloc_resource(struct kunit *test, in kunit_alloc_resource()
299 typedef bool (*kunit_resource_match_t)(struct kunit *test,
323 kunit_find_resource(struct kunit *test, in kunit_find_resource()
351 kunit_find_named_resource(struct kunit *test, in kunit_find_named_resource()
367 int kunit_destroy_resource(struct kunit *test,
476 void kunit_remove_action(struct kunit *test,
[all …]
H A Dclk.h9 struct kunit;
12 clk_get_kunit(struct kunit *test, struct device *dev, const char *con_id);
14 of_clk_get_kunit(struct kunit *test, struct device_node *np, int index);
17 clk_hw_get_clk_kunit(struct kunit *test, struct clk_hw *hw, const char *con_id);
19 clk_hw_get_clk_prepared_enabled_kunit(struct kunit *test, struct clk_hw *hw,
22 int clk_prepare_enable_kunit(struct kunit *test, struct clk *clk);
24 int clk_hw_register_kunit(struct kunit *test, struct device *dev, struct clk_hw *hw);
25 int of_clk_hw_register_kunit(struct kunit *test, struct device_node *node,
28 int of_clk_add_hw_provider_kunit(struct kunit *test, struct device_node *np,
H A Dplatform_device.h6 struct kunit;
11 kunit_platform_device_alloc(struct kunit *test, const char *name, int id);
12 int kunit_platform_device_add(struct kunit *test, struct platform_device *pdev);
14 int kunit_platform_device_prepare_wait_for_probe(struct kunit *test,
18 int kunit_platform_driver_register(struct kunit *test,
/linux-6.15/sound/soc/
H A Dsoc-topology-test.c46 struct kunit *kunit; member
242 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_comp()
284 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_ops()
346 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_fw()
385 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg()
435 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_magic()
490 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_abi()
545 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_size()
600 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()
654 kunit_comp->kunit = test; in snd_soc_tplg_test_load_pcm_tplg()
[all …]
/linux-6.15/lib/kunit/
H A Dkunit-test.c25 struct kunit *test = data; in kunit_test_successful_try()
33 struct kunit *test = data; in kunit_test_no_catch()
54 struct kunit *test = data; in kunit_test_unsuccessful_try()
64 struct kunit *test = data; in kunit_test_catch()
116 struct kunit *test = data; in kunit_test_null_dereference()
159 struct kunit test;
589 static void kunit_log_test(struct kunit *test) in kunit_log_test()
641 static void kunit_log_test(struct kunit *test) in kunit_log_test()
665 struct kunit fake; in kunit_status_set_failure_test()
676 struct kunit fake; in kunit_status_mark_skipped_test()
[all …]
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()
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()
275 static void example_slow_test(struct kunit *test) in example_slow_test()
[all …]
/linux-6.15/include/drm/
H A Ddrm_kunit_helpers.h17 struct kunit;
19 struct device *drm_kunit_helper_alloc_device(struct kunit *test);
20 void drm_kunit_helper_free_device(struct kunit *test, struct device *dev);
23 __drm_kunit_helper_alloc_drm_device_with_driver(struct kunit *test,
55 __drm_kunit_helper_alloc_drm_device(struct kunit *test, in __drm_kunit_helper_alloc_drm_device()
100 drm_kunit_helper_atomic_state_alloc(struct kunit *test,
105 drm_kunit_helper_create_primary_plane(struct kunit *test,
114 drm_kunit_helper_create_crtc(struct kunit *test,
121 int drm_kunit_add_mode_destroy_action(struct kunit *test,
125 drm_kunit_display_mode_from_cea_vic(struct kunit *test, struct drm_device *dev,
/linux-6.15/Documentation/dev-tools/kunit/
H A Drunning_tips.rst7 Using ``kunit.py run`` ("kunit tool")
18 ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run "$@" )
36 $ ./tools/testing/kunit/kunit.py run 'sysctl*'
43 $ ./tools/testing/kunit/kunit.py run 'sysctl*.*write*'
64 $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit/.kunitconfig
71 $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit
97 $ ./tools/testing/kunit/kunit.py run --kernel_args=param=42 --kernel_args=param2=false
126 …$ ./tools/testing/kunit/kunit.py run --kunitconfig=.kunit/ --kunitconfig=tools/testing/kunit/confi…
139 $ ./tools/testing/kunit/kunit.py run --make_options=CC=/usr/bin/gcc-6
147 …$ ./tools/testing/kunit/kunit.py run --make_options LLVM=1 --kunitconfig=.kunit/ --kunitconfig=too…
[all …]
H A Dstart.rst24 ./tools/testing/kunit/kunit.py run
30 This happens because internally kunit.py specifies ``.kunit``
77 tools/testing/kunit/kunit.py config
78 cat .kunit/.kunitconfig
99 ./tools/testing/kunit/kunit.py run \
105 ./tools/testing/kunit/kunit.py run \
120 cp .kunit/defconfig .kunit/.kunitconfig
135 ./tools/testing/kunit/kunit.py run "kunit_executor_test"
140 ./tools/testing/kunit/kunit.py run "example.example_simple_test"
146 ./tools/testing/kunit/kunit.py run "*.*64*"
[all …]
H A Drun_wrapper.rst19 ./tools/testing/kunit/kunit.py run
59 ./tools/testing/kunit/kunit.py run --help
111 ./tools/testing/kunit/kunit.py config
118 ./tools/testing/kunit/kunit.py build
126 ./tools/testing/kunit/kunit.py exec
141 ./tools/testing/kunit/kunit.py run --raw_output
153 dmesg | ./tools/testing/kunit/kunit.py parse
164 ./tools/testing/kunit/kunit.py run 'kunit-resource*'
201 ./tools/testing/kunit/kunit.py run --arch=x86_64
208 ./tools/testing/kunit/kunit.py run \
[all …]
/linux-6.15/drivers/gpu/drm/ttm/tests/
H A Dttm_kunit_helpers.h37 struct ttm_buffer_object *ttm_bo_kunit_init(struct kunit *test,
41 struct ttm_place *ttm_place_kunit_init(struct kunit *test, u32 mem_type,
45 struct ttm_test_devices *ttm_test_devices_basic(struct kunit *test);
46 struct ttm_test_devices *ttm_test_devices_all(struct kunit *test);
48 void ttm_test_devices_put(struct kunit *test, struct ttm_test_devices *devs);
51 int ttm_test_devices_init(struct kunit *test);
52 int ttm_test_devices_all_init(struct kunit *test);
53 void ttm_test_devices_fini(struct kunit *test);
/linux-6.15/lib/tests/
H A Dprintf_kunit.c154 test_basic(struct kunit *kunittest) in test_basic()
166 test_number(struct kunit *kunittest) in test_number()
388 addr(struct kunit *kunittest) in addr()
409 mac(struct kunit *kunittest) in mac()
421 ip4(struct kunit *kunittest) in ip4()
436 ip6(struct kunit *kunittest) in ip6()
441 uuid(struct kunit *kunittest) in uuid()
468 dentry(struct kunit *kunittest) in dentry()
547 bitmap(struct kunit *kunittest) in bitmap()
634 flags(struct kunit *kunittest) in flags()
[all …]
H A Dscanf_kunit.c203 static void numbers_simple(struct kunit *test) in numbers_simple()
397 static void numbers_list_l(struct kunit *test, const char *delim) in numbers_list_l()
407 static void numbers_list_d(struct kunit *test, const char *delim) in numbers_list_d()
437 static void numbers_list(struct kunit *test) in numbers_list()
512 static void numbers_list_field_width_typemax(struct kunit *test) in numbers_list_field_width_typemax()
596 static void numbers_slice(struct kunit *test) in numbers_slice()
618 static void numbers_prefix_overflow(struct kunit *test) in numbers_prefix_overflow()
713 static void test_simple_strtoull(struct kunit *test) in test_simple_strtoull()
722 static void test_simple_strtoll(struct kunit *test) in test_simple_strtoll()
731 static void test_simple_strtoul(struct kunit *test) in test_simple_strtoul()
[all …]
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()
75 static void list_test_list_del(struct kunit *test) in list_test_list_del()
130 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
189 static void list_test_list_move(struct kunit *test) in list_test_list_move()
821 static void hlist_test_init(struct kunit *test) in hlist_test_init()
892 static void hlist_test_del(struct kunit *test) in hlist_test_del()
929 static void hlist_test_add(struct kunit *test) in hlist_test_add()
953 static void hlist_test_fake(struct kunit *test) in hlist_test_fake()
984 static void hlist_test_empty(struct kunit *test) in hlist_test_empty()
[all …]
H A Dcrc_kunit.c221 crc_benchmark(struct kunit *test, in crc_benchmark()
275 static void crc7_be_test(struct kunit *test) in crc7_be_test()
299 static void crc16_test(struct kunit *test) in crc16_test()
304 static void crc16_benchmark(struct kunit *test) in crc16_benchmark()
323 static void crc_t10dif_test(struct kunit *test) in crc_t10dif_test()
353 static void crc32_le_test(struct kunit *test) in crc32_le_test()
377 static void crc32_be_test(struct kunit *test) in crc32_be_test()
407 static void crc32c_test(struct kunit *test) in crc32c_test()
412 static void crc32c_benchmark(struct kunit *test) in crc32c_benchmark()
431 static void crc64_be_test(struct kunit *test) in crc64_be_test()
[all …]
/linux-6.15/mm/kasan/
H A Dkasan_test_c.c91 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
330 static void page_alloc_uaf(struct kunit *test) in page_alloc_uaf()
449 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
648 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
680 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
714 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
855 static void ksize_uaf(struct kunit *test) in ksize_uaf()
892 static void rcu_uaf(struct kunit *test) in rcu_uaf()
1735 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
1786 static void vmap_tags(struct kunit *test) in vmap_tags()
[all …]
/linux-6.15/drivers/gpu/drm/vc4/tests/
H A Dvc4_mock.h9 struct drm_crtc *vc4_find_crtc_for_encoder(struct kunit *test, in vc4_find_crtc_for_encoder()
24 struct drm_plane *vc4_dummy_plane(struct kunit *test, struct drm_device *drm,
31 struct vc4_dummy_crtc *vc4_mock_pv(struct kunit *test,
44 struct vc4_dummy_output *vc4_dummy_output(struct kunit *test,
51 struct vc4_dev *vc4_mock_device(struct kunit *test);
52 struct vc4_dev *vc5_mock_device(struct kunit *test);
54 int vc4_mock_atomic_add_output(struct kunit *test,
57 int vc4_mock_atomic_del_output(struct kunit *test,
/linux-6.15/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3-test.c12 struct kunit *test;
117 struct kunit *test, const struct arm_smmu_ste *cur, in arm_smmu_v3_test_ste_expect_transition()
153 struct kunit *test, const struct arm_smmu_ste *cur, in arm_smmu_v3_test_ste_expect_non_hitless_transition()
161 struct kunit *test, const struct arm_smmu_ste *cur, in arm_smmu_v3_test_ste_expect_hitless_transition()
358 static void arm_smmu_v3_write_ste_test_s1_to_s2(struct kunit *test) in arm_smmu_v3_write_ste_test_s1_to_s2()
370 static void arm_smmu_v3_write_ste_test_s2_to_s1(struct kunit *test) in arm_smmu_v3_write_ste_test_s2_to_s1()
401 struct kunit *test, const struct arm_smmu_cd *cur, in arm_smmu_v3_test_cd_expect_transition()
437 struct kunit *test, const struct arm_smmu_cd *cur, in arm_smmu_v3_test_cd_expect_non_hitless_transition()
445 struct kunit *test, const struct arm_smmu_cd *cur, in arm_smmu_v3_test_cd_expect_hitless_transition()
477 static void arm_smmu_v3_write_cd_test_s1_clear(struct kunit *test) in arm_smmu_v3_write_cd_test_s1_clear()
[all …]
/linux-6.15/drivers/gpu/drm/tests/
H A Ddrm_connector_test.c60 static int drm_test_connector_init(struct kunit *test) in drm_test_connector_init()
93 static void drm_test_drmm_connector_init(struct kunit *test) in drm_test_drmm_connector_init()
109 static void drm_test_drmm_connector_init_null_ddc(struct kunit *test) in drm_test_drmm_connector_init_null_ddc()
125 static void drm_test_drmm_connector_init_type_valid(struct kunit *test) in drm_test_drmm_connector_init_type_valid()
196 static void drm_test_drm_connector_dynamic_init(struct kunit *test) in drm_test_drm_connector_dynamic_init()
209 static void drm_test_connector_dynamic_init_cleanup(struct kunit *test) in drm_test_connector_dynamic_init_cleanup()
252 static void test_connector_property(struct kunit *test, in test_connector_property()
648 static void drm_test_connector_hdmi_init_valid(struct kunit *test) in drm_test_connector_hdmi_init_valid()
940 static void drm_test_connector_hdmi_init_bpc_8(struct kunit *test) in drm_test_connector_hdmi_init_bpc_8()
981 static void drm_test_connector_hdmi_init_bpc_10(struct kunit *test) in drm_test_connector_hdmi_init_bpc_10()
[all …]
/linux-6.15/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()
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()
347 static void test_init_vmalloc(struct kunit *test) in test_init_vmalloc()
365 static void test_uaf(struct kunit *test) in test_uaf()
403 static void test_printk(struct kunit *test) in test_printk()
429 static void test_init_memcpy(struct kunit *test) in test_init_memcpy()
689 static int test_init(struct kunit *test) in test_init()
[all …]
/linux-6.15/drivers/clk/
H A Dclk_kunit_helpers.c23 int clk_prepare_enable_kunit(struct kunit *test, struct clk *clk) in clk_prepare_enable_kunit()
38 static struct clk *__clk_get_kunit(struct kunit *test, struct clk *clk) in __clk_get_kunit()
64 clk_get_kunit(struct kunit *test, struct device *dev, const char *con_id) in clk_get_kunit()
86 of_clk_get_kunit(struct kunit *test, struct device_node *np, int index) in of_clk_get_kunit()
108 clk_hw_get_clk_kunit(struct kunit *test, struct clk_hw *hw, const char *con_id) in clk_hw_get_clk_kunit()
138 clk_hw_get_clk_prepared_enabled_kunit(struct kunit *test, struct clk_hw *hw, in clk_hw_get_clk_prepared_enabled_kunit()
170 int clk_hw_register_kunit(struct kunit *test, struct device *dev, struct clk_hw *hw) in clk_hw_register_kunit()
194 int of_clk_hw_register_kunit(struct kunit *test, struct device_node *node, struct clk_hw *hw) in of_clk_hw_register_kunit()
222 int of_clk_add_hw_provider_kunit(struct kunit *test, struct device_node *np, in of_clk_add_hw_provider_kunit()
H 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 …]
/linux-6.15/security/landlock/
H A Did.c44 static void __init test_init_min(struct kunit *const test) in test_init_min()
52 static void __init test_init_max(struct kunit *const test) in test_init_max()
60 static void __init test_init_once(struct kunit *const test) in test_init_once()
122 static void test_range1_rand0(struct kunit *const test) in test_range1_rand0()
135 static void test_range1_rand1(struct kunit *const test) in test_range1_rand1()
148 static void test_range1_rand15(struct kunit *const test) in test_range1_rand15()
161 static void test_range1_rand16(struct kunit *const test) in test_range1_rand16()
174 static void test_range2_rand0(struct kunit *const test) in test_range2_rand0()
187 static void test_range2_rand1(struct kunit *const test) in test_range2_rand1()
200 static void test_range2_rand2(struct kunit *const test) in test_range2_rand2()
[all …]
/linux-6.15/security/apparmor/
H A Dpolicy_unpack_test.c55 struct kunit *test, size_t buf_size) in build_aa_ext_struct()
111 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init()
126 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds()
155 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name()
197 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name()
242 static void policy_unpack_test_unpack_str_with_name(struct kunit *test) in policy_unpack_test_unpack_str_with_name()
405 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
421 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_2()
458 static void policy_unpack_test_unpack_u32_with_name(struct kunit *test) in policy_unpack_test_unpack_u32_with_name()
508 static void policy_unpack_test_unpack_u64_with_name(struct kunit *test) in policy_unpack_test_unpack_u64_with_name()
[all …]
/linux-6.15/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()
78 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_expects_pf2guc_relay()
167 static void pf_fails_bad_type(struct kunit *test) in pf_fails_bad_type()
211 static void pf_sends_pf2guc(struct kunit *test) in pf_sends_pf2guc()
226 struct kunit *test = kunit_get_current_test(); in replacement_xe_guc_ct_send_recv_loopback_relay()
279 static void pf_loopback_nop(struct kunit *test) in pf_loopback_nop()
307 static void pf_loopback_echo(struct kunit *test) in pf_loopback_echo()
340 static void pf_loopback_fail(struct kunit *test) in pf_loopback_fail()
363 static void pf_loopback_busy(struct kunit *test) in pf_loopback_busy()
[all …]

12345678910>>...14