From patchwork Mon Jan 6 19:19:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13927770 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 416C3E77188 for ; Mon, 6 Jan 2025 19:19:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B66C56B0088; Mon, 6 Jan 2025 14:19:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B18076B0089; Mon, 6 Jan 2025 14:19:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9DE3E6B008C; Mon, 6 Jan 2025 14:19:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 81DCC6B0088 for ; Mon, 6 Jan 2025 14:19:50 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 1158FA0255 for ; Mon, 6 Jan 2025 19:19:50 +0000 (UTC) X-FDA: 82977991740.04.558BC17 Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf23.hostedemail.com (Postfix) with ESMTP id 90A1214000A for ; Mon, 6 Jan 2025 19:19:48 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=qr5KdAA6; 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=1736191188; a=rsa-sha256; cv=none; b=i2dk6lBPvV1QJz5HTX+aaBwDZSZXDNyelIARzSqAdlWZv9/6ym4NGmkQY4rQ4y0XZX3MdY DMdeW75NmIRJ7DJRwQ5ln1/Lma7K31LhohmTnnFAdUZaX/W5U0MfntytACQAjE7EjFhoWU k0yPukDqiTqE8w4TZSbe7UnpH+XXI1Y= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=qr5KdAA6; 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=1736191188; 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=n7ADycukX3r/oyq2u1xzJp8RMqoowPfUlRwrs8ePzlA=; b=hmvubYwLgrO4MvOSo1fiqScfykPD1Cpgjs2A7ILpl14YaLiRwGSKgWWpy3wO4STUx1LbFH 2C4HeqTAcBG1d9tf+Rst7d5FY3biPrmmaYu05yfZHxbKHTMD70TW6rwVpoS2xS9uG62E0Z +64l38oTF+5gezRbVA2QWfNSttcPsXU= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id F049DA41D14; Mon, 6 Jan 2025 19:17:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 547AFC4CED2; Mon, 6 Jan 2025 19:19:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736191187; bh=audGqB4/75vUXAunZqESaFOW2tw4o9rlfVrGxy/3FPA=; h=From:To:Cc:Subject:Date:From; b=qr5KdAA6pMmrOy8OubqulhBtCmtGOwQ/P+V+ict8MbapJRuPjuDl4sMcaX+bELYid v3kP2Z9GWAPZBRz/UlVXaWKsMxos1kWwiFx9fWJqeJSNraVvRMYOJC/YMl8WC5KzjU oOgvz3magSYeKkoyStUGqb63Z6WJXXW/yOnOEsmdX36rcEj44sY2LW4H60aYy1xbwr BCnGC069k9v+FMZ8Urivr3zKS4ayT03F/8cuk90/G3RjHMTKjFrN7hvZk1nRQSuayZ ud42MkIMk6dMOLfZzvp5e6dCzkP375jU2Qd/BVK3PSS29ZLJzbhlz84Kcv/57JrMJy Stoc8v5VzlcTw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Alex Shi , Brendan Higgins , David Gow , Hu Haowen <2023002089@link.tyut.edu.cn>, Jonathan Corbet , Rae Moar , Shuah Khan , Yanteng Si , 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 v2 0/8] mm/damon: remove DAMON debugfs interface Date: Mon, 6 Jan 2025 11:19:33 -0800 Message-Id: <20250106191941.107070-1-sj@kernel.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 90A1214000A X-Stat-Signature: n94cbsx6iwju9x3hjc48s74jk8h5b89x X-Rspam-User: X-HE-Tag: 1736191188-603871 X-HE-Meta: U2FsdGVkX1+2Oi2mt3Dj9Bl1ytUJvlvQG7six5gRbM8Z/xj0/KLZ1uJ9KIhdZGF9ezKZMBvrJiqmJMwFQLpR4dqIjJpQcmNhl91L7siC9xQoLkL+0YWqPJ0uTdq79wMrIZpbahKvaoV197Ohs8L/38+Hfw2p24PrWUc+j9rDNCBOIbHZR4vE5VJQexoOox1/HtHDdnRql8m0UV/g3EvM0TZalD4dDrz8qVb5uB2UUI9jGBQxldX2ywd3SCTwfOLD0A+l7uhVtJeyok8he7caZmkZGNxlQtVAkMjA1KxiRuvqkbhCunU157xz00zs9ytim7XvkJ9F/RhhkZdxej0Noaj70QCzDQJWm+RwpKRFK3aFNvitmDMS6HKJGc2eS7A4IOKL/ZOTP3k0jqNyqslKekwRAiNh9X2IA6l26ki7t8UvydEhFsTFtuuI/aWZsOhDQBnSU3RaWUbwbvD03T3aR6p2MzBtP4nt0xmZxGaoeTcVqaj1gYTiPfQK3UbWI6DMn8UgWyJynjK2Le8qHpI4WLqI1nsaATcVl/qqbEo6tWy6hi+OUR/TTZa5Tn2KkBBcXwdu4z+ZoHq3xHGmpfQhjzPWSNbXmuKqaHeETVwJDVMkL3sRIbeojz1xzBdceZY0bIWXwVeUbe9XciYLhlXAJQfJqwCma2d7nvk+O8bf/jCUSP/Lc14vesSiWLbZNqDBps6yryAA/woHAtj0a5G4w4Kz1O1lQE9jml5OOj4gnqLEd2uV6Oa2QR0jYhOYTg7akjqvMq3G3uA0MTwFbquL01UDaL6w97keQAC0nAMqDULdXoXFW8t9vfiJcaHaX7J51beF5ULXu81Cqk7lOngopirM3+8o5Jzm7S4URQoD0r+640UORr9oN0OvKQ2QzN2O1GNQSJGOOOM06pxs9HLOvgRXfXStRF0jz9sgjMXiiVMuen/gBbVEwrtTOxT+Ica4rnMNTFuND8U4N13+FeQ o/1CkVKe LxujKOLx86LprWZjatUsrCpM9ETbHAXAiBer047Qa8g6yyES4p7jsCTi1ZJyllR/TLyrRa+sOxNIop/A9ck0ppNsO79Z2MnT31TJCXdIVMAlWOPZ8HKOuR2lDQq6Tsurzdl8vu1raMlzxwkOkOQlS0pi9s/v/zh7wIPZRhqepOd7HTL+QWhmnAQxJy9Xxz7uWQH7KugyTSqP0sBn4EyLQ8lZpGc2UCD7ch0L2FTiIuZuQHvrX1sB3Ru8Xe093Jd+cRGpZ 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 Revision History ---------------- Changes from v1 (https://lore.kernel.org/20250101213527.74203-1-sj@kernel.org) - Remove debugfs usage section and references from translations (https://lore.kernel.org/20250106183944.103569-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 (8): Docs/translations/*/admin-guide/mm/damon/usage: remove DAMON debugfs interface documentation 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 +- .../zh_CN/admin-guide/mm/damon/usage.rst | 248 +--- .../zh_TW/admin-guide/mm/damon/usage.rst | 248 +--- 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 - 25 files changed, 13 insertions(+), 2566 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