Re: [PATCH 3/6] mm/damon/tests/core-kunit: test sz_ops_filter_passed_last
From: SJ Park
Date: Tue Nov 17 2026 - 09:20:55 EST
On Tue, 17 Nov 2026 14:49:05 +1100 Aveline Noir <jm5905938@xxxxxxxxx> wrote:
> Hi Mattathias,
>
> On Mon, 16 Nov 2026 19:10:06 +0000 Mattathias Pinchover via B4 Relay wrote:
>
> > Add a kunit test for the sz_ops_filter_passed_last DAMOS stat.
>
> Since the motivation mentions contexts with multiple targets, maybe we
> could also cover two targets in the same context, with the stub returning
> different sizes for each? Checking their sum, then changing the sizes for
> the next interval, would verify both aggregation across targets and that
> the value only includes the latest interval.
I concern if that will make this test too complicated. Testing those would be
good, but not necessarily for sz_ops_filter_passed_last, in my opinion. Those
may deserve a separate test, if there is no test covering that.
Thanks,
SJ
[...]