Skip to content

Commit

Permalink
selftests/damon/sysfs: test tried_regions/total_bytes file
Browse files Browse the repository at this point in the history
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>
SeongJae Park authored and Andrew Morton committed Aug 21, 2023
1 parent 6ad243b commit b823cb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/damon/sysfs.sh
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit b823cb0

Please sign in to comment.