mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 12:13:51 -04:00
selftests/damon/sysfs.sh: test multiple probe dirs creation
DAMON sysfs essential file operations test (sysfs.sh) was extended to test
DAMON probes sysfs directory, by commit 14885da09b
("selftests/damon/sysfs.sh: test probes dir"). Unlike other DAMON sysfs
files, it is testing only a single directory case. Extend it for multiple
directories.
Link: https://lore.kernel.org/20260630141726.92246-5-sj@kernel.org
Signed-off-by: SJ Park <sj@kernel.org>
Cc: Brendan Higgins <brendan.higgins@linux.dev>
Cc: David Hildenbrand <david@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
@@ -346,8 +346,13 @@ test_probes()
|
||||
ensure_write_succ "$probes_dir/nr_probes" "1" "valid input"
|
||||
test_probe "$probes_dir/0"
|
||||
|
||||
ensure_write_succ "$probes_dir/nr_probes" "2" "valid input"
|
||||
test_probe "$probes_dir/0"
|
||||
test_probe "$probes_dir/1"
|
||||
|
||||
ensure_write_succ "$probes_dir/nr_probes" "0" "valid input"
|
||||
ensure_dir "$probes_dir/0" "not_exist"
|
||||
ensure_dir "$probes_dir/1" "not_exist"
|
||||
}
|
||||
|
||||
test_monitoring_attrs()
|
||||
|
||||
Reference in New Issue
Block a user