]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/damon/_damon_sysfs: read tried regions directories in order
authorSeongJae Park <sj@kernel.org>
Tue, 13 May 2025 00:27:14 +0000 (17:27 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 22 May 2025 21:55:38 +0000 (14:55 -0700)
commit03f83209e8e72df7eb6ed0afc60adca492844082
tree8af9bffd095edf54428fd6cffafbf465b7af2580
parent094fb14913c7c92b2fa8b398fe6a4b8f143aec25
selftests/damon/_damon_sysfs: read tried regions directories in order

Kdamond.update_schemes_tried_regions() reads and stores tried regions
information out of address order.  It makes debugging a test failure
difficult.  Change the behavior to do the reading and writing in the
address order.

Link: https://lkml.kernel.org/r/20250513002715.40126-6-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Gow <davidgow@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/_damon_sysfs.py