From: Song Liu <song@kernel.org>
To: live-patching@vger.kernel.org
Cc: joe.lawrence@redhat.com, jpoimboe@kernel.org,
kernel-team@meta.com, song@kernel.org, jikos@kernel.org,
mbenes@suse.cz, pmladek@suse.com
Subject: [PATCH] selftest/livepatch: Only run test-kprobe with CONFIG_KPROBES_ON_FTRACE
Date: Mon, 17 Mar 2025 09:51:28 -0700 [thread overview]
Message-ID: <20250317165128.2356385-1-song@kernel.org> (raw)
CONFIG_KPROBES_ON_FTRACE is required for test-kprobe. Skip test-kprobe
when CONFIG_KPROBES_ON_FTRACE is not set.
Signed-off-by: Song Liu <song@kernel.org>
---
tools/testing/selftests/livepatch/test-kprobe.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/livepatch/test-kprobe.sh b/tools/testing/selftests/livepatch/test-kprobe.sh
index 115065156016..fd823dd5dd7f 100755
--- a/tools/testing/selftests/livepatch/test-kprobe.sh
+++ b/tools/testing/selftests/livepatch/test-kprobe.sh
@@ -5,6 +5,8 @@
. $(dirname $0)/functions.sh
+zgrep KPROBES_ON_FTRACE /proc/config.gz || skip "test-kprobe requires CONFIG_KPROBES_ON_FTRACE"
+
MOD_LIVEPATCH=test_klp_livepatch
MOD_KPROBE=test_klp_kprobe
--
2.47.1
next reply other threads:[~2025-03-17 16:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-17 16:51 Song Liu [this message]
2025-03-17 18:59 ` [PATCH] selftest/livepatch: Only run test-kprobe with CONFIG_KPROBES_ON_FTRACE Joe Lawrence
2025-03-17 21:00 ` Joe Lawrence
2025-03-17 22:10 ` Song Liu
2025-03-18 10:14 ` Miroslav Benes
2025-03-18 13:44 ` Joe Lawrence
2025-03-18 16:25 ` Song Liu
2025-03-18 17:18 ` Joe Lawrence
2025-03-18 17:49 ` Song Liu
2025-03-18 17:54 ` Song Liu
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=20250317165128.2356385-1-song@kernel.org \
--to=song@kernel.org \
--cc=jikos@kernel.org \
--cc=joe.lawrence@redhat.com \
--cc=jpoimboe@kernel.org \
--cc=kernel-team@meta.com \
--cc=live-patching@vger.kernel.org \
--cc=mbenes@suse.cz \
--cc=pmladek@suse.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;
as well as URLs for NNTP newsgroup(s).