Home
last modified time | relevance | path

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

12

/lib/
Dcpumask_kunit.c16 #define EXPECT_FOR_EACH_CPU_EQ(test, mask) \ argument
26 #define EXPECT_FOR_EACH_CPU_OP_EQ(test, op, mask1, mask2) \ argument
39 #define EXPECT_FOR_EACH_CPU_WRAP_EQ(test, mask) \ argument
49 #define EXPECT_FOR_EACH_CPU_BUILTIN_EQ(test, name) \ argument
62 static void test_cpumask_weight(struct kunit *test) in test_cpumask_weight()
73 static void test_cpumask_first(struct kunit *test) in test_cpumask_first()
83 static void test_cpumask_last(struct kunit *test) in test_cpumask_last()
91 static void test_cpumask_next(struct kunit *test) in test_cpumask_next()
103 static void test_cpumask_iterators(struct kunit *test) in test_cpumask_iterators()
117 static void test_cpumask_iterators_builtin(struct kunit *test) in test_cpumask_iterators_builtin()
[all …]
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()
61 static void list_test_list_add_tail(struct kunit *test) in list_test_list_add_tail()
75 static void list_test_list_del(struct kunit *test) in list_test_list_del()
91 static void list_test_list_replace(struct kunit *test) in list_test_list_replace()
107 static void list_test_list_replace_init(struct kunit *test) in list_test_list_replace_init()
126 static void list_test_list_swap(struct kunit *test) in list_test_list_swap()
148 static void list_test_list_del_init(struct kunit *test) in list_test_list_del_init()
165 static void list_test_list_del_init_careful(struct kunit *test) in list_test_list_del_init_careful()
185 static void list_test_list_move(struct kunit *test) in list_test_list_move()
[all …]
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()
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()
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()
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 …]
Dstrcat_kunit.c13 static void strcat_test(struct kunit *test) in strcat_test()
32 static void strncat_test(struct kunit *test) in strncat_test()
59 static void strlcat_test(struct kunit *test) in strlcat_test()
Dtest_fprobe.c99 static void test_fprobe_entry(struct kunit *test) in test_fprobe_entry()
126 static void test_fprobe(struct kunit *test) in test_fprobe()
151 static void test_fprobe_syms(struct kunit *test) in test_fprobe_syms()
178 static void test_fprobe_data(struct kunit *test) in test_fprobe_data()
195 static void test_fprobe_nest(struct kunit *test) in test_fprobe_nest()
213 static void test_fprobe_skip(struct kunit *test) in test_fprobe_skip()
245 static int fprobe_test_init(struct kunit *test) in fprobe_test_init()
Dtest_kprobes.c61 static void test_kprobe(struct kunit *test) in test_kprobe()
122 static void test_kprobes(struct kunit *test) in test_kprobes()
155 static void test_kprobe_missed(struct kunit *test) in test_kprobe_missed()
199 static void test_kretprobe(struct kunit *test) in test_kretprobe()
224 static void test_kretprobes(struct kunit *test) in test_kretprobes()
288 static void test_stacktrace_on_kretprobe(struct kunit *test) in test_stacktrace_on_kretprobe()
349 static void test_stacktrace_on_nested_kretprobe(struct kunit *test) in test_stacktrace_on_nested_kretprobe()
368 static int kprobes_test_init(struct kunit *test) in kprobes_test_init()
Dtest_hash.c72 test_int__hash_32(struct kunit *test, struct test_hash_params *params) in test_int__hash_32()
85 test_int_hash_64(struct kunit *test, struct test_hash_params *params, u32 const *m, int *k) in test_int_hash_64()
110 test_int_hash(struct kunit *test, unsigned long long h64, u32 hash_or[2][33]) in test_int_hash()
144 static void test_string_or(struct kunit *test) in test_string_or()
169 static void test_hash_or(struct kunit *test) in test_hash_or()
Dtest_linear_ranges.c114 static void range_test_get_value(struct kunit *test) in range_test_get_value()
135 static void range_test_get_selector_high(struct kunit *test) in range_test_get_selector_high()
160 static void range_test_get_value_amount(struct kunit *test) in range_test_get_value_amount()
168 static void range_test_get_selector_low(struct kunit *test) in range_test_get_selector_low()
Dkunit_iov_iter.c47 static void *__init iov_kunit_create_buffer(struct kunit *test, in iov_kunit_create_buffer()
72 static void __init iov_kunit_load_kvec(struct kunit *test, in iov_kunit_load_kvec()
98 static void __init iov_kunit_copy_to_kvec(struct kunit *test) in iov_kunit_copy_to_kvec()
148 static void __init iov_kunit_copy_from_kvec(struct kunit *test) in iov_kunit_copy_from_kvec()
216 static void __init iov_kunit_load_bvec(struct kunit *test, in iov_kunit_load_bvec()
257 static void __init iov_kunit_copy_to_bvec(struct kunit *test) in iov_kunit_copy_to_bvec()
311 static void __init iov_kunit_copy_from_bvec(struct kunit *test) in iov_kunit_copy_from_bvec()
373 static void __init iov_kunit_load_xarray(struct kunit *test, in iov_kunit_load_xarray()
390 static struct xarray *iov_kunit_create_xarray(struct kunit *test) in iov_kunit_create_xarray()
404 static void __init iov_kunit_copy_to_xarray(struct kunit *test) in iov_kunit_copy_to_xarray()
[all …]
Dfortify_kunit.c28 static void known_sizes_test(struct kunit *test) in known_sizes_test()
61 static void control_flow_split_test(struct kunit *test) in control_flow_split_test()
66 #define KUNIT_EXPECT_BOS(test, p, expected, name) \ argument
72 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
76 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
Dchecksum_kunit.c232 static void assert_setup_correct(struct kunit *test) in assert_setup_correct()
245 static void test_csum_fixed_random_inputs(struct kunit *test) in test_csum_fixed_random_inputs()
271 static void test_csum_all_carry_inputs(struct kunit *test) in test_csum_all_carry_inputs()
311 static void test_csum_no_carry_inputs(struct kunit *test) in test_csum_no_carry_inputs()
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
Doverflow_kunit.c358 static void shift_sane_test(struct kunit *test) in shift_sane_test()
407 static void shift_overflow_test(struct kunit *test) in shift_overflow_test()
461 static void shift_truncate_test(struct kunit *test) in shift_truncate_test()
499 static void shift_nonsense_test(struct kunit *test) in shift_nonsense_test()
609 static void overflow_allocation_test(struct kunit *test) in overflow_allocation_test()
649 static void overflow_size_helpers_test(struct kunit *test) in overflow_size_helpers_test()
739 static void overflows_type_test(struct kunit *test) in overflows_type_test()
951 static void same_type_test(struct kunit *test) in same_type_test()
1026 static void castable_to_type_test(struct kunit *test) in castable_to_type_test()
/lib/kunit/
Dkunit-test.c20 struct kunit *test = data; in kunit_test_successful_try() local
28 struct kunit *test = data; in kunit_test_no_catch() local
33 static void kunit_test_try_catch_successful_try_no_catch(struct kunit *test) in kunit_test_try_catch_successful_try_no_catch()
49 struct kunit *test = data; in kunit_test_unsuccessful_try() local
59 struct kunit *test = data; in kunit_test_catch() local
65 static void kunit_test_try_catch_unsuccessful_try_does_catch(struct kunit *test) in kunit_test_try_catch_unsuccessful_try_does_catch()
79 static int kunit_try_catch_test_init(struct kunit *test) in kunit_try_catch_test_init()
112 struct kunit test; member
134 static void kunit_resource_test_init_resources(struct kunit *test) in kunit_resource_test_init_resources()
143 static void kunit_resource_test_alloc_resource(struct kunit *test) in kunit_resource_test_alloc_resource()
[all …]
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()
174 static void example_static_stub_test(struct kunit *test) in example_static_stub_test()
208 static void example_params_test(struct kunit *test) in example_params_test()
226 static void example_slow_test(struct kunit *test) in example_slow_test()
Dexecutor_test.c17 static void dummy_test(struct kunit *test) {} in dummy_test()
26 static void parse_filter_test(struct kunit *test) in parse_filter_test()
43 static void filter_suites_test(struct kunit *test) in filter_suites_test()
69 static void filter_suites_test_glob_test(struct kunit *test) in filter_suites_test_glob_test()
98 static void filter_suites_to_empty_test(struct kunit *test) in filter_suites_to_empty_test()
118 static void parse_filter_attr_test(struct kunit *test) in parse_filter_attr_test()
150 static void filter_attr_test(struct kunit *test) in filter_attr_test()
188 static void filter_attr_empty_test(struct kunit *test) in filter_attr_empty_test()
209 static void filter_attr_skip_test(struct kunit *test) in filter_attr_skip_test()
268 static void free_suite_set_at_end(struct kunit *test, const void *to_free) in free_suite_set_at_end()
[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()
Dtest.c97 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats()
198 static void kunit_print_ok_not_ok(struct kunit *test, in kunit_print_ok_not_ok()
281 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream()
304 static void kunit_fail(struct kunit *test, const struct kunit_loc *loc, in kunit_fail()
329 void __noreturn __kunit_abort(struct kunit *test) in __kunit_abort()
343 void __kunit_do_failed_assertion(struct kunit *test, in __kunit_do_failed_assertion()
363 void kunit_init_test(struct kunit *test, const char *name, char *log) in kunit_init_test()
387 static void kunit_run_case_check_speed(struct kunit *test, in kunit_run_case_check_speed()
409 static void kunit_run_case_internal(struct kunit *test, in kunit_run_case_internal()
435 static void kunit_case_internal_cleanup(struct kunit *test) in kunit_case_internal_cleanup()
[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()
Dstatic_stub.c26 static bool __kunit_static_stub_resource_match(struct kunit *test, in __kunit_static_stub_resource_match()
41 void *__kunit_get_static_stub_address_impl(struct kunit *test, void *real_fn_addr) in __kunit_get_static_stub_address_impl()
60 void kunit_deactivate_static_stub(struct kunit *test, void *real_fn_addr) in kunit_deactivate_static_stub()
87 void __kunit_activate_static_stub(struct kunit *test, in __kunit_activate_static_stub()
Dstring-stream.c17 struct kunit *test, int len, gfp_t gfp) in alloc_string_stream_fragment()
34 static void string_stream_fragment_destroy(struct kunit *test, in string_stream_fragment_destroy()
136 struct string_stream *alloc_string_stream(struct kunit *test, gfp_t gfp) in alloc_string_stream()

12