diff options
author | SeongJae Park <sj@kernel.org> | 2023-08-03 00:32:19 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-21 23:37:34 +0300 |
commit | b823cb08e66212f5d90b5eaad59b2371b930e33f (patch) | |
tree | 8a8f25b8c96f58ed58af7496297cb6647d545d81 /tools/testing/selftests/damon/sysfs.sh | |
parent | 6ad243b83b5094026fdb3171711ddb25246b3d8a (diff) | |
download | linux-b823cb08e66212f5d90b5eaad59b2371b930e33f.tar.xz |
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.sh | 1 |
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() |