selftests-damon-remove-the-remaining-test-scripts-for-damon-debugfs-interface.patch removed from -mm tree
The quilt patch titled
Subject: selftests/damon: remove the remaining test scripts for DAMON debugfs interface
has been removed from the -mm tree. Its filename was
selftests-damon-remove-the-remaining-test-scripts-for-damon-debugfs-interface.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Enze Li <[email protected]>
Subject: selftests/damon: remove the remaining test scripts for DAMON debugfs interface
Date: Fri, 11 Apr 2025 10:43:32 +0800
DAMON has dropped debugfs support; therefore, remove these unused scripts.
---
tools/testing/selftests/damon/Makefile | 2 tools/testing/selftests/damon/_chk_dependency.sh | 52 ---------- tools/testing/selftests/damon/_debugfs_common.sh | 64 ------------- 3 files changed, 1 insertion(+), 117 deletions(-)
tools/testing/selftests/damon/_chk_dependency.sh deleted +0 -52
@@ -1,52 +0,0 @@ -#!/bin/bash -# SPDX-License-Identifier: GPL-2.0 - -# Kselftest framework requirement - SKIP code is 4. -ksft_skip=4 - -DBGFS=$(grep debugfs /proc/mounts --max-count 1 | awk '{print $2}') -if [ "$DBGFS" = "" ] -then - echo "debugfs not mounted" - exit $ksft_skip -fi - -DBGFS+="/damon" - -if [ $EUID -ne 0 ]; -then - echo "Run as root" - exit $ksft_skip -fi - -if [ ! -d "$DBGFS" ] -then - echo "$DBGFS not found" - exit $ksft_skip -fi - -if [ -f "$DBGFS/monitor_on_DEPRECATED" ] -then - monitor_on_file="monitor_on_DEPRECATED" -else - monitor_on_file="monitor_on" -fi - -for f in attrs target_ids "$monitor_on_file" -do - if [ ! -f "$DBGFS/$f" ] - then - echo "$f not found" - exit 1 - fi -done - -permission_error="Operation not permitted" -for f in attrs target_ids "$monitor_on_file" -do - status=$( cat "$DBGFS/$f" 2>&1 ) - if [ "${status#*$permission_error}" != "$status" ]; then - echo "Permission for reading $DBGFS/$f denied; maybe secureboot enabled?" - exit $ksft_skip - fi -done
tools/testing/selftests/damon/_debugfs_common.sh deleted +0 -64
64 lines not on this page · raw message
tools/testing/selftests/damon/Makefile renamed from tools/testing/selftests/damon/Makefile~selftests-damon-remove-the-remaining-test-scripts-for-damon-debugfs-interface +1 -1
@@ -3,7 +3,7 @@ TEST_GEN_FILES += access_memory access_memory_even -TEST_FILES = _chk_dependency.sh _damon_sysfs.py +TEST_FILES = _damon_sysfs.py # functionality tests TEST_PROGS += sysfs.sh
_
Patches currently in -mm which might be from [email protected] are