mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 23:04:17 +08:00
selftests/damon/sysfs: test address range damos filter
Add a selftest for checking existence of addr_{start,end} files under DAMOS filter directory, and 'addr' damos filter type input of DAMON sysfs interface. Link: https://lkml.kernel.org/r/20230802214312.110532-5-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Brendan Higgins <brendanhiggins@google.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
26713c8908
commit
4c45c20d53
@ -103,9 +103,12 @@ test_filter()
|
||||
ensure_file "$filter_dir/type" "exist" "600"
|
||||
ensure_write_succ "$filter_dir/type" "anon" "valid input"
|
||||
ensure_write_succ "$filter_dir/type" "memcg" "valid input"
|
||||
ensure_write_succ "$filter_dir/type" "addr" "valid input"
|
||||
ensure_write_fail "$filter_dir/type" "foo" "invalid input"
|
||||
ensure_file "$filter_dir/matching" "exist" "600"
|
||||
ensure_file "$filter_dir/memcg_path" "exist" "600"
|
||||
ensure_file "$filter_dir/addr_start" "exist" "600"
|
||||
ensure_file "$filter_dir/addr_end" "exist" "600"
|
||||
}
|
||||
|
||||
test_filters()
|
||||
|
Loading…
Reference in New Issue
Block a user