From: John Hubbard <jhubbard@nvidia.com>
To: Barry Song <song.bao.hua@hisilicon.com>,
<akpm@linux-foundation.org>, <linux-mm@kvack.org>,
<linux-kernel@vger.kernel.org>
Cc: <linuxarm@huawei.com>, Ralph Campbell <rcampbell@nvidia.com>,
Randy Dunlap <rdunlap@infradead.org>,
John Garry <john.garry@huawei.com>
Subject: Re: [PATCH v2] mm/gup_test: GUP_TEST depends on DEBUG_FS
Date: Sun, 8 Nov 2020 23:45:57 -0800 [thread overview]
Message-ID: <cf1b1b35-c608-9b5e-0c1a-216431b83750@nvidia.com> (raw)
In-Reply-To: <20201108083732.15336-1-song.bao.hua@hisilicon.com>
On 11/8/20 12:37 AM, Barry Song wrote:
> Without DEBUG_FS, all the code in gup_test becomes meaningless. For sure
> kernel provides debugfs stub while DEBUG_FS is disabled, but the point
> here is that GUP_TEST can do nothing without DEBUG_FS.
>
> Cc: John Hubbard <jhubbard@nvidia.com>
> Cc: Ralph Campbell <rcampbell@nvidia.com>
> Cc: Randy Dunlap <rdunlap@infradead.org>
> Suggested-by: John Garry <john.garry@huawei.com>
> Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
> ---
> -v2:
> add comment as a prompt to users as commented by John and Randy, thanks!
>
> mm/Kconfig | 4 ++++
> 1 file changed, 4 insertions(+)
Thanks for suffering through a lot of discussion about this!
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
thanks,
--
John Hubbard
NVIDIA
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 01b0ae0cd9d3..a7ff0d31afd5 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -836,6 +836,7 @@ config PERCPU_STATS
>
> config GUP_TEST
> bool "Enable infrastructure for get_user_pages()-related unit tests"
> + depends on DEBUG_FS
> help
> Provides /sys/kernel/debug/gup_test, which in turn provides a way
> to make ioctl calls that can launch kernel-based unit tests for
> @@ -853,6 +854,9 @@ config GUP_TEST
>
> See tools/testing/selftests/vm/gup_test.c
>
> +comment "GUP_TEST needs to have DEBUG_FS enabled"
> + depends on !GUP_TEST && !DEBUG_FS
> +
> config GUP_GET_PTE_LOW_HIGH
> bool
>
>
next prev parent reply other threads:[~2020-11-09 7:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-08 8:37 Barry Song
2020-11-09 7:45 ` John Hubbard [this message]
2020-11-09 7:52 ` Randy Dunlap
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=cf1b1b35-c608-9b5e-0c1a-216431b83750@nvidia.com \
--to=jhubbard@nvidia.com \
--cc=akpm@linux-foundation.org \
--cc=john.garry@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxarm@huawei.com \
--cc=rcampbell@nvidia.com \
--cc=rdunlap@infradead.org \
--cc=song.bao.hua@hisilicon.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox