diff options
| author | Song Hu <husong@kylinos.cn> | 2026-07-13 17:46:48 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-08-06 18:56:55 -0700 |
| commit | 169c0a1ec49483228bb8f00fdc905b7b1438ce1c (patch) | |
| tree | 355309337a5a81cd2af645026fbd2e6d2e312a68 /tools/perf/scripts/python | |
| parent | 08d36b191f337dac643ec3365cc5d2e56c9f2d64 (diff) | |
mm/damon/tests/core-kunit: test damon_nr_accesses_mvsum()
damon_nr_accesses_mvsum() wraps damon_mvsum() with the monitoring
intervals of the context to compute the pseudo moving sum of a region's
access frequency, with a special case for when the whole aggregation
window remains. damon_mvsum() itself is already covered by
damon_test_mvsum(), but the wrapper is not.
Add a table-driven KUnit test that exercises the full-window-remaining
boundary (with both reset and not-yet-reset nr_accesses), partially
elapsed windows, and the no-window-remaining case.
Link: https://lore.kernel.org/20260713094648.897239-1-husong@kylinos.cn
Signed-off-by: Song Hu <husong@kylinos.cn>
Reviewed-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
