#include <kunit/test.h>
#include <kunit/attributes.h>
enum print_ops { … };
struct kunit_attr { … };
static const char * const speed_str_list[] = …;
static const char *attr_enum_to_string(void *attr, const char * const str_list[], bool *to_free)
{ … }
static const char *attr_bool_to_string(void *attr, bool *to_free)
{ … }
static const char *attr_speed_to_string(void *attr, bool *to_free)
{ … }
static const char *attr_string_to_string(void *attr, bool *to_free)
{ … }
static const char op_list[] = …;
static int int_filter(long val, const char *op, int input, int *err)
{ … }
static int attr_enum_filter(void *attr, const char *input, int *err,
const char * const str_list[], int max)
{ … }
static int attr_speed_filter(void *attr, const char *input, int *err)
{ … }
static int attr_string_filter(void *attr, const char *input, int *err)
{ … }
static int attr_bool_filter(void *attr, const char *input, int *err)
{ … }
static void *attr_speed_get(void *test_or_suite, bool is_test)
{ … }
static void *attr_module_get(void *test_or_suite, bool is_test)
{ … }
static void *attr_is_init_get(void *test_or_suite, bool is_test)
{ … }
static struct kunit_attr kunit_attr_list[] = …;
const char *kunit_attr_filter_name(struct kunit_attr_filter filter)
{ … }
void kunit_print_attr(void *test_or_suite, bool is_test, unsigned int test_level)
{ … }
int kunit_get_filter_count(char *input)
{ … }
struct kunit_attr_filter kunit_next_attr_filter(char **filters, int *err)
{ … }
struct kunit_suite *kunit_filter_attr_tests(const struct kunit_suite *const suite,
struct kunit_attr_filter filter, char *action, int *err)
{ … }