linux/mm/damon/core-test.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Data Access Monitor Unit Tests
 *
 * Copyright 2019 Amazon.com, Inc. or its affiliates.  All rights reserved.
 *
 * Author: SeongJae Park <[email protected]>
 */

#ifdef CONFIG_DAMON_KUNIT_TEST

#ifndef _DAMON_CORE_TEST_H
#define _DAMON_CORE_TEST_H

#include <kunit/test.h>

static void damon_test_regions(struct kunit *test)
{}

static unsigned int nr_damon_targets(struct damon_ctx *ctx)
{}

static void damon_test_target(struct kunit *test)
{}

/*
 * Test kdamond_reset_aggregated()
 *
 * DAMON checks access to each region and aggregates this information as the
 * access frequency of each region.  In detail, it increases '->nr_accesses' of
 * regions that an access has confirmed.  'kdamond_reset_aggregated()' flushes
 * the aggregated information ('->nr_accesses' of each regions) to the result
 * buffer.  As a result of the flushing, the '->nr_accesses' of regions are
 * initialized to zero.
 */
static void damon_test_aggregate(struct kunit *test)
{}

static void damon_test_split_at(struct kunit *test)
{}

static void damon_test_merge_two(struct kunit *test)
{}

static struct damon_region *__nth_region_of(struct damon_target *t, int idx)
{}

static void damon_test_merge_regions_of(struct kunit *test)
{}

static void damon_test_split_regions_of(struct kunit *test)
{}

static void damon_test_ops_registration(struct kunit *test)
{}

static void damon_test_set_regions(struct kunit *test)
{}

static void damon_test_nr_accesses_to_accesses_bp(struct kunit *test)
{}

static void damon_test_update_monitoring_result(struct kunit *test)
{}

static void damon_test_set_attrs(struct kunit *test)
{}

static void damon_test_moving_sum(struct kunit *test)
{}

static void damos_test_new_filter(struct kunit *test)
{}

static void damos_test_filter_out(struct kunit *test)
{}

static void damon_test_feed_loop_next_input(struct kunit *test)
{}

static struct kunit_case damon_test_cases[] =;

static struct kunit_suite damon_test_suite =;
kunit_test_suite();

#endif /* _DAMON_CORE_TEST_H */

#endif	/* CONFIG_DAMON_KUNIT_TEST */