summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/damon/sysfs.sh
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2023-08-02 23:32:19 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-08-21 22:37:34 +0200
commitb823cb08e66212f5d90b5eaad59b2371b930e33f (patch)
tree8a8f25b8c96f58ed58af7496297cb6647d545d81 /tools/testing/selftests/damon/sysfs.sh
parentmm/damon/sysfs: implement a command for updating only schemes tried total bytes (diff)
downloadlinux-b823cb08e66212f5d90b5eaad59b2371b930e33f.tar.xz
linux-b823cb08e66212f5d90b5eaad59b2371b930e33f.zip
selftests/damon/sysfs: test tried_regions/total_bytes file
Update sysfs.sh DAMON selftest for checking existence of 'total_bytes' file under the 'tried_regions' directory of DAMON sysfs interface. Link: https://lkml.kernel.org/r/20230802213222.109841-4-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/damon/sysfs.sh')
-rw-r--r--tools/testing/selftests/damon/sysfs.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh
index bcd4734ca094..967e27267549 100644
--- a/tools/testing/selftests/damon/sysfs.sh
+++ b/tools/testing/selftests/damon/sysfs.sh
@@ -84,6 +84,7 @@ test_tried_regions()
{
tried_regions_dir=$1
ensure_dir "$tried_regions_dir" "exist"
+ ensure_file "$tried_regions_dir/total_bytes" "exist" "400"
}
test_stats()