kselftests/damon: add support for cases where debugfs cannot be read
authorGautam <gautammenghani201@gmail.com>
Sat, 25 Jun 2022 19:52:45 +0000 (01:22 +0530)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 27 Jun 2022 20:14:41 +0000 (14:14 -0600)
commit43fe0cc46b6206b25f0f13bb249f0078441ae15a
treee2aeb062d14f52e2fdd88bea8428a494f9fb57eb
parent18afe1bf05a11c1b186bcf696e7a06bfed0e5ba2
kselftests/damon: add support for cases where debugfs cannot be read

The kernel is in lockdown mode when secureboot is enabled and hence
debugfs cannot be used. Add support for this and other general cases
where debugfs cannot be read and communicate the same to the user before
running tests.

Signed-off-by: Gautam <gautammenghani201@gmail.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/damon/_chk_dependency.sh