/linux-6.3-rc2/Documentation/dev-tools/kunit/ |
A D | running_tips.rst | 7 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 197 $ modprobe kunit-example-test [all …]
|
A D | start.rst | 24 ./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 …]
|
A D | run_wrapper.rst | 19 ./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 …]
|
A D | faq.rst | 34 (``tools/testing/kunit/kunit.py``) that might not support some architectures 35 (see :ref:`kunit-on-qemu`). 40 For more information, see :ref:`kunit-on-non-uml`. 73 1. Run ``./tools/testing/kunit/kunit.py run`` with the ``--raw_output`` 76 2. Instead of running ``kunit.py run``, try running ``kunit.py config``, 77 ``kunit.py build``, and ``kunit.py exec`` independently. This can help track 79 can run it manually against ``stdin`` or a file with ``kunit.py parse``.) 82 after building the UML kernel (for example, by using ``kunit.py build``). 89 around, so you can see what config was used after running ``kunit.py run``. 101 can be parsed with ``kunit.py parse``. For more details, see :ref:`kunit-on-qemu`. [all …]
|
/linux-6.3-rc2/sound/soc/ |
A D | soc-topology-test.c | 52 struct kunit *kunit; member 250 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_comp() 292 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_ops() 354 kunit_comp->kunit = test; in snd_soc_tplg_test_load_with_null_fw() 393 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg() 443 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_magic() 498 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_abi() 553 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_size() 608 kunit_comp->kunit = test; in snd_soc_tplg_test_load_empty_tplg_bad_payload_size() 662 kunit_comp->kunit = test; in snd_soc_tplg_test_load_pcm_tplg() [all …]
|
/linux-6.3-rc2/include/kunit/ |
A D | resource.h | 153 int __kunit_add_resource(struct kunit *test, 169 static inline int kunit_add_resource(struct kunit *test, in kunit_add_resource() 180 kunit_find_named_resource(struct kunit *test, const char *name); 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, 309 static inline bool kunit_resource_name_match(struct kunit *test, in kunit_resource_name_match() 323 kunit_find_resource(struct kunit *test, in kunit_find_resource() 351 kunit_find_named_resource(struct kunit *test, in kunit_find_named_resource() [all …]
|
/linux-6.3-rc2/mm/kasan/ |
A D | kasan_test.c | 106 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/kunit/ |
A D | kunit-test.c | 19 struct kunit *test = data; in kunit_test_successful_try() 27 struct kunit *test = data; in kunit_test_no_catch() 48 struct kunit *test = data; in kunit_test_unsuccessful_try() 58 struct kunit *test = data; in kunit_test_catch() 78 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init() 111 struct kunit test; 405 static int kunit_resource_test_init(struct kunit *test) in kunit_resource_test_init() 446 static void kunit_log_test(struct kunit *test); 458 static void kunit_log_test(struct kunit *test) in kunit_log_test() 486 struct kunit fake; in kunit_status_set_failure_test() [all …]
|
A D | Makefile | 1 obj-$(CONFIG_KUNIT) += kunit.o 3 kunit-objs += test.o \ 12 kunit-objs += debugfs.o 18 obj-$(CONFIG_KUNIT_TEST) += kunit-test.o 25 obj-$(CONFIG_KUNIT_EXAMPLE_TEST) += kunit-example-test.o
|
A D | executor_test.c | 11 static void kfree_at_end(struct kunit *test, const void *to_free); 12 static struct kunit_suite *alloc_fake_suite(struct kunit *test, 16 static void dummy_test(struct kunit *test) {} in dummy_test() 25 static void parse_filter_test(struct kunit *test) in parse_filter_test() 42 static void filter_suites_test(struct kunit *test) in filter_suites_test() 66 static void filter_suites_test_glob_test(struct kunit *test) in filter_suites_test_glob_test() 93 static void filter_suites_to_empty_test(struct kunit *test) in filter_suites_to_empty_test() 136 static void kfree_at_end(struct kunit *test, const void *to_free) in kfree_at_end() 145 static struct kunit_suite *alloc_fake_suite(struct kunit *test, in alloc_fake_suite()
|
A D | kunit-example-test.c | 22 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() 58 static void example_skip_test(struct kunit *test) in example_skip_test() 73 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test() 88 static void example_all_expect_macros_test(struct kunit *test) in example_all_expect_macros_test() 154 static void example_static_stub_test(struct kunit *test) in example_static_stub_test()
|
A D | test.c | 95 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats() 165 struct kunit *test = is_test ? test_or_suite : NULL; in kunit_print_ok_not_ok() 283 static void __noreturn kunit_abort(struct kunit *test) in kunit_abort() 296 void kunit_do_failed_assertion(struct kunit *test, in kunit_do_failed_assertion() 362 static void kunit_run_case_cleanup(struct kunit *test, in kunit_run_case_cleanup() 372 struct kunit *test; 380 struct kunit *test = ctx->test; in kunit_try_run_case() 399 struct kunit *test = ctx->test; in kunit_catch_run_case() 435 struct kunit *test) in kunit_run_case_catch_errors() 729 void kunit_kfree(struct kunit *test, const void *ptr) in kunit_kfree() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/vc4/tests/ |
A D | vc4_mock.h | 9 struct drm_crtc *vc4_find_crtc_for_encoder(struct kunit *test, in vc4_find_crtc_for_encoder() 28 struct vc4_dummy_plane *vc4_dummy_plane(struct kunit *test, 36 struct vc4_dummy_crtc *vc4_mock_pv(struct kunit *test, 46 struct vc4_dummy_output *vc4_dummy_output(struct kunit *test, 53 struct vc4_dev *vc4_mock_device(struct kunit *test); 54 struct vc4_dev *vc5_mock_device(struct kunit *test); 56 int vc4_mock_atomic_add_output(struct kunit *test, 59 int vc4_mock_atomic_del_output(struct kunit *test,
|
/linux-6.3-rc2/lib/ |
A D | list-test.c | 17 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 D | slub_kunit.c | 28 static void test_clobber_zone(struct kunit *test) in test_clobber_zone() 46 static void test_next_pointer(struct kunit *test) in test_next_pointer() 91 static void test_first_word(struct kunit *test) in test_first_word() 106 static void test_clobber_50th_byte(struct kunit *test) in test_clobber_50th_byte() 122 static void test_clobber_redzone_free(struct kunit *test) in test_clobber_redzone_free() 139 static void test_kmalloc_redzone_access(struct kunit *test) in test_kmalloc_redzone_access() 160 static int test_init(struct kunit *test) in test_init()
|
/linux-6.3-rc2/mm/kmsan/ |
A D | kmsan_test.c | 154 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/security/apparmor/ |
A D | policy_unpack_test.c | 55 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/clk/ |
A D | clk-gate_test.c | 11 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 D | clk_test.c | 167 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/arch/s390/lib/ |
A D | test_kprobes.c | 11 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()
|
/linux-6.3-rc2/kernel/events/ |
A D | hw_breakpoint_test.c | 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() 245 static void test_task_on_all_and_one_cpu(struct kunit *test) in test_task_on_all_and_one_cpu() 294 static int test_init(struct kunit *test) in test_init() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/tests/ |
A D | drm_format_test.c | 12 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 D | drm_damage_helper_test.c | 26 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/net/mptcp/ |
A D | token_test.c | 6 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/include/drm/ |
A D | drm_kunit_helpers.h | 9 struct kunit; 11 struct device *drm_kunit_helper_alloc_device(struct kunit *test); 12 void drm_kunit_helper_free_device(struct kunit *test, struct device *dev); 15 __drm_kunit_helper_alloc_drm_device_with_driver(struct kunit *test, 47 __drm_kunit_helper_alloc_drm_device(struct kunit *test, in __drm_kunit_helper_alloc_drm_device()
|