Lines Matching full:copy
29 /* glob_match() needs NULL terminated strings, so we need a copy of filter_glob_param. */
56 /* Create a copy of suite with only tests that match test_glob. */
62 struct kunit_suite *copy; in kunit_filter_tests() local
72 copy = kmemdup(suite, sizeof(*copy), GFP_KERNEL); in kunit_filter_tests()
73 if (!copy) in kunit_filter_tests()
78 kfree(copy); in kunit_filter_tests()
88 copy->test_cases = filtered; in kunit_filter_tests()
89 return copy; in kunit_filter_tests()
115 struct kunit_suite **copy, *filtered_suite; in kunit_filter_suites() local
121 copy = kmalloc_array(max, sizeof(*filtered.start), GFP_KERNEL); in kunit_filter_suites()
122 filtered.start = copy; in kunit_filter_suites()
123 if (!copy) { /* won't be able to run anything, return an empty set */ in kunit_filter_suites()
124 filtered.end = copy; in kunit_filter_suites()
142 *copy++ = filtered_suite; in kunit_filter_suites()
144 filtered.end = copy; in kunit_filter_suites()
213 if (filter_glob_param) { /* a copy was made of each suite */ in kunit_run_all_tests()