selftests/damon/_damon_sysfs: implement updat_schemes_tried_bytes command
authorSeongJae Park <sj@kernel.org>
Tue, 12 Dec 2023 19:48:08 +0000 (19:48 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 20 Dec 2023 22:48:13 +0000 (14:48 -0800)
commit3402c6ce398e33bf1733f619756dd068ca2e2aa5
treec7f601170be032d0e5cefc0699b8aa53e9dd1f01
parentf5f0e5a2bef9e46f7a674b71d7f2a4c4b7e6bc5d
selftests/damon/_damon_sysfs: implement updat_schemes_tried_bytes command

Implement update_schemes_tried_bytes command of DAMON sysfs interface in
_damon_sysfs.py.  It is not only making the update, but also read the
updated value from the sysfs interface and store it in the Kdamond python
objects so that the user of the module can easily get the value.

Link: https://lkml.kernel.org/r/20231212194810.54457-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/_damon_sysfs.py