summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/damon/_debugfs_common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/damon/_debugfs_common.sh')
-rw-r--r--tools/testing/selftests/damon/_debugfs_common.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/damon/_debugfs_common.sh b/tools/testing/selftests/damon/_debugfs_common.sh
index 48989d4813..aa99551687 100644
--- a/tools/testing/selftests/damon/_debugfs_common.sh
+++ b/tools/testing/selftests/damon/_debugfs_common.sh
@@ -45,6 +45,13 @@ test_content() {
source ./_chk_dependency.sh
damon_onoff="$DBGFS/monitor_on"
+if [ -f "$DBGFS/monitor_on_DEPRECATED" ]
+then
+ damon_onoff="$DBGFS/monitor_on_DEPRECATED"
+else
+ damon_onoff="$DBGFS/monitor_on"
+fi
+
if [ $(cat "$damon_onoff") = "on" ]
then
echo "monitoring is on"