From patchwork Wed Jan 1 21:35:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13924274 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CAE3E7718B for ; Wed, 1 Jan 2025 21:35:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4564A6B007B; Wed, 1 Jan 2025 16:35:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4051C6B0083; Wed, 1 Jan 2025 16:35:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2F4986B0085; Wed, 1 Jan 2025 16:35:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 14C9A6B007B for ; Wed, 1 Jan 2025 16:35:39 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AD942140713 for ; Wed, 1 Jan 2025 21:35:38 +0000 (UTC) X-FDA: 82960188486.26.BFE1F68 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf01.hostedemail.com (Postfix) with ESMTP id 5F60D40007 for ; Wed, 1 Jan 2025 21:34:59 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=odGBA8SU; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1735767285; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=XiTZbhfw+5ED+6iGSrNDAcmCpGzrKPCZjN/Z3Xa9pXA=; b=gqQjF6BttiSf/ZdAnjwz+QLi8/II10L90m8zMRgYYi0JYnX68piFi3hA41a4pxCIFzuFpc Erv9pw6nnyvpdrg95zuLZdVl09XP8/wJFaPjcRd4KCUnAK01Z4T+jFuboasQL8Pb58bURa qGEpCBQ29nW0LY3yWAPg/sgapY+cSOo= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=odGBA8SU; spf=pass (imf01.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=quarantine) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1735767285; a=rsa-sha256; cv=none; b=Bi3KwKULwR5cxPmg/MhmUcQ+iNQFBcnSXcD90jriCApjWugaPdscw0c2NWljUhvKm/0AGf RS0RE6BljOHzfhy8uKcA+M4yCS7Yvnsme8TP1QLpdi8s2PiPbbNpIKuirF345pOZ4ZVHeY 4/i+1Jvqziq5Tpz+5mF9RyffZ5U1zTs= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id DD549A40B71; Wed, 1 Jan 2025 21:33:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48247C4CECE; Wed, 1 Jan 2025 21:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1735767335; bh=VI1FVtTdDy6zRISgwkKnUfrXpXMVcNAmZGQ25y0xwEI=; h=From:To:Cc:Subject:Date:From; b=odGBA8SUpOMTRk0lWCE5KBuLhXp5s7lgYnpbTfXfVNf4otCnhc5EK1ujpEJAlvuXT HMK5Jm7tqRPDNW9Bm5LG4JLzsAH3kWGHzy++ykCUDDK7i8DmSPndwvdwS/DWl4reTV quUTJjeHjic3oo+V57TmmK2C8z7Qe61jhUzi4UJfDQ0XWa+jk7uOPvYqRFAC5BpX3H uqn5PYO1vRI8AxbSj8z8DTGjCeNLrzDrZ5y9EUPTkYiF6dupQpYOG9rLo7qQeSlzQ8 duA4Da+a4Q48HWLUUsX2QEVlcLwk52+QDCMvDd8cEAQTxd2zDNY/c2TI81ZguokdWO 4eYcjw+HPzA/g== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Brendan Higgins , David Gow , Jonathan Corbet , Rae Moar , Shuah Khan , damon@lists.linux.dev, kunit-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 0/7] mm/damon: remove DAMON debugfs interface Date: Wed, 1 Jan 2025 13:35:20 -0800 Message-Id: <20250101213527.74203-1-sj@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 5F60D40007 X-Rspam-User: X-Stat-Signature: aq37ncyxeh68strrdfrher4haotdgt41 X-HE-Tag: 1735767299-600492 X-HE-Meta: U2FsdGVkX18Gq78LLNsVp6JLeXJ00qdmJ1iWcGCXTZZ4f88cK7df43/Bk477reDDdBoKQIM6700M2qKGsDze4gRkvzMx0hY6O370qYaqRIcD2IwlMRTx2+2cME1dNXD4skD/u1c0CU3yyK+ov7Q3yH1OplaSfSLyhUkIJhAX6d94yjZb2+VX/OjuJLKD6LJohMItyxuMD96u/VIkz98VVXpC34rYcDe3UPQhZgaHaWP7EDGnc9pm6OCeDJlnhAI26cJYcvdJBRx+BdkcjYxXxh5L2+BsoypwpCd7WIsEvxIMYWCm6ktAuo68YC55YsXqerlXJe2eDTL+f0+0ZdHVa5qVy6sA7f74hgZI14+XtUVPJW8roAlp8JyaJLNFGWK6pq60Lj79Y5Xh///vPqoVq0LKqMps0h1k3xpN/j0NCruXx1MlgeNsoI/CixmtX4ve14a7UAFX3NUNcJntSMreAB2SOWTvgeKjD1MUsq8/KoOKplK22Xv/bV8E4JiznTBRuP+dj4AdmGkFTmxK8prOvKd/OqSSIR3/A5q91IAMD3sb2e99fDIbV7LP/yS/qpOCUs8M+N4EjnhmF/cOn7397cpCmmwCIa6NODCOyHURiWZ0nM5zI6eS5sRNfNGQrqnwVDH9FWxEw5HHt2+ibX1OqDJaB+/pKDjRwKJdEGfUq5nK4QbooZi7g840J6QomvyeC2Y2EvQrn/lIaOAr9OnyJ4SI5Ev1SXQieggz7MuSSOCf23T7OtozUuJo4CDznlFk1s1ZV31ewb6VXqkZ7MYVAwJ8EwhiRhGpk6uXuJNEaUuw2EAyO5uosx82e+FeDGEIGA8AHSglM1jeTvWi/jjf9kfMVUevy0rRu9jU8Adf1tW0omVwLnvdtEZO0YSZGtaXpQVYGgsyKxX1aACZj/IVL7/goho8mFXSDSfhEfgPutuaPEOpECrnftu0jpzoALpF/4RmlxDaQdlbkMdZq3e dVptbZjA LbVZni2QTBygptoD5aDtiKSrNQYGzVzY6rBmoqxRkN/l8HJ3DTpTkLhxELOv+C/wKu6l3x0d1BuQ4OUBK9eKAew/NRkNtK7nOUHAKeuODngvXQDvL2Hdconypoxx8mllm3YBJQpv8zY/2hGULDOMo2cvTBaGee8uX91r5uC8u3EzDDaav9Yg85knDWv1/wBp9ONblL2Gr6EFMxcXOx1SWbgO4FN7Lv6/sHj9rNiAErLVs8dFULXnoPCMSui582nUz+8lP X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: DAMON debugfs interface was the only user interface of DAMON at the beginning[1]. However, it turned out the interface would be not good enough for long-term flexibility and stability. In Feb 2022[2], we therefore introduced DAMON sysfs interface as an alternative user interface that aims long-term flexibility and stability. With its introduction, DAMON debugfs interface has announced to be deprecated in near future. In Feb 2023[3], we announced the official deprecation of DAMON debugfs interface. In Jan 2024[4], we further made the deprecation difficult to be ignored. In Oct 2024[5], we posted an RFC version of this patch series as the last notice. And as of this writing, no problem or concerns about the removal plan have reported. Apparently users are already moved to the alternative, or made good plans for the change. Remove the DAMON debugfs interface code from the tree. Given the past timeline and the absence of reported problems or concerns, it is safe enough to be done. [1] https://lore.kernel.org/20210716081449.22187-1-sj38.park@gmail.com [2] https://lore.kernel.org/20220228081314.5770-1-sj@kernel.org [3] https://lore.kernel.org/20230209192009.7885-1-sj@kernel.org [4] https://lore.kernel.org/20240130013549.89538-1-sj@kernel.org [5] https://lore.kernel.org/20241015175412.60563-1-sj@kernel.org Changes from RFC (https://lore.kernel.org/20241015175412.60563-1-sj@kernel.org) - Rebased on latest mm-unstable - Update and wordsmith commit messages SeongJae Park (7): Docs/admin-guide/mm/damon/usage: remove DAMON debugfs interface documentation Docs/mm/damon/design: update for removal of DAMON debugfs interface selftests/damon/config: remove configs for DAMON debugfs interface selftests selftests/damon: remove tests for DAMON debugfs interface kunit: configs: remove configs for DAMON debugfs interface tests mm/damon: remove DAMON debugfs interface kunit tests mm/damon: remove DAMON debugfs interface Documentation/admin-guide/mm/damon/usage.rst | 309 ----- Documentation/mm/damon/design.rst | 23 +- mm/damon/Kconfig | 30 - mm/damon/Makefile | 1 - mm/damon/dbgfs.c | 1148 ----------------- mm/damon/tests/.kunitconfig | 7 - mm/damon/tests/dbgfs-kunit.h | 173 --- tools/testing/kunit/configs/all_tests.config | 3 - tools/testing/selftests/damon/.gitignore | 3 - tools/testing/selftests/damon/Makefile | 11 +- tools/testing/selftests/damon/config | 1 - .../testing/selftests/damon/debugfs_attrs.sh | 17 - .../debugfs_duplicate_context_creation.sh | 27 - .../selftests/damon/debugfs_empty_targets.sh | 21 - .../damon/debugfs_huge_count_read_write.sh | 22 - .../damon/debugfs_rm_non_contexts.sh | 19 - .../selftests/damon/debugfs_schemes.sh | 19 - .../selftests/damon/debugfs_target_ids.sh | 19 - .../damon/debugfs_target_ids_pid_leak.c | 68 - .../damon/debugfs_target_ids_pid_leak.sh | 22 - ...fs_target_ids_read_before_terminate_race.c | 80 -- ...s_target_ids_read_before_terminate_race.sh | 14 - .../selftests/damon/huge_count_read_write.c | 46 - 23 files changed, 11 insertions(+), 2072 deletions(-) delete mode 100644 mm/damon/dbgfs.c delete mode 100644 mm/damon/tests/dbgfs-kunit.h delete mode 100755 tools/testing/selftests/damon/debugfs_attrs.sh delete mode 100755 tools/testing/selftests/damon/debugfs_duplicate_context_creation.sh delete mode 100755 tools/testing/selftests/damon/debugfs_empty_targets.sh delete mode 100755 tools/testing/selftests/damon/debugfs_huge_count_read_write.sh delete mode 100755 tools/testing/selftests/damon/debugfs_rm_non_contexts.sh delete mode 100755 tools/testing/selftests/damon/debugfs_schemes.sh delete mode 100755 tools/testing/selftests/damon/debugfs_target_ids.sh delete mode 100644 tools/testing/selftests/damon/debugfs_target_ids_pid_leak.c delete mode 100755 tools/testing/selftests/damon/debugfs_target_ids_pid_leak.sh delete mode 100644 tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.c delete mode 100755 tools/testing/selftests/damon/debugfs_target_ids_read_before_terminate_race.sh delete mode 100644 tools/testing/selftests/damon/huge_count_read_write.c