Lines Matching full:filter

31  * @filter: function to indicate whether a given attribute value passes a
32 * filter
40 int (*filter)(void *attr, const char *input, int *err); member
82 /* Filter Methods */
87 * Returns whether the inputted integer value matches the filter given
105 pr_err("kunit executor: invalid filter operation: %s\n", op); in int_filter()
110 * Returns whether the inputted enum value "attr" matches the filter given
130 pr_err("kunit executor: filter value not found: %s\n", input); in attr_enum_filter()
141 pr_err("kunit executor: invalid filter input: %s\n", input); in attr_enum_filter()
154 * Returns whether the inputted string value (attr) matches the filter given
163 pr_err("kunit executor: invalid filter input: %s\n", input); in attr_string_filter()
167 pr_err("kunit executor: invalid filter input: %s\n", input); in attr_string_filter()
175 pr_err("kunit executor: invalid filter operation: %s\n", input); in attr_string_filter()
194 pr_err("kunit executor: filter value not found: %s\n", input); in attr_bool_filter()
204 pr_err("kunit executor: invalid filter input: %s\n", input); in attr_bool_filter()
256 .filter = attr_speed_filter,
264 .filter = attr_string_filter,
272 .filter = attr_bool_filter,
280 const char *kunit_attr_filter_name(struct kunit_attr_filter filter) in kunit_attr_filter_name() argument
282 return filter.attr->name; in kunit_attr_filter_name()
318 /* Helper Functions to Filter Attributes */
338 struct kunit_attr_filter filter = {}; in kunit_next_attr_filter() local
358 pr_err("kunit executor: filter operation not found: %s\n", input); in kunit_next_attr_filter()
359 return filter; in kunit_next_attr_filter()
380 filter.attr = &kunit_attr_list[attr_index]; in kunit_next_attr_filter()
385 filter.input = input + op_index; in kunit_next_attr_filter()
388 filter.input = input + op_index; in kunit_next_attr_filter()
394 return filter; in kunit_next_attr_filter()
398 struct kunit_attr_filter filter, char *action, int *err) in kunit_filter_attr_tests() argument
422 default_result = filter.attr->filter(filter.attr->attr_default, filter.input, err); in kunit_filter_attr_tests()
427 suite_val = filter.attr->get_attr((void *)suite, false); in kunit_filter_attr_tests()
428 suite_result = filter.attr->filter(suite_val, filter.input, err); in kunit_filter_attr_tests()
434 test_val = filter.attr->get_attr((void *) test_case, true); in kunit_filter_attr_tests()
435 test_result = filter.attr->filter(filter.attr->get_attr(test_case, true), in kunit_filter_attr_tests()
436 filter.input, err); in kunit_filter_attr_tests()
441 * If attribute value of test case is set, filter on that value. in kunit_filter_attr_tests()
442 * If not, filter on suite value if set. If not, filter on in kunit_filter_attr_tests()