mm/damon/core-test: add a unit test for __damos_filter_out()
authorSeongJae Park <sj@kernel.org>
Wed, 2 Aug 2023 21:43:02 +0000 (21:43 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:37:35 +0000 (13:37 -0700)
commit26713c8908752a7edca18dcafe88e36dccfb41a2
treeb44bc237fadf96ead2d284bc5e370724ecbd55d8
parent2f1abcfccd86826777b2bcb2bb4e0d149a90ccf5
mm/damon/core-test: add a unit test for __damos_filter_out()

Implement a kunit test for the core of address range DAMOS filter
handling, namely __damos_filter_out().  The test especially focus on
regions that overlap with given filter's target address range.

Link: https://lkml.kernel.org/r/20230802214312.110532-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendanhiggins@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core-test.h