Message ID | 171805479486.52471.17705516519375193975.stgit@devnote2 (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | tracing: Fix some selftest issues | expand |
On Tue, 11 Jun 2024 06:26:34 +0900 "Masami Hiramatsu (Google)" <mhiramat@kernel.org> wrote: > The kprobes and synth event generation test modules add events and lock > (get a reference) those event file reference in module init function, > and unlock and delete it in module exit function. This is because those > are designed for playing as modules. > > If we make those modules as built-in, those events are left locked in the > kernel, and never be removed. This causes kprobe event self-test failure > as below. Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org> -- Steve
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 166ad5444eea..721c3b221048 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -1136,7 +1136,7 @@ config PREEMPTIRQ_DELAY_TEST config SYNTH_EVENT_GEN_TEST tristate "Test module for in-kernel synthetic event generation" - depends on SYNTH_EVENTS + depends on SYNTH_EVENTS && m help This option creates a test module to check the base functionality of in-kernel synthetic event definition and @@ -1149,7 +1149,7 @@ config SYNTH_EVENT_GEN_TEST config KPROBE_EVENT_GEN_TEST tristate "Test module for in-kernel kprobe event generation" - depends on KPROBE_EVENTS + depends on KPROBE_EVENTS && m help This option creates a test module to check the base functionality of in-kernel kprobe event definition.