All of lore.kernel.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: SeongJae Park <sj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	damon@lists.linux.dev, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: Re: [RFC PATCH 01/10] mm/damon: add CONFIG_DAMON_DEBUG_SANITY
Date: Sun,  1 Mar 2026 08:31:20 -0800	[thread overview]
Message-ID: <20260301163120.92436-1-sj@kernel.org> (raw)
In-Reply-To: <20260221193629.19332-2-sj@kernel.org>

On Sat, 21 Feb 2026 11:36:18 -0800 SeongJae Park <sj@kernel.org> wrote:

> Add a new build config that will enable additional DAMON sanity checks.
> It is recommended to be enabled on only development and test setups,
> since it can impose additional overhead.
> 
> Signed-off-by: SeongJae Park <sj@kernel.org>
> ---
>  mm/damon/Kconfig | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/mm/damon/Kconfig b/mm/damon/Kconfig
> index 8c868f7035fce..413adbd8e4089 100644
> --- a/mm/damon/Kconfig
> +++ b/mm/damon/Kconfig
> @@ -12,6 +12,17 @@ config DAMON
>  	  See https://www.kernel.org/doc/html/latest/mm/damon/index.html for
>  	  more information.
>  
> +config DAMON_DEBUG_SANITY
> +	bool "Check sanity of DAMON code"
> +	depends on DAMON
> +	help
> +	  This enables additional DAMON debugging-purpose sanity checks in
> +	  DAMON code.  This can be useful for finding bugs, but impose
> +	  additional overhead.  This is therefore recommended to be enable on

I will s/enable/enabled/ above in the next spin.

> +	  only development and test setups.
> +
> +	  If unsure, say N.
> +
>  config DAMON_KUNIT_TEST
>  	bool "Test for damon" if !KUNIT_ALL_TESTS
>  	depends on DAMON && KUNIT=y
> -- 
> 2.47.3


Thanks,
SJ

  reply	other threads:[~2026-03-01 16:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-21 19:36 [RFC PATCH 00/10] mm/damon: add optional debugging-purpose sanity checks SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 01/10] mm/damon: add CONFIG_DAMON_DEBUG_SANITY SeongJae Park
2026-03-01 16:31   ` SeongJae Park [this message]
2026-02-21 19:36 ` [RFC PATCH 02/10] mm/damon/core: add damon_new_region() debug_sanity check SeongJae Park
2026-03-01 16:33   ` SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 03/10] mm/damon/core: add damon_del_region() " SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 04/10] mm/damon/core: add damon_nr_regions() " SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 05/10] mm/damon/core: add damon_merge_two_regions() " SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 06/10] mm/damon/core: add damon_merge_regions_of() " SeongJae Park
2026-03-01 16:42   ` SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 07/10] mm/damon/core: add damon_split_region_at() " SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 08/10] mm/damon/core: add damon_reset_aggregated() " SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 09/10] mm/damon/tests/.kunitconifg: enable DAMON_DEBUG_SANITY SeongJae Park
2026-02-21 20:15   ` SeongJae Park
2026-02-21 19:36 ` [RFC PATCH 10/10] tools/testing/selftests/damon/config: " SeongJae Park
2026-02-28 22:45   ` SeongJae Park

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260301163120.92436-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=damon@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.