Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes
@ 2026-11-28 23:01 SJ Park
  2026-11-28 23:01 ` [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs SJ Park
  0 siblings, 1 reply; 4+ messages in thread
From: SJ Park @ 2026-11-28 23:01 UTC (permalink / raw)
  Cc: SJ Park, Andrew Morton, Brendan Higgins, David Gow, damon,
	kunit-dev, linux-kselftest, linux-mm

At the beginning, DAMON was doing only data access monitoring.  DAMON
evolved a lot to do many more works in addition to the access
monitoring.  Kconfig documentation is not updated for the fact.  It also
does not clearly explain the kunit test scopes.

Update the documentation for all features via patch 1.  Clarify the
kunit test scope via patch 2.

SJ Park (2):
  mm/damon/Kconfig: update for features other than access monitoring
  mm/damon/Kconfig: clarify kunit scope of kunit configs

 mm/damon/Kconfig | 33 ++++++++++++++++-----------------
 1 file changed, 16 insertions(+), 17 deletions(-)


base-commit: 23cd682622886800b912219e307cf46a99f69c10
-- 
2.47.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs
  2026-11-28 23:01 [RFC PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes SJ Park
@ 2026-11-28 23:01 ` SJ Park
  2026-11-29  0:37   ` Enze Li
  0 siblings, 1 reply; 4+ messages in thread
From: SJ Park @ 2026-11-28 23:01 UTC (permalink / raw)
  Cc: SJ Park, Andrew Morton, Brendan Higgins, David Gow, damon,
	kunit-dev, linux-kselftest, linux-mm

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.

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..7054fc8f3196 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

* Re: [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs
  2026-11-28 23:01 ` [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs SJ Park
@ 2026-11-29  0:37   ` Enze Li
  2026-11-29  0:50     ` SJ Park
  0 siblings, 1 reply; 4+ messages in thread
From: Enze Li @ 2026-11-29  0:37 UTC (permalink / raw)
  To: SJ Park
  Cc: Andrew Morton, Brendan Higgins, David Gow, damon, kunit-dev,
	linux-kselftest, linux-mm

Hi SJ,

On 2026/11/29 07:01, SJ Park wrote:
>  config DAMON_KUNIT_TEST
> -	bool "Test for damon" if !KUNIT_ALL_TESTS
> +	bool "Kunit tests for DAMON core" if !KUNIT_ALL_TESTS
            ^^^^^^^^

Just one nit, "Kunit" should be "KUnit" -- the other three prompts in
the same patch use "KUnit".

Other than that, LGTM.

Reviewed-by: Enze Li <lienze@kylinos.cn>

Thanks,
Enze

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs
  2026-11-29  0:37   ` Enze Li
@ 2026-11-29  0:50     ` SJ Park
  0 siblings, 0 replies; 4+ messages in thread
From: SJ Park @ 2026-11-29  0:50 UTC (permalink / raw)
  To: Enze Li
  Cc: SJ Park, Andrew Morton, Brendan Higgins, David Gow, damon,
	kunit-dev, linux-kselftest, linux-mm

On Sun, 29 Nov 2026 08:37:32 +0800 Enze Li <enze.li@linux.dev> wrote:

> Hi SJ,
> 
> On 2026/11/29 07:01, SJ Park wrote:
> >  config DAMON_KUNIT_TEST
> > -	bool "Test for damon" if !KUNIT_ALL_TESTS
> > +	bool "Kunit tests for DAMON core" if !KUNIT_ALL_TESTS
>             ^^^^^^^^
> 
> Just one nit, "Kunit" should be "KUnit" -- the other three prompts in
> the same patch use "KUnit".

Thank you for finding this.  I will fix in the next spin.

> 
> Other than that, LGTM.
> 
> Reviewed-by: Enze Li <lienze@kylinos.cn>

Thank you so much for reviews!


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-29  0:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 23:01 [RFC PATCH 0/2] mm/damon/Kconfig: update documentation for features and kunit scopes SJ Park
2026-11-28 23:01 ` [RFC PATCH 2/2] mm/damon/Kconfig: clarify kunit scope of kunit configs SJ Park
2026-11-29  0:37   ` Enze Li
2026-11-29  0:50     ` SJ Park

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox