]> www.infradead.org Git - nvme.git/commit
selftests/damon: implement a program for even-numbered memory regions access
authorSeongJae Park <sj@kernel.org>
Tue, 25 Jun 2024 18:05:33 +0000 (11:05 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:28 +0000 (19:30 -0700)
commitc94df805c774ff87022396bb8120d5872cd7e5ed
tree2a1207284d0b6ca6a0e0196a13cc8f69fff7d211
parent209e6313fb17dbc66cec7230902ba4427717e6ee
selftests/damon: implement a program for even-numbered memory regions access

To test schemes_tried_regions feature, we need to have a program having
specific number of regions that having different access pattern.  Existing
artificial access pattern generator, 'access_memory', cannot be used for
the purpose, since it accesses only one region at a given time.  Extending
it could be an option, but since the purpose and the implementation are
pretty simple, implementing another one from the scratch is better.

Implement such another artificial memory access program that allocates
user-defined number/size regions and accesses even-numbered regions.

Link: https://lkml.kernel.org/r/20240625180538.73134-4-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/access_memory_even.c [new file with mode: 0644]