Home
last modified time | relevance | path

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

1234567891011

/linux/lib/
A Dtest_kasan.c48 static int kasan_test_init(struct kunit *test) in kasan_test_init()
62 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
242 static void pagealloc_uaf(struct kunit *test) in pagealloc_uaf()
377 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
392 static void kmalloc_oob_16(struct kunit *test) in kmalloc_oob_16()
539 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
569 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
749 static void ksize_uaf(struct kunit *test) in ksize_uaf()
855 static void kasan_memchr(struct kunit *test) in kasan_memchr()
879 static void kasan_memcmp(struct kunit *test) in kasan_memcmp()
[all …]
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()
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()
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()
261 static void list_test_list_empty(struct kunit *test) in list_test_list_empty()
402 static void list_test_list_splice(struct kunit *test) in list_test_list_splice()
[all …]
A Dslub_kunit.c12 static void test_clobber_zone(struct kunit *test) in test_clobber_zone()
30 static void test_next_pointer(struct kunit *test) in test_next_pointer()
75 static void test_first_word(struct kunit *test) in test_first_word()
90 static void test_clobber_50th_byte(struct kunit *test) in test_clobber_50th_byte()
106 static void test_clobber_redzone_free(struct kunit *test) in test_clobber_redzone_free()
123 static int test_init(struct kunit *test) in test_init()
A Dcmdline_kunit.c41 static void cmdline_do_one_test(struct kunit *test, const char *in, int rc, int offset) in cmdline_do_one_test()
54 static void cmdline_test_noint(struct kunit *test) in cmdline_test_noint()
69 static void cmdline_test_lead_int(struct kunit *test) in cmdline_test_lead_int()
86 static void cmdline_test_tail_int(struct kunit *test) in cmdline_test_tail_int()
107 static void cmdline_do_one_range_test(struct kunit *test, const char *in, in cmdline_do_one_range_test()
130 static void cmdline_test_range(struct kunit *test) in cmdline_test_range()
/linux/include/kunit/
A Dtest.h547 kunit_find_resource(struct kunit *test, in kunit_find_resource()
575 kunit_find_named_resource(struct kunit *test, in kunit_find_named_resource()
738 #define kunit_info(test, fmt, ...) \ argument
749 #define kunit_warn(test, fmt, ...) \ argument
760 #define kunit_err(test, fmt, ...) \ argument
771 #define KUNIT_SUCCEED(test) do {} while (0) argument
1321 #define KUNIT_EXPECT_TRUE(test, condition) \ argument
1361 #define KUNIT_EXPECT_EQ(test, left, right) \ argument
1408 #define KUNIT_EXPECT_NE(test, left, right) \ argument
1455 #define KUNIT_EXPECT_LT(test, left, right) \ argument
[all …]
/linux/security/apparmor/
A 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()
154 static void policy_unpack_test_unpack_array_with_name(struct kunit *test) in policy_unpack_test_unpack_array_with_name()
199 static void policy_unpack_test_unpack_blob_with_name(struct kunit *test) in policy_unpack_test_unpack_blob_with_name()
244 static void policy_unpack_test_unpack_str_with_name(struct kunit *test) in policy_unpack_test_unpack_str_with_name()
401 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_1()
417 struct kunit *test) in policy_unpack_test_unpack_u16_chunk_out_of_bounds_2()
454 static void policy_unpack_test_unpack_u32_with_name(struct kunit *test) in policy_unpack_test_unpack_u32_with_name()
504 static void policy_unpack_test_unpack_u64_with_name(struct kunit *test) in policy_unpack_test_unpack_u64_with_name()
[all …]
/linux/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()
1120 static int mmc_test_pow2_read(struct mmc_test_card *test) in mmc_test_pow2_read()
1320 static int mmc_test_read_high(struct mmc_test_card *test) in mmc_test_read_high()
1504 static int mmc_test_area_fill(struct mmc_test_card *test) in mmc_test_area_fill()
2325 static int mmc_test_reset(struct mmc_test_card *test) in mmc_test_reset()
[all …]
/linux/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/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
313 static void kunit_resource_test_static(struct kunit *test) in kunit_resource_test_static()
328 static void kunit_resource_test_named(struct kunit *test) in kunit_resource_test_named()
364 static int kunit_resource_test_init(struct kunit *test) in kunit_resource_test_init()
378 static void kunit_resource_test_exit(struct kunit *test) in kunit_resource_test_exit()
[all …]
A Dexecutor_test.c18 static void dummy_test(struct kunit *test) {} in dummy_test()
27 static void parse_filter_test(struct kunit *test) in parse_filter_test()
44 static void filter_subsuite_test(struct kunit *test) in filter_subsuite_test()
67 static void filter_subsuite_test_glob_test(struct kunit *test) in filter_subsuite_test_glob_test()
95 static void filter_subsuite_to_empty_test(struct kunit *test) in filter_subsuite_to_empty_test()
114 static void kfree_subsuites_at_end(struct kunit *test, struct suite_set *suite_set) in kfree_subsuites_at_end()
123 static void filter_suites_test(struct kunit *test) in filter_suites_test()
182 static void kfree_at_end(struct kunit *test, const void *to_free) in kfree_at_end()
196 static void free_subsuite_at_end(struct kunit *test, in free_subsuite_at_end()
205 static struct kunit_suite *alloc_fake_suite(struct kunit *test, in alloc_fake_suite()
A Dtest.c84 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats()
153 struct kunit *test = is_test ? test_or_suite : NULL; in kunit_print_ok_not_ok() local
265 static void __noreturn kunit_abort(struct kunit *test) in kunit_abort()
278 void kunit_do_assertion(struct kunit *test, in kunit_do_assertion()
355 struct kunit *test; member
363 struct kunit *test = ctx->test; in kunit_try_run_case() local
382 struct kunit *test = ctx->test; in kunit_catch_run_case() local
418 struct kunit *test) in kunit_run_case_catch_errors()
597 int kunit_add_resource(struct kunit *test, in kunit_add_resource()
626 int kunit_add_named_resource(struct kunit *test, in kunit_add_named_resource()
[all …]
A 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()
46 static void example_skip_test(struct kunit *test) in example_skip_test()
61 static void example_mark_skipped_test(struct kunit *test) in example_mark_skipped_test()
/linux/mm/kfence/
A Dkfence_test.c35 #define KFENCE_TEST_REQUIRES(test, cond) do { \ argument
385 static void test_double_free(struct kunit *test) in test_double_free()
417 static void test_corruption(struct kunit *test) in test_corruption()
531 static void test_free_bulk(struct kunit *test) in test_free_bulk()
553 static void test_init_on_free(struct kunit *test) in test_init_on_free()
586 static void test_memcache_ctor(struct kunit *test) in test_memcache_ctor()
604 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/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()
365 static void tb_test_path_basic(struct kunit *test) in tb_test_path_basic()
1276 static void tb_test_tunnel_pcie(struct kunit *test) in tb_test_tunnel_pcie()
1331 static void tb_test_tunnel_dp(struct kunit *test) in tb_test_tunnel_dp()
1415 static void tb_test_tunnel_dp_tree(struct kunit *test) in tb_test_tunnel_dp_tree()
1545 static void tb_test_tunnel_usb3(struct kunit *test) in tb_test_tunnel_usb3()
1666 static void tb_test_tunnel_dma(struct kunit *test) in tb_test_tunnel_dma()
1709 static void tb_test_tunnel_dma_rx(struct kunit *test) in tb_test_tunnel_dma_rx()
1746 static void tb_test_tunnel_dma_tx(struct kunit *test) in tb_test_tunnel_dma_tx()
[all …]
/linux/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()
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()
/linux/kernel/kcsan/
A Dkcsan_test.c32 #define KCSAN_TEST_REQUIRES(test, cond) do { \ argument
439 static void test_basic(struct kunit *test) in test_basic()
470 static void test_concurrent_races(struct kunit *test) in test_concurrent_races()
499 static void test_novalue_change(struct kunit *test) in test_novalue_change()
557 static void test_unknown_origin(struct kunit *test) in test_unknown_origin()
702 static void test_zero_size_access(struct kunit *test) in test_zero_size_access()
730 static void test_data_race(struct kunit *test) in test_data_race()
908 static void test_jiffies_noreport(struct kunit *test) in test_jiffies_noreport()
939 static void test_atomic_builtins(struct kunit *test) in test_atomic_builtins()
1133 static int test_init(struct kunit *test) in test_init()
[all …]
/linux/tools/testing/selftests/bpf/
A Dtest_sock_addr.c645 static int load_insns(const struct sock_addr_test *test, in load_insns()
688 static int bind4_prog_load(const struct sock_addr_test *test) in bind4_prog_load()
693 static int bind6_prog_load(const struct sock_addr_test *test) in bind6_prog_load()
698 static int connect4_prog_load(const struct sock_addr_test *test) in connect4_prog_load()
703 static int connect6_prog_load(const struct sock_addr_test *test) in connect6_prog_load()
708 static int xmsg_ret_only_prog_load(const struct sock_addr_test *test, in xmsg_ret_only_prog_load()
724 static int sendmsg_deny_prog_load(const struct sock_addr_test *test) in sendmsg_deny_prog_load()
734 static int recvmsg_deny_prog_load(const struct sock_addr_test *test) in recvmsg_deny_prog_load()
1134 static int init_addrs(const struct sock_addr_test *test, in init_addrs()
1159 static int run_bind_test_case(const struct sock_addr_test *test) in run_bind_test_case()
[all …]
/linux/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()
/linux/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()
244 static void snd_soc_tplg_test_load_with_null_comp(struct kunit *test) in snd_soc_tplg_test_load_with_null_comp()
288 static void snd_soc_tplg_test_load_with_null_ops(struct kunit *test) in snd_soc_tplg_test_load_with_null_ops()
352 static void snd_soc_tplg_test_load_with_null_fw(struct kunit *test) in snd_soc_tplg_test_load_with_null_fw()
390 static void snd_soc_tplg_test_load_empty_tplg(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg()
441 static void snd_soc_tplg_test_load_empty_tplg_bad_magic(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg_bad_magic()
497 static void snd_soc_tplg_test_load_empty_tplg_bad_abi(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg_bad_abi()
553 static void snd_soc_tplg_test_load_empty_tplg_bad_size(struct kunit *test) in snd_soc_tplg_test_load_empty_tplg_bad_size()
664 static void snd_soc_tplg_test_load_pcm_tplg(struct kunit *test) in snd_soc_tplg_test_load_pcm_tplg()
[all …]
/linux/mm/damon/
A Dvaddr-test.h73 static void damon_test_three_regions_in_vmas(struct kunit *test) in damon_test_three_regions_in_vmas()
133 static void damon_do_test_apply_three_regions(struct kunit *test, in damon_do_test_apply_three_regions()
163 static void damon_test_apply_three_regions1(struct kunit *test) in damon_test_apply_three_regions1()
185 static void damon_test_apply_three_regions2(struct kunit *test) in damon_test_apply_three_regions2()
209 static void damon_test_apply_three_regions3(struct kunit *test) in damon_test_apply_three_regions3()
234 static void damon_test_apply_three_regions4(struct kunit *test) in damon_test_apply_three_regions4()
251 static void damon_test_split_evenly_fail(struct kunit *test, in damon_test_split_evenly_fail()
270 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()
A Dcore-test.h17 static void damon_test_regions(struct kunit *test) in damon_test_regions()
50 static void damon_test_target(struct kunit *test) in damon_test_target()
78 static void damon_test_aggregate(struct kunit *test) in damon_test_aggregate()
119 static void damon_test_split_at(struct kunit *test) in damon_test_split_at()
140 static void damon_test_merge_two(struct kunit *test) in damon_test_merge_two()
182 static void damon_test_merge_regions_of(struct kunit *test) in damon_test_merge_regions_of()
212 static void damon_test_split_regions_of(struct kunit *test) in damon_test_split_regions_of()
/linux/kernel/
A 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()
/linux/drivers/misc/
A Dpci_endpoint_test.c128 static inline u32 pci_endpoint_test_readl(struct pci_endpoint_test *test, in pci_endpoint_test_readl()
154 struct pci_endpoint_test *test = dev_id; in pci_endpoint_test_irqhandler() local
266 static bool pci_endpoint_test_bar(struct pci_endpoint_test *test, in pci_endpoint_test_bar()
294 static bool pci_endpoint_test_legacy_irq(struct pci_endpoint_test *test) in pci_endpoint_test_legacy_irq()
311 static bool pci_endpoint_test_msi_irq(struct pci_endpoint_test *test, in pci_endpoint_test_msi_irq()
335 static bool pci_endpoint_test_copy(struct pci_endpoint_test *test, in pci_endpoint_test_copy()
473 static bool pci_endpoint_test_write(struct pci_endpoint_test *test, in pci_endpoint_test_write()
572 static bool pci_endpoint_test_read(struct pci_endpoint_test *test, in pci_endpoint_test_read()
670 static bool pci_endpoint_test_set_irq(struct pci_endpoint_test *test, in pci_endpoint_test_set_irq()
764 struct pci_endpoint_test *test; in pci_endpoint_test_probe() local
[all …]
/linux/tools/testing/selftests/powerpc/vphn/
A 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/drivers/base/test/
A Dproperty-entry-test.c10 static void pe_test_uints(struct kunit *test) in pe_test_uints()
117 static void pe_test_uint_arrays(struct kunit *test) in pe_test_uint_arrays()
252 static void pe_test_strings(struct kunit *test) in pe_test_strings()
324 static void pe_test_bool(struct kunit *test) in pe_test_bool()
343 static void pe_test_move_inline_u8(struct kunit *test) in pe_test_move_inline_u8()
373 static void pe_test_move_inline_str(struct kunit *test) in pe_test_move_inline_str()
406 static void pe_test_reference(struct kunit *test) in pe_test_reference()

Completed in 121 milliseconds

1234567891011