Skip to content

mm/damon: remove DAMON debugfs interface

SeongJae Park damon linux-doc linux-kselftest linux-mm lkml 2 versions – Applied

Status from this message: [merged mm-stable] mm-damon-remove-damon-debugfs-interface.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesApplied 8/8
  2. v17 patches 0 repliesSuperseded

Changes in v2 from the cover letter

(https://lore.kernel.org/[email protected])
- Remove debugfs usage section and references from translations
(https://lore.kernel.org/[email protected])

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8Docs/translations/*/admin-guide/mm/damon/usage: remove DAMON debugfs interface documentationDocumentation/translations/zh_CN/admin-guide/mm/damon/usage.rst Documentation/translations/zh_TW/admin-guide/mm/damon/usage.rst+2 -4940 repliesApplied
2/8Docs/admin-guide/mm/damon/usage: remove DAMON debugfs interface documentationDocumentation/admin-guide/mm/damon/usage.rst+0 -3090 repliesApplied
3/8Docs/mm/damon/design: update for removal of DAMON debugfs interfaceDocumentation/mm/damon/design.rst+10 -130 repliesApplied
4/8selftests/damon/config: remove configs for DAMON debugfs interface selfteststools/testing/selftests/damon/config+0 -10 repliesApplied
5/8selftests/damon: remove tests for DAMON debugfs interfacetools/testing/selftests/damon/.gitignore tools/testing/selftests/damon/Makefile tools/testing/selftests/damon/debugfs_attrs.sh +11 more+1 -3870 repliesApplied
6/8kunit: configs: remove configs for DAMON debugfs interface teststools/testing/kunit/configs/all_tests.config+0 -30 repliesApplied
7/8mm/damon: remove DAMON debugfs interface kunit testsmm/damon/Kconfig mm/damon/dbgfs.c mm/damon/tests/.kunitconfig +1 more+0 -1940 repliesApplied
8/8mm/damon: remove DAMON debugfs interfacemm/damon/Kconfig mm/damon/Makefile mm/damon/dbgfs.c+0 -11650 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] mm/damon: remove DAMON debugfs interface

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/[email protected]
[2] https://lore.kernel.org/[email protected]
[3] https://lore.kernel.org/[email protected]
[4] https://lore.kernel.org/[email protected]
[5] https://lore.kernel.org/[email protected]

Revision History
----------------

Changes from v1
(https://lore.kernel.org/[email protected])
- Remove debugfs usage section and references from translations
(https://lore.kernel.org/[email protected])

Changes from RFC
(https://lore.kernel.org/[email protected])
- 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
Signature · 1 line
2.39.5