Home
last modified time | relevance | path

Searched defs:test (Results 26 – 50 of 375) sorted by relevance

12345678910>>...15

/Linux-v6.6/tools/testing/selftests/bpf/
Dtest_sock_addr.c644 static int load_insns(const struct sock_addr_test *test, in load_insns()
663 static int load_path(const struct sock_addr_test *test, const char *path) in load_path()
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()
728 static int sendmsg_allow_prog_load(const struct sock_addr_test *test) in sendmsg_allow_prog_load()
733 static int sendmsg_deny_prog_load(const struct sock_addr_test *test) in sendmsg_deny_prog_load()
738 static int recvmsg_allow_prog_load(const struct sock_addr_test *test) in recvmsg_allow_prog_load()
[all …]
/Linux-v6.6/lib/kunit/
Dtest.c96 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats()
197 static void kunit_print_ok_not_ok(struct kunit *test, in kunit_print_ok_not_ok()
280 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream()
303 static void kunit_fail(struct kunit *test, const struct kunit_loc *loc, in kunit_fail()
328 void __noreturn __kunit_abort(struct kunit *test) in __kunit_abort()
342 void __kunit_do_failed_assertion(struct kunit *test, in __kunit_do_failed_assertion()
362 void kunit_init_test(struct kunit *test, const char *name, char *log) in kunit_init_test()
378 static void kunit_run_case_internal(struct kunit *test, in kunit_run_case_internal()
396 static void kunit_case_internal_cleanup(struct kunit *test) in kunit_case_internal_cleanup()
405 static void kunit_run_case_cleanup(struct kunit *test, in kunit_run_case_cleanup()
[all …]
Dresource.c19 int __kunit_add_resource(struct kunit *test, in __kunit_add_resource()
48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource()
63 int kunit_destroy_resource(struct kunit *test, kunit_resource_match_t match, in kunit_destroy_resource()
95 int kunit_add_action(struct kunit *test, void (*action)(void *), void *ctx) in kunit_add_action()
116 int kunit_add_action_or_reset(struct kunit *test, void (*action)(void *), in kunit_add_action_or_reset()
127 static bool __kunit_action_match(struct kunit *test, in __kunit_action_match()
141 void kunit_remove_action(struct kunit *test, in kunit_remove_action()
161 void kunit_release_action(struct kunit *test, in kunit_release_action()
/Linux-v6.6/sound/soc/
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()
598 static void snd_soc_tplg_test_load_empty_tplg_bad_payload_size(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()
[all …]
/Linux-v6.6/arch/s390/lib/
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()
/Linux-v6.6/drivers/base/regmap/
Dregmap-kunit.c103 static void basic_read_write(struct kunit *test) in basic_read_write()
132 static void bulk_write(struct kunit *test) in bulk_write()
169 static void bulk_read(struct kunit *test) in bulk_read()
202 static void write_readonly(struct kunit *test) in write_readonly()
237 static void read_writeonly(struct kunit *test) in read_writeonly()
277 static void reg_defaults(struct kunit *test) in reg_defaults()
305 static void reg_defaults_read_dev(struct kunit *test) in reg_defaults_read_dev()
339 static void register_patch(struct kunit *test) in register_patch()
391 static void stride(struct kunit *test) in stride()
457 static void basic_ranges(struct kunit *test) in basic_ranges()
[all …]
/Linux-v6.6/drivers/gpu/drm/tests/
Ddrm_exec_test.c26 static int drm_exec_test_init(struct kunit *test) in drm_exec_test_init()
45 static void sanitycheck(struct kunit *test) in sanitycheck()
54 static void test_lock(struct kunit *test) in test_lock()
74 static void test_lock_unlock(struct kunit *test) in test_lock_unlock()
101 static void test_duplicates(struct kunit *test) in test_duplicates()
128 static void test_prepare(struct kunit *test) in test_prepare()
150 static void test_prepare_array(struct kunit *test) in test_prepare_array()
173 static void test_multiple_loops(struct kunit *test) in test_multiple_loops()
Ddrm_rect_test.c16 static void drm_rect_compare(struct kunit *test, const struct drm_rect *r, in drm_rect_compare()
25 static void drm_test_rect_clip_scaled_div_by_zero(struct kunit *test) in drm_test_rect_clip_scaled_div_by_zero()
51 static void drm_test_rect_clip_scaled_not_clipped(struct kunit *test) in drm_test_rect_clip_scaled_not_clipped()
99 static void drm_test_rect_clip_scaled_clipped(struct kunit *test) in drm_test_rect_clip_scaled_clipped()
189 static void drm_test_rect_clip_scaled_signed_vs_unsigned(struct kunit *test) in drm_test_rect_clip_scaled_signed_vs_unsigned()
336 static void drm_test_rect_intersect(struct kunit *test) in drm_test_rect_intersect()
407 static void drm_test_rect_calc_hscale(struct kunit *test) in drm_test_rect_calc_hscale()
418 static void drm_test_rect_calc_vscale(struct kunit *test) in drm_test_rect_calc_vscale()
489 static void drm_test_rect_rotate(struct kunit *test) in drm_test_rect_rotate()
499 static void drm_test_rect_rotate_inv(struct kunit *test) in drm_test_rect_rotate_inv()
/Linux-v6.6/lib/
Dslub_kunit.c28 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()
Dhashtable_test.c19 static void hashtable_test_hash_init(struct kunit *test) in hashtable_test_hash_init()
34 static void hashtable_test_hash_empty(struct kunit *test) in hashtable_test_hash_empty()
49 static void hashtable_test_hash_hashed(struct kunit *test) in hashtable_test_hash_hashed()
65 static void hashtable_test_hash_add(struct kunit *test) in hashtable_test_hash_add()
95 static void hashtable_test_hash_del(struct kunit *test) in hashtable_test_hash_del()
123 static void hashtable_test_hash_for_each(struct kunit *test) in hashtable_test_hash_for_each()
152 static void hashtable_test_hash_for_each_safe(struct kunit *test) in hashtable_test_hash_for_each_safe()
185 static void hashtable_test_hash_for_each_possible(struct kunit *test) in hashtable_test_hash_for_each_possible()
239 static void hashtable_test_hash_for_each_possible_safe(struct kunit *test) in hashtable_test_hash_for_each_possible_safe()
Dmemcpy_kunit.c50 static void memcpy_test(struct kunit *test) in memcpy_test()
110 static void memmove_test(struct kunit *test) in memmove_test()
207 static void memset_test(struct kunit *test) in memset_test()
299 static void set_random_nonzero(struct kunit *test, u8 *byte) in set_random_nonzero()
310 static void init_large(struct kunit *test) in init_large()
330 static void copy_large_test(struct kunit *test, bool use_memmove) in copy_large_test()
369 static void memcpy_large_test(struct kunit *test) in memcpy_large_test()
374 static void memmove_large_test(struct kunit *test) in memmove_large_test()
398 static void inner_loop(struct kunit *test, int bytes, int d_off, int s_off) in inner_loop()
461 static void memmove_overlap_test(struct kunit *test) in memmove_overlap_test()
[all …]
/Linux-v6.6/mm/damon/
Dvaddr-test.h66 static void damon_test_three_regions_in_vmas(struct kunit *test) in damon_test_three_regions_in_vmas()
129 static void damon_do_test_apply_three_regions(struct kunit *test, in damon_do_test_apply_three_regions()
161 static void damon_test_apply_three_regions1(struct kunit *test) in damon_test_apply_three_regions1()
183 static void damon_test_apply_three_regions2(struct kunit *test) in damon_test_apply_three_regions2()
207 static void damon_test_apply_three_regions3(struct kunit *test) in damon_test_apply_three_regions3()
232 static void damon_test_apply_three_regions4(struct kunit *test) in damon_test_apply_three_regions4()
249 static void damon_test_split_evenly_fail(struct kunit *test, in damon_test_split_evenly_fail()
268 static void damon_test_split_evenly_succ(struct kunit *test, in damon_test_split_evenly_succ()
295 static void damon_test_split_evenly(struct kunit *test) in damon_test_split_evenly()
/Linux-v6.6/net/core/
Ddev_addr_lists_test.c34 static int dev_addr_test_init(struct kunit *test) in dev_addr_test_init()
56 static void dev_addr_test_exit(struct kunit *test) in dev_addr_test_exit()
65 static void dev_addr_test_basic(struct kunit *test) in dev_addr_test_basic()
81 static void dev_addr_test_sync_one(struct kunit *test) in dev_addr_test_sync_one()
108 static void dev_addr_test_add_del(struct kunit *test) in dev_addr_test_add_del()
148 static void dev_addr_test_del_main(struct kunit *test) in dev_addr_test_del_main()
166 static void dev_addr_test_add_set(struct kunit *test) in dev_addr_test_add_set()
196 static void dev_addr_test_add_excl(struct kunit *test) in dev_addr_test_add_excl()
/Linux-v6.6/drivers/net/ethernet/microchip/vcap/
Dvcap_api_kunit.c246 static void test_vcap_xn_rule_creator(struct kunit *test, int cid, in test_vcap_xn_rule_creator()
328 static void vcap_api_set_bit_1_test(struct kunit *test) in vcap_api_set_bit_1_test()
345 static void vcap_api_set_bit_0_test(struct kunit *test) in vcap_api_set_bit_0_test()
363 static void vcap_api_iterator_init_test(struct kunit *test) in vcap_api_iterator_init_test()
392 static void vcap_api_iterator_next_test(struct kunit *test) in vcap_api_iterator_next_test()
426 static void vcap_api_encode_typegroups_test(struct kunit *test) in vcap_api_encode_typegroups_test()
455 static void vcap_api_encode_bit_test(struct kunit *test) in vcap_api_encode_bit_test()
481 static void vcap_api_encode_field_test(struct kunit *test) in vcap_api_encode_field_test()
532 static void vcap_api_encode_short_field_test(struct kunit *test) in vcap_api_encode_short_field_test()
577 static void vcap_api_encode_keyfield_test(struct kunit *test) in vcap_api_encode_keyfield_test()
[all …]
/Linux-v6.6/kernel/
Dsysctl-test.c16 static void sysctl_test_api_dointvec_null_tbl_data(struct kunit *test) in sysctl_test_api_dointvec_null_tbl_data()
66 static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test) in sysctl_test_api_dointvec_table_maxlen_unset()
112 static void sysctl_test_api_dointvec_table_len_is_zero(struct kunit *test) in sysctl_test_api_dointvec_table_len_is_zero()
146 struct kunit *test) in sysctl_test_api_dointvec_table_read_but_position_set()
181 static void sysctl_test_dointvec_read_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_read_happy_single_positive()
212 static void sysctl_test_dointvec_read_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_read_happy_single_negative()
241 static void sysctl_test_dointvec_write_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_write_happy_single_positive()
272 static void sysctl_test_dointvec_write_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_write_happy_single_negative()
304 struct kunit *test) in sysctl_test_api_dointvec_write_single_less_int_min()
342 struct kunit *test) in sysctl_test_api_dointvec_write_single_greater_int_max()
/Linux-v6.6/drivers/gpu/drm/ttm/tests/
Dttm_kunit_helpers.c28 struct ttm_buffer_object *ttm_bo_kunit_init(struct kunit *test, in ttm_bo_kunit_init()
45 struct ttm_test_devices *ttm_test_devices_basic(struct kunit *test) in ttm_test_devices_basic()
64 struct ttm_test_devices *ttm_test_devices_all(struct kunit *test) in ttm_test_devices_all()
84 void ttm_test_devices_put(struct kunit *test, struct ttm_test_devices *devs) in ttm_test_devices_put()
93 int ttm_test_devices_init(struct kunit *test) in ttm_test_devices_init()
107 void ttm_test_devices_fini(struct kunit *test) in ttm_test_devices_fini()
Dttm_pool_test.c30 static int ttm_pool_test_init(struct kunit *test) in ttm_pool_test_init()
43 static void ttm_pool_test_fini(struct kunit *test) in ttm_pool_test_fini()
50 static struct ttm_tt *ttm_tt_kunit_init(struct kunit *test, in ttm_tt_kunit_init()
73 static struct ttm_pool *ttm_pool_pre_populated(struct kunit *test, in ttm_pool_pre_populated()
135 static void ttm_pool_alloc_basic(struct kunit *test) in ttm_pool_alloc_basic()
196 static void ttm_pool_alloc_basic_dma_addr(struct kunit *test) in ttm_pool_alloc_basic_dma_addr()
239 static void ttm_pool_alloc_order_caching_match(struct kunit *test) in ttm_pool_alloc_order_caching_match()
267 static void ttm_pool_alloc_caching_mismatch(struct kunit *test) in ttm_pool_alloc_caching_mismatch()
301 static void ttm_pool_alloc_order_mismatch(struct kunit *test) in ttm_pool_alloc_order_mismatch()
335 static void ttm_pool_free_dma_alloc(struct kunit *test) in ttm_pool_free_dma_alloc()
[all …]
/Linux-v6.6/net/handshake/
Dhandshake-test.c127 static void handshake_req_alloc_case(struct kunit *test) in handshake_req_alloc_case()
146 static void handshake_req_submit_test1(struct kunit *test) in handshake_req_submit_test1()
165 static void handshake_req_submit_test2(struct kunit *test) in handshake_req_submit_test2()
183 static void handshake_req_submit_test3(struct kunit *test) in handshake_req_submit_test3()
208 static void handshake_req_submit_test4(struct kunit *test) in handshake_req_submit_test4()
241 static void handshake_req_submit_test5(struct kunit *test) in handshake_req_submit_test5()
279 static void handshake_req_submit_test6(struct kunit *test) in handshake_req_submit_test6()
312 static void handshake_req_cancel_test1(struct kunit *test) in handshake_req_cancel_test1()
346 static void handshake_req_cancel_test2(struct kunit *test) in handshake_req_cancel_test2()
388 static void handshake_req_cancel_test3(struct kunit *test) in handshake_req_cancel_test3()
[all …]
/Linux-v6.6/drivers/input/tests/
Dinput_test.c15 static int input_test_init(struct kunit *test) in input_test_init()
42 static void input_test_exit(struct kunit *test) in input_test_exit()
52 static void input_test_polling(struct kunit *test) in input_test_polling()
67 static void input_test_timestamp(struct kunit *test) in input_test_timestamp()
87 static void input_test_match_device_id(struct kunit *test) in input_test_match_device_id()
133 static void input_test_grab(struct kunit *test) in input_test_grab()
/Linux-v6.6/drivers/misc/
Dpci_endpoint_test.c129 static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, in pci_endpoint_test_readl()
135 static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test, in pci_endpoint_test_writel()
141 static inline u32 pci_endpoint_test_bar_readl(struct pci_endpoint_test *test, in pci_endpoint_test_bar_readl()
147 static inline void pci_endpoint_test_bar_writel(struct pci_endpoint_test *test, in pci_endpoint_test_bar_writel()
155 struct pci_endpoint_test *test = dev_id; in pci_endpoint_test_irqhandler() local
167 static void pci_endpoint_test_free_irq_vectors(struct pci_endpoint_test *test) in pci_endpoint_test_free_irq_vectors()
175 static bool pci_endpoint_test_alloc_irq_vectors(struct pci_endpoint_test *test, in pci_endpoint_test_alloc_irq_vectors()
214 static void pci_endpoint_test_release_irq(struct pci_endpoint_test *test) in pci_endpoint_test_release_irq()
226 static bool pci_endpoint_test_request_irq(struct pci_endpoint_test *test) in pci_endpoint_test_request_irq()
264 static bool pci_endpoint_test_bar(struct pci_endpoint_test *test, in pci_endpoint_test_bar()
[all …]
/Linux-v6.6/tools/testing/selftests/powerpc/vphn/
Dtest-vphn.c21 static struct test { struct
25 } all_tests[] = { argument
366 static int test_one(struct test *test) in test_one()
394 static struct test *test; in test_vphn() local
/Linux-v6.6/include/kunit/
Dresource.h169 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()
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()
371 static inline int kunit_destroy_named_resource(struct kunit *test, in kunit_destroy_named_resource()
/Linux-v6.6/drivers/iio/test/
Diio-test-format.c15 static void iio_test_iio_format_value_integer(struct kunit *test) in iio_test_iio_format_value_integer()
45 static void iio_test_iio_format_value_fixedpoint(struct kunit *test) in iio_test_iio_format_value_fixedpoint()
106 static void iio_test_iio_format_value_fractional(struct kunit *test) in iio_test_iio_format_value_fractional()
146 static void iio_test_iio_format_value_fractional_log2(struct kunit *test) in iio_test_iio_format_value_fractional_log2()
186 static void iio_test_iio_format_value_multiple(struct kunit *test) in iio_test_iio_format_value_multiple()
200 static void iio_test_iio_format_value_integer_64(struct kunit *test) in iio_test_iio_format_value_integer_64()
/Linux-v6.6/drivers/fpga/tests/
Dfpga-bridge-test.c49 static struct bridge_ctx *register_test_bridge(struct kunit *test) in register_test_bridge()
72 static void fpga_bridge_test_get(struct kunit *test) in fpga_bridge_test_get()
86 static void fpga_bridge_test_toggle(struct kunit *test) in fpga_bridge_test_toggle()
101 static void fpga_bridge_test_get_put_list(struct kunit *test) in fpga_bridge_test_get_put_list()
147 static int fpga_bridge_test_init(struct kunit *test) in fpga_bridge_test_init()
154 static void fpga_bridge_test_exit(struct kunit *test) in fpga_bridge_test_exit()
/Linux-v6.6/drivers/firewire/
Duapi-test.c12 static void structure_layout_event_response(struct kunit *test) in structure_layout_event_response()
30 static void structure_layout_event_request3(struct kunit *test) in structure_layout_event_request3()
49 static void structure_layout_event_response2(struct kunit *test) in structure_layout_event_response2()
63 static void structure_layout_event_phy_packet2(struct kunit *test) in structure_layout_event_phy_packet2()

12345678910>>...15