Home
last modified time | relevance | path

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

1234567891011

/kernel/linux/linux-5.10/lib/
Dtest_kasan.c42 static int kasan_test_init(struct kunit *test) in kasan_test_init()
53 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
64 #define KUNIT_EXPECT_KASAN_FAIL(test, condition) do { \ argument
78 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right()
90 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left()
102 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right()
114 static void kmalloc_pagealloc_oob_right(struct kunit *test) in kmalloc_pagealloc_oob_right()
134 static void kmalloc_pagealloc_uaf(struct kunit *test) in kmalloc_pagealloc_uaf()
151 static void kmalloc_pagealloc_invalid_free(struct kunit *test) in kmalloc_pagealloc_invalid_free()
167 static void kmalloc_large_oob_right(struct kunit *test) in kmalloc_large_oob_right()
[all …]
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()
60 static void list_test_list_add_tail(struct kunit *test) in list_test_list_add_tail()
74 static void list_test_list_del(struct kunit *test) in list_test_list_del()
90 static void list_test_list_replace(struct kunit *test) in list_test_list_replace()
106 static void list_test_list_replace_init(struct kunit *test) in list_test_list_replace_init()
125 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
147 static void list_test_list_del_init(struct kunit *test) in list_test_list_del_init()
164 static void list_test_list_move(struct kunit *test) in list_test_list_move()
183 static void list_test_list_move_tail(struct kunit *test) in list_test_list_move_tail()
[all …]
Dtest_bits.c10 static void genmask_test(struct kunit *test) in genmask_test()
27 static void genmask_ull_test(struct kunit *test) in genmask_ull_test()
42 static void genmask_input_check_test(struct kunit *test) in genmask_input_check_test()
Dtest_linear_ranges.c123 static void range_test_get_value(struct kunit *test) in range_test_get_value()
144 static void range_test_get_selector_high(struct kunit *test) in range_test_get_selector_high()
169 static void range_test_get_value_amount(struct kunit *test) in range_test_get_value_amount()
177 static void range_test_get_selector_low(struct kunit *test) in range_test_get_selector_low()
Dtest-kstrtox.c5 #define for_each_test(i, test) \ argument
13 #define DEFINE_TEST_FAIL(test) \ argument
23 #define DEFINE_TEST_OK(type, test) \ argument
26 #define TEST_FAIL(fn, type, fmt, test) \ argument
45 #define TEST_OK(fn, type, fmt, test) \ argument
/kernel/linux/linux-5.10/include/kunit/
Dtest.h228 static inline void kunit_set_failure(struct kunit *test) in kunit_set_failure()
425 static inline void *kunit_alloc_resource(struct kunit *test, in kunit_alloc_resource()
456 static inline bool kunit_resource_instance_match(struct kunit *test, in kunit_resource_instance_match()
469 static inline bool kunit_resource_name_match(struct kunit *test, in kunit_resource_name_match()
483 kunit_find_resource(struct kunit *test, in kunit_find_resource()
510 kunit_find_named_resource(struct kunit *test, in kunit_find_named_resource()
530 static inline int kunit_destroy_named_resource(struct kunit *test, in kunit_destroy_named_resource()
576 static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kzalloc()
596 #define kunit_printk(lvl, test, fmt, ...) \ argument
609 #define kunit_info(test, fmt, ...) \ argument
[all …]
Dassert.h44 struct kunit *test; member
105 #define KUNIT_INIT_FAIL_ASSERT_STRUCT(test, type) { \ argument
140 #define KUNIT_INIT_UNARY_ASSERT_STRUCT(test, type, cond, expect_true) { \ argument
178 #define KUNIT_INIT_PTR_NOT_ERR_STRUCT(test, type, txt, val) { \ argument
226 #define KUNIT_INIT_BINARY_ASSERT_STRUCT(test, \ argument
283 #define KUNIT_INIT_BINARY_PTR_ASSERT_STRUCT(test, \ argument
340 #define KUNIT_INIT_BINARY_STR_ASSERT_STRUCT(test, \ argument
/kernel/linux/linux-5.10/security/apparmor/
Dpolicy_unpack_test.c52 struct kunit *test, size_t buf_size) in build_aa_ext_struct()
109 static int policy_unpack_test_init(struct kunit *test) in policy_unpack_test_init()
124 static void policy_unpack_test_inbounds_when_inbounds(struct kunit *test) in policy_unpack_test_inbounds_when_inbounds()
133 static void policy_unpack_test_inbounds_when_out_of_bounds(struct kunit *test) in policy_unpack_test_inbounds_when_out_of_bounds()
140 static void policy_unpack_test_unpack_array_with_null_name(struct kunit *test) in policy_unpack_test_unpack_array_with_null_name()
154 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name()
169 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 …]
/kernel/linux/linux-5.10/drivers/mmc/core/
Dmmc_test.c179 static int mmc_test_set_blksize(struct mmc_test_card *test, unsigned size) in mmc_test_set_blksize()
190 static void mmc_test_prepare_sbc(struct mmc_test_card *test, in mmc_test_prepare_sbc()
210 static void mmc_test_prepare_mrq(struct mmc_test_card *test, in mmc_test_prepare_mrq()
259 static int mmc_test_wait_busy(struct mmc_test_card *test) in mmc_test_wait_busy()
290 static int mmc_test_buffer_transfer(struct mmc_test_card *test, in mmc_test_buffer_transfer()
534 static void mmc_test_save_transfer_result(struct mmc_test_card *test, in mmc_test_save_transfer_result()
559 static void mmc_test_print_rate(struct mmc_test_card *test, uint64_t bytes, in mmc_test_print_rate()
583 static void mmc_test_print_avg_rate(struct mmc_test_card *test, uint64_t bytes, in mmc_test_print_avg_rate()
627 static int __mmc_test_prepare(struct mmc_test_card *test, int write) in __mmc_test_prepare()
651 static int mmc_test_prepare_write(struct mmc_test_card *test) in mmc_test_prepare_write()
[all …]
/kernel/linux/linux-5.10/tools/testing/scatterlist/
Dmain.c8 struct test { struct
29 static void fail(struct test *test, struct sg_table *st, const char *cond) in fail()
47 #define VALIDATE(cond, st, test) \ argument
54 struct test *test, tests[] = { in main() local
/kernel/linux/linux-5.10/lib/kunit/
Dkunit-test.c19 struct kunit *test = data; in kunit_test_successful_try() local
27 struct kunit *test = data; in kunit_test_no_catch() local
32 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch()
48 struct kunit *test = data; in kunit_test_unsuccessful_try() local
58 struct kunit *test = data; in kunit_test_catch() local
64 static void kunit_test_try_catch_unsuccessful_try_does_catch(struct kunit *test) in kunit_test_try_catch_unsuccessful_try_does_catch()
78 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init()
111 struct kunit test; member
133 static void kunit_resource_test_init_resources(struct kunit *test) in kunit_resource_test_init_resources()
142 static void kunit_resource_test_alloc_resource(struct kunit *test) in kunit_resource_test_alloc_resource()
[all …]
Dtest.c71 struct kunit *test = is_test ? test_or_suite : NULL; in kunit_print_ok_not_ok() local
130 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream()
153 static void kunit_fail(struct kunit *test, struct kunit_assert *assert) in kunit_fail()
175 static void __noreturn kunit_abort(struct kunit *test) in kunit_abort()
188 void kunit_do_assertion(struct kunit *test, in kunit_do_assertion()
212 void kunit_init_test(struct kunit *test, const char *name, char *log) in kunit_init_test()
227 static void kunit_run_case_internal(struct kunit *test, in kunit_run_case_internal()
245 static void kunit_case_internal_cleanup(struct kunit *test) in kunit_case_internal_cleanup()
254 static void kunit_run_case_cleanup(struct kunit *test, in kunit_run_case_cleanup()
264 struct kunit *test; member
[all …]
Dstring-stream-test.c14 static void string_stream_test_empty_on_creation(struct kunit *test) in string_stream_test_empty_on_creation()
21 static void string_stream_test_not_empty_after_add(struct kunit *test) in string_stream_test_not_empty_after_add()
30 static void string_stream_test_get_string(struct kunit *test) in string_stream_test_get_string()
Dkunit-example-test.c21 static void example_simple_test(struct kunit *test) in example_simple_test()
36 static int example_test_init(struct kunit *test) in example_test_init()
/kernel/linux/linux-5.10/net/mptcp/
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()
63 static void mptcp_token_test_msk_basic(struct kunit *test) in mptcp_token_test_msk_basic()
86 static void mptcp_token_test_accept(struct kunit *test) in mptcp_token_test_accept()
105 static void mptcp_token_test_destroyed(struct kunit *test) in mptcp_token_test_destroyed()
/kernel/linux/linux-5.10/tools/perf/tests/
Dtests.h30 struct test { struct
32 int (*func)(struct test *test, int subtest); argument
38 } subtest; argument
44 int test__vmlinux_matches_kallsyms(struct test *test, int subtest); argument
/kernel/linux/linux-5.10/kernel/kcsan/
Dkcsan-test.c419 static void test_basic(struct kunit *test) in test_basic()
450 static void test_concurrent_races(struct kunit *test) in test_concurrent_races()
479 static void test_novalue_change(struct kunit *test) in test_novalue_change()
504 static void test_novalue_change_exception(struct kunit *test) in test_novalue_change_exception()
523 static void test_unknown_origin(struct kunit *test) in test_unknown_origin()
545 static void test_write_write_assume_atomic(struct kunit *test) in test_write_write_assume_atomic()
571 static void test_write_write_struct(struct kunit *test) in test_write_write_struct()
593 static void test_write_write_struct_part(struct kunit *test) in test_write_write_struct_part()
612 static void test_read_atomic_write_atomic(struct kunit *test) in test_read_atomic_write_atomic()
625 static void test_read_plain_atomic_write(struct kunit *test) in test_read_plain_atomic_write()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dtest_sock_addr.c641 static int load_insns(const struct sock_addr_test *test, in load_insns()
674 static int bind4_prog_load(const struct sock_addr_test *test) in bind4_prog_load()
781 static int bind6_prog_load(const struct sock_addr_test *test) in bind6_prog_load()
847 static int load_path(const struct sock_addr_test *test, const char *path) in load_path()
868 static int connect4_prog_load(const struct sock_addr_test *test) in connect4_prog_load()
873 static int connect6_prog_load(const struct sock_addr_test *test) in connect6_prog_load()
878 static int xmsg_ret_only_prog_load(const struct sock_addr_test *test, in xmsg_ret_only_prog_load()
889 static int sendmsg_allow_prog_load(const struct sock_addr_test *test) in sendmsg_allow_prog_load()
894 static int sendmsg_deny_prog_load(const struct sock_addr_test *test) in sendmsg_deny_prog_load()
899 static int recvmsg_allow_prog_load(const struct sock_addr_test *test) in recvmsg_allow_prog_load()
[all …]
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dtest.c31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init()
36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch()
72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host()
145 static struct tb_switch *alloc_dev_default(struct kunit *test, in alloc_dev_default()
275 static struct tb_switch *alloc_dev_with_dpin(struct kunit *test, in alloc_dev_with_dpin()
296 static void tb_test_path_basic(struct kunit *test) in tb_test_path_basic()
313 static void tb_test_path_not_connected_walk(struct kunit *test) in tb_test_path_not_connected_walk()
352 static void tb_test_path_single_hop_walk(struct kunit *test) in tb_test_path_single_hop_walk()
406 static void tb_test_path_daisy_chain_walk(struct kunit *test) in tb_test_path_daisy_chain_walk()
465 static void tb_test_path_simple_tree_walk(struct kunit *test) in tb_test_path_simple_tree_walk()
[all …]
/kernel/linux/linux-5.10/kernel/
Dsysctl-test.c19 static void sysctl_test_api_dointvec_null_tbl_data(struct kunit *test) in sysctl_test_api_dointvec_null_tbl_data()
69 static void sysctl_test_api_dointvec_table_maxlen_unset(struct kunit *test) in sysctl_test_api_dointvec_table_maxlen_unset()
115 static void sysctl_test_api_dointvec_table_len_is_zero(struct kunit *test) in sysctl_test_api_dointvec_table_len_is_zero()
149 struct kunit *test) in sysctl_test_api_dointvec_table_read_but_position_set()
184 static void sysctl_test_dointvec_read_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_read_happy_single_positive()
215 static void sysctl_test_dointvec_read_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_read_happy_single_negative()
244 static void sysctl_test_dointvec_write_happy_single_positive(struct kunit *test) in sysctl_test_dointvec_write_happy_single_positive()
275 static void sysctl_test_dointvec_write_happy_single_negative(struct kunit *test) in sysctl_test_dointvec_write_happy_single_negative()
307 struct kunit *test) in sysctl_test_api_dointvec_write_single_less_int_min()
345 struct kunit *test) in sysctl_test_api_dointvec_write_single_greater_int_max()
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/misc/
Dpci_endpoint_test.c127 static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, in pci_endpoint_test_readl()
133 static inline void pci_endpoint_test_writel(struct pci_endpoint_test *test, in pci_endpoint_test_writel()
139 static inline u32 pci_endpoint_test_bar_readl(struct pci_endpoint_test *test, in pci_endpoint_test_bar_readl()
145 static inline void pci_endpoint_test_bar_writel(struct pci_endpoint_test *test, in pci_endpoint_test_bar_writel()
153 struct pci_endpoint_test *test = dev_id; in pci_endpoint_test_irqhandler() local
168 static void pci_endpoint_test_free_irq_vectors(struct pci_endpoint_test *test) in pci_endpoint_test_free_irq_vectors()
176 static bool pci_endpoint_test_alloc_irq_vectors(struct pci_endpoint_test *test, in pci_endpoint_test_alloc_irq_vectors()
215 static void pci_endpoint_test_release_irq(struct pci_endpoint_test *test) in pci_endpoint_test_release_irq()
227 static bool pci_endpoint_test_request_irq(struct pci_endpoint_test *test) in pci_endpoint_test_request_irq()
265 static bool pci_endpoint_test_bar(struct pci_endpoint_test *test, in pci_endpoint_test_bar()
[all …]
/kernel/linux/linux-5.10/drivers/base/test/
Dproperty-entry-test.c10 static void pe_test_uints(struct kunit *test) in pe_test_uints()
101 static void pe_test_uint_arrays(struct kunit *test) in pe_test_uint_arrays()
216 static void pe_test_strings(struct kunit *test) in pe_test_strings()
282 static void pe_test_bool(struct kunit *test) in pe_test_bool()
301 static void pe_test_move_inline_u8(struct kunit *test) in pe_test_move_inline_u8()
331 static void pe_test_move_inline_str(struct kunit *test) in pe_test_move_inline_str()
364 static void pe_test_reference(struct kunit *test) in pe_test_reference()
/kernel/linux/linux-5.10/tools/build/feature/
Dtest-clang-bpf-co-re.c4 struct test { struct
9 volatile struct test global_value_for_test = {}; argument
/kernel/linux/linux-5.10/drivers/base/power/
Dqos-test.c9 static void freq_qos_test_min(struct kunit *test) in freq_qos_test_min()
37 static void freq_qos_test_maxdef(struct kunit *test) in freq_qos_test_maxdef()
78 static void freq_qos_test_readd(struct kunit *test) in freq_qos_test_readd()

1234567891011