All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftest/livepatch: Only run test-kprobe with CONFIG_KPROBES_ON_FTRACE
@ 2025-03-17 16:51 Song Liu
  2025-03-17 18:59 ` Joe Lawrence
  0 siblings, 1 reply; 10+ messages in thread
From: Song Liu @ 2025-03-17 16:51 UTC (permalink / raw)
  To: live-patching
  Cc: joe.lawrence, jpoimboe, kernel-team, song, jikos, mbenes, pmladek

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


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

end of thread, other threads:[~2025-03-18 17:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 16:51 [PATCH] selftest/livepatch: Only run test-kprobe with CONFIG_KPROBES_ON_FTRACE Song Liu
2025-03-17 18:59 ` 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

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.