projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2cb58
)
selftets/damon/sysfs: test existence and permission of avail_operations
author
SeongJae Park
<sj@kernel.org>
Tue, 10 May 2022 01:20:51 +0000
(18:20 -0700)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:06 +0000
(07:20 -0700)
This commit adds a selftest test case for ensuring the existence and the
permission (read-only) of the 'avail_oprations' DAMON sysfs file.
Link:
https://lkml.kernel.org/r/20220426203843.45238-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/damon/sysfs.sh
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/damon/sysfs.sh
b/tools/testing/selftests/damon/sysfs.sh
index 2e3ae77cb6db786459826d299ef5dce61cb57120..89592c64462f824b9462969d91cf9bcf515241b2 100644
(file)
--- a/
tools/testing/selftests/damon/sysfs.sh
+++ b/
tools/testing/selftests/damon/sysfs.sh
@@
-231,6
+231,7
@@
test_context()
{
context_dir=$1
ensure_dir "$context_dir" "exist"
+ ensure_file "$context_dir/avail_operations" "exit" 400
ensure_file "$context_dir/operations" "exist" 600
test_monitoring_attrs "$context_dir/monitoring_attrs"
test_targets "$context_dir/targets"