]> www.infradead.org Git - nvme.git/commit
selftests/damon: implement test for min/max_nr_regions
authorSeongJae Park <sj@kernel.org>
Tue, 25 Jun 2024 18:05:36 +0000 (11:05 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:29 +0000 (19:30 -0700)
commit781497347d1bcb8c95fca8356575cfd42fff1354
tree6646bb0e7c511a7e7e95bc83b7d4706b003d431c
parentf60636047a6cc2a3076cb202b462cff4347c07d6
selftests/damon: implement test for min/max_nr_regions

Implement a kselftest for DAMON's {min,max}_nr_regions' parameters.  The
test ensures both the minimum and the maximum number of regions limit is
respected even if the workload's real number of regions is less than the
minimum or larger than the maximum limits.

Link: https://lkml.kernel.org/r/20240625180538.73134-7-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/Makefile
tools/testing/selftests/damon/damon_nr_regions.py [new file with mode: 0644]