From patchwork Tue Oct 15 17:54:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13836800 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 1426CD1D88B for ; Tue, 15 Oct 2024 17:54:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9C57E6B0085; Tue, 15 Oct 2024 13:54:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 94E476B0088; Tue, 15 Oct 2024 13:54:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C8B76B0089; Tue, 15 Oct 2024 13:54:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 5AE216B0085 for ; Tue, 15 Oct 2024 13:54:25 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 01F971C5D0A for ; Tue, 15 Oct 2024 17:54:14 +0000 (UTC) X-FDA: 82676586006.14.84E5F25 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf23.hostedemail.com (Postfix) with ESMTP id 88DDA14001D for ; Tue, 15 Oct 2024 17:54:18 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=npxNuknr; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf23.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1729014831; a=rsa-sha256; cv=none; b=Sh6rl14hOYtugtbDm+6IDpXUuhIPuDb8OhnNDdZpnsThoYYbvWUhgyqcfKzy3NL+I+ArZ5 dHSL6JCE0Vf9nwlM2rASCtsgJ0UD61rdGS2r3NZJYSGleMXDKqtYfW7DEINDh/oJBydmP3 UADGwrk3sKDSpKkcyaxZumEcXgPg3Dw= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=npxNuknr; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf23.hostedemail.com: domain of sj@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1729014831; 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=ylj0yFM5R7YUzrwgawYH3i52ySvdwdE7/Y086KglwI8=; b=vY/qYasb29khognSIjf3DVATvhFbDJFq5ASn4Ml2sEzcN0NBGPaplnYqgTQ4pkzCqic9yA U1sBYgge5djXYHjbpiEsatAXQo2tLfRMcY+uRm9LkASm8ISjb70PvkNX4EYTeUkqfJme6z zLVitMf1L8HC2Z0B3sGtGtU+NuutRp4= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 04BA3A41512; Tue, 15 Oct 2024 17:54:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EB23C4CEC6; Tue, 15 Oct 2024 17:54:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729014861; bh=WfG2PlaOTZkS3YXMbBJ7ZIAnb6kLrko4vWQD4DTsP0Q=; h=From:To:Cc:Subject:Date:From; b=npxNuknrOhCHHHWob+cHkhRkt34VVmZhX+xzacT++fxFr18Imzs+dSoMrz+BnPvlB +uT+MsJXmvEKYvzoiDmCwc5Z22jS5iUXsk9nhpqL6QqVGjVwFpKjvU5SwoaYPaY7FN S+3bxG+j/BB5QGilOQvry3CWna3EHZtezuJCgcVdNOor3RRypOGNaxci4zjCvviuet Bp4gA+tYeU4Ai0Gea7SZYu7UjcHXuiZG7SB/rSVczzDRcDc8YIc60zTx3ZIn+Db9BC llJgZqSE6xRV9dpEIU4HXVG/2yEUJRO+Awaukul8n12u3pYghwf2wPfvaq4kXi2Na6 /MexoYtNdW/vQ== From: SeongJae Park To: Cc: SeongJae Park , Andrew Morton , Jonathan Corbet , Shuah Khan , Brendan Higgins , David Gow , Rae Moar , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/7] mm/damon: remove DAMON debugfs interface Date: Tue, 15 Oct 2024 10:54:05 -0700 Message-Id: <20241015175412.60563-1-sj@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Rspam-User: X-Stat-Signature: zyjcrj9d8u1jmhtot7g48nh4jzkjxkdz X-Rspamd-Queue-Id: 88DDA14001D X-Rspamd-Server: rspam02 X-HE-Tag: 1729014858-717638 X-HE-Meta: U2FsdGVkX18REbFG7VXt4q/i3gPErZY75+QsfNTE3rwKNK7BIYPev1cxYMPdt4fPFrjrqK8GPTmvYKgkfzfQdTU2Jo1aATOTFiYffR+DA+mG0YQV9EAVcMmC7u7WZpNZV5qsW83Jrk29vNmskxZ9UNsiNECz9k0ZxylwudpYKYsly/YBsNIszA5toztzyTHi/REEjWsJQa6Enuwfe6QLbrbGFVE5XrQ88ZmgtKcq6NmGTMKDGL8zd4D5jxCmBuspoLyaq5/rUAtvLrqKkCtb+FC+HeV17SRUtIhlzHhOQ3eB/ivvr9zcvb3XTK0/DhNRdvozjVm8hxOWCeidplk+k7Qrhf6eBUJv47w5/CY1gFYr6KIb7lngwjus+kjE+LeY48pJhWdRLKR56ZOJEW/S1xUs5BNLyCDieHkYf8PoFa/tHahwhh8JaJKhJmaaUvuM5LbfwqriNjxC2Tx0v1bzPdXwrrP0YS5uDmotBMp8xhU9YyBmmyxlIS/nue+LWA1HkXKoesfTuRguwUOQRkmSq6ZYQPBHYxc4DqKZUuX9wrRGSY865YbZL8KojLmN5gJsxl5jfquaOnT51j9ibzt7CGn77A6nTVLdtqqnWwHh1L+4qMhONRMz0onlPdJ7VdrZlDwqRfFBaPhdxQ9h4iUEr65/Y6DxgTSSuk2V6YieJ1cdY5Rm6Q6WJJdpp6H6nMW4rM5k5v6vRd9AQJaRk2XDM/mRrAs0BrjZ2R7ZBp1kG1/XGoYbMrXUhT0iF4GrQB0EHCmemnr0rzc+U+noLb+/TriBTKa2+wIYzOuHqb/XikgBAgPvQPZD2+G8k0aPFlBgxcqrqbJvlUbwcxPEA9b1nrkmzkgRlrdA9t3UfpbZoh8V+UAKuYtzEte/aHUtipqePrzhqhJHk42L0BcNaDBhuIoY8MRpd7+QqPEsqF3h+kWxiUd4VNv0AzKrOu+XrL5Pt1CEJ1f0qYju0DEuLFb LDF0n7jS gq9imW/L+Mfj1Emxe5WyAHpOkJyxH3BfxPhwIoNOGZNoKQM1VJv7cDPt1aRYe7FIBMVNUIrAUAHd+8YgZqgTGt4ov1Ii9LT+irb6gyLMOCvgtxLQHz3dXFEJWfI429L37bfdb8ZTZ29ink7n3fwljq2tFzfctkCtAAl+lJgrCnTcp+Vhs9dKx9VYARzZe2Aobw/UQNk9HbLpphASs8E4dQIGeZvn3ZBS54HjBKUruEDuI3VjtgcZ01GNgQfdnzjVih8yT 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. And as of this writing (2024-10-14), no problem or concerns about the deprecation 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. That said, we will not drop the RFC tag of this patch series at least until the end of this year, to use this as the real last call for users. [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 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 | 48 - 23 files changed, 11 insertions(+), 2074 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 base-commit: 5ef943709a1b88304aa6e8cb8683a25bf81874f0