* [PATCH 1/2] mm/damon/Kconfig: update for features other than access monitoring
2026-11-29 19:08 [PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes SJ Park
@ 2026-11-29 19:08 ` SJ Park
2026-11-29 19:08 ` [PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs SJ Park
2026-11-29 19:10 ` [PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes sashiko-bot
2 siblings, 0 replies; 4+ messages in thread
From: SJ Park @ 2026-11-29 19:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: SJ Park, damon, linux-mm, Aveline Noir, Enze Li
DAMON was initially introduced as a data access monitoring tool. It has
been extended for access-aware system operations with DAMOS. Recently
it has further extended for general data attributes monitoring and
attributes aware operations. The Kconfig documentation is still
introducing DAMON as a data access monitoring framework. Update the
documentation.
Reviewed-by: Aveline Noir <jm5905938@gmail.com>
Reviewed-by: Enze Li <lienze@kylinos.cn>
Signed-off-by: SJ Park <sj@kernel.org>
---
mm/damon/Kconfig | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/mm/damon/Kconfig b/mm/damon/Kconfig
index a33f21c56347..651b4fd1a844 100644
--- a/mm/damon/Kconfig
+++ b/mm/damon/Kconfig
@@ -1,13 +1,12 @@
# SPDX-License-Identifier: GPL-2.0-only
-menu "Data Access Monitoring"
+menu "Data access/attribute monitoring and operation"
config DAMON
- bool "DAMON: Data Access Monitoring Framework"
+ bool "Build DAMON core"
help
- This builds a framework that allows kernel subsystems to monitor
- access frequency of each memory region. The information can be useful
- for performance-centric DRAM level memory management.
+ This builds the core of DAMON, which allows efficient data
+ access/attribute monitoring and operations.
See https://www.kernel.org/doc/html/latest/mm/damon/index.html for
more information.
@@ -36,22 +35,22 @@ config DAMON_KUNIT_TEST
If unsure, say N.
config DAMON_VADDR
- bool "Data access monitoring operations for virtual address spaces"
+ bool "DAMON operation set for virtual address spaces"
depends on DAMON && MMU
select PAGE_IDLE_FLAG
default DAMON
help
- This builds the default data access monitoring operations for DAMON
- that work for virtual address spaces.
+ This builds the default DAMON operation set that works for virtual
+ address spaces.
config DAMON_PADDR
- bool "Data access monitoring operations for the physical address space"
+ bool "DAMON operation set for the physical address space"
depends on DAMON && MMU
select PAGE_IDLE_FLAG
default DAMON
help
- This builds the default data access monitoring operations for DAMON
- that works for the physical address space.
+ This builds the default DAMON operation set that works for the
+ physical address space.
config DAMON_VADDR_KUNIT_TEST
bool "Test for DAMON operations" if !KUNIT_ALL_TESTS
@@ -83,7 +82,7 @@ config DAMON_SYSFS
default DAMON
help
This builds the sysfs interface for DAMON. The user space can use
- the interface for arbitrary data access monitoring.
+ the interface for data access/attribute monitoring and operations.
config DAMON_SYSFS_KUNIT_TEST
bool "Test for damon sysfs interface" if !KUNIT_ALL_TESTS
--
2.47.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs
2026-11-29 19:08 [PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes SJ Park
2026-11-29 19:08 ` [PATCH 1/2] mm/damon/Kconfig: update for features other than access monitoring SJ Park
@ 2026-11-29 19:08 ` SJ Park
2026-11-29 19:10 ` [PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes sashiko-bot
2 siblings, 0 replies; 4+ messages in thread
From: SJ Park @ 2026-11-29 19:08 UTC (permalink / raw)
To: Andrew Morton
Cc: SJ Park, Brendan Higgins, David Gow, damon, kunit-dev,
linux-kselftest, linux-mm, David Gow, Aveline Noir, Enze Li
The prompts for DAMON kunit configs are not clearly saying it is for
kunit tests. DAMON_KUNIT_TEST is only for the core layer, but the help
message is not clarifying that. Clarify those.
Acked-by: David Gow <david@davidgow.net>
Reviewed-by: Aveline Noir <jm5905938@gmail.com>
Reviewed-by: Enze Li <lienze@kylinos.cn>
Signed-off-by: SJ Park <sj@kernel.org>
---
mm/damon/Kconfig | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mm/damon/Kconfig b/mm/damon/Kconfig
index 651b4fd1a844..4c32a6242d51 100644
--- a/mm/damon/Kconfig
+++ b/mm/damon/Kconfig
@@ -23,11 +23,11 @@ config DAMON_DEBUG_SANITY
If unsure, say N.
config DAMON_KUNIT_TEST
- bool "Test for damon" if !KUNIT_ALL_TESTS
+ bool "KUnit tests for DAMON core" if !KUNIT_ALL_TESTS
depends on DAMON && KUNIT=y
default KUNIT_ALL_TESTS
help
- This builds the DAMON Kunit test suite.
+ This builds the DAMON Kunit test suite for DAMON core.
For more information on KUnit and unit tests in general, please refer
to the KUnit documentation.
@@ -53,7 +53,7 @@ config DAMON_PADDR
physical address space.
config DAMON_VADDR_KUNIT_TEST
- bool "Test for DAMON operations" if !KUNIT_ALL_TESTS
+ bool "KUnit tests for DAMON virtual address operations" if !KUNIT_ALL_TESTS
depends on DAMON_VADDR && KUNIT=y
default KUNIT_ALL_TESTS
help
@@ -65,7 +65,7 @@ config DAMON_VADDR_KUNIT_TEST
If unsure, say N.
config DAMON_PADDR_KUNIT_TEST
- bool "Tets for DAMON physical address operations" if !KUNIT_ALL_TESTS
+ bool "KUnit tests for DAMON physical address operations" if !KUNIT_ALL_TESTS
depends on DAMON_PADDR && KUNIT=y
default KUNIT_ALL_TESTS
help
@@ -85,7 +85,7 @@ config DAMON_SYSFS
the interface for data access/attribute monitoring and operations.
config DAMON_SYSFS_KUNIT_TEST
- bool "Test for damon sysfs interface" if !KUNIT_ALL_TESTS
+ bool "KUnit tests for DAMON sysfs interface" if !KUNIT_ALL_TESTS
depends on DAMON_SYSFS && KUNIT=y
default KUNIT_ALL_TESTS
help
--
2.47.3
^ permalink raw reply related [flat|nested] 4+ messages in thread