From: Masami Hiramatsu <mhiramat@kernel.org>
To: Tiezhu Yang <yangtiezhu@loongson.cn>
Cc: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com,
davem@davemloft.net, corbet@lwn.net, ananth@in.ibm.com,
akpm@linux-foundation.org, randy.dunlap@oracle.com,
mathieu.desnoyers@polymtl.ca, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] test_kprobes: Move it from kernel/ to lib/
Date: Mon, 25 Oct 2021 15:33:28 +0900 [thread overview]
Message-ID: <20211025153328.daad69af917db6647dcd8b9b@kernel.org> (raw)
In-Reply-To: <1635132660-5038-4-git-send-email-yangtiezhu@loongson.cn>
On Mon, 25 Oct 2021 11:30:59 +0800
Tiezhu Yang <yangtiezhu@loongson.cn> wrote:
> Since config KPROBES_SANITY_TEST is in lib/Kconfig.debug, it is better to
> let test_kprobes.c in lib/, just like other similar tests found in lib/.
This is also good to me. It may be a good timing to move this under the
lib/ because there is KUnit too.
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Thank you,
>
> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
> ---
> kernel/Makefile | 1 -
> lib/Makefile | 1 +
> {kernel => lib}/test_kprobes.c | 0
> 3 files changed, 1 insertion(+), 1 deletion(-)
> rename {kernel => lib}/test_kprobes.c (100%)
>
> diff --git a/kernel/Makefile b/kernel/Makefile
> index 4df609b..9e4d33d 100644
> --- a/kernel/Makefile
> +++ b/kernel/Makefile
> @@ -85,7 +85,6 @@ obj-$(CONFIG_PID_NS) += pid_namespace.o
> obj-$(CONFIG_IKCONFIG) += configs.o
> obj-$(CONFIG_IKHEADERS) += kheaders.o
> obj-$(CONFIG_SMP) += stop_machine.o
> -obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
> obj-$(CONFIG_AUDIT) += audit.o auditfilter.o
> obj-$(CONFIG_AUDITSYSCALL) += auditsc.o audit_watch.o audit_fsnotify.o audit_tree.o
> obj-$(CONFIG_GCOV_KERNEL) += gcov/
> diff --git a/lib/Makefile b/lib/Makefile
> index 2cfd339..2c70452 100644
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -100,6 +100,7 @@ obj-$(CONFIG_TEST_MEMINIT) += test_meminit.o
> obj-$(CONFIG_TEST_LOCKUP) += test_lockup.o
> obj-$(CONFIG_TEST_HMM) += test_hmm.o
> obj-$(CONFIG_TEST_FREE_PAGES) += test_free_pages.o
> +obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
>
> #
> # CFLAGS for compiling floating point code inside the kernel. x86/Makefile turns
> diff --git a/kernel/test_kprobes.c b/lib/test_kprobes.c
> similarity index 100%
> rename from kernel/test_kprobes.c
> rename to lib/test_kprobes.c
> --
> 2.1.0
>
--
Masami Hiramatsu <mhiramat@kernel.org>
next prev parent reply other threads:[~2021-10-25 6:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 3:30 [PATCH 0/4] Do some changes about kprobe Tiezhu Yang
2021-10-25 3:30 ` [PATCH 1/4] samples/kretprobes: Fix return value if register_kretprobe() failed Tiezhu Yang
2021-10-25 6:15 ` Masami Hiramatsu
2021-10-25 3:30 ` [PATCH 2/4] docs, kprobes: Remove invalid URL and add new reference Tiezhu Yang
2021-10-25 6:29 ` Masami Hiramatsu
2021-10-25 3:30 ` [PATCH 3/4] test_kprobes: Move it from kernel/ to lib/ Tiezhu Yang
2021-10-25 6:33 ` Masami Hiramatsu [this message]
2021-10-25 3:31 ` [PATCH 4/4] MAINTAINERS: Add git tree and missing files for KPROBES Tiezhu Yang
2021-10-25 6:38 ` Masami Hiramatsu
2021-10-25 8:31 ` Tiezhu Yang
2021-10-25 14:48 ` Steven Rostedt
2021-10-25 6:14 ` [PATCH 0/4] Do some changes about kprobe Masami Hiramatsu
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=20211025153328.daad69af917db6647dcd8b9b@kernel.org \
--to=mhiramat@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=ananth@in.ibm.com \
--cc=anil.s.keshavamurthy@intel.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@polymtl.ca \
--cc=naveen.n.rao@linux.ibm.com \
--cc=randy.dunlap@oracle.com \
--cc=yangtiezhu@loongson.cn \
/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
all inboxes | Powered by JetHome®