]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tracing: Have eprobes have their own config option
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 30 Jul 2025 14:07:54 +0000 (10:07 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 30 Jul 2025 14:38:43 +0000 (10:38 -0400)
Eprobes were added in 5.15 and were selected whenever any of the other
probe events were selected. If kprobe events were enabled (which it is by
default if kprobes are enabled) it would enable eprobe events as well. The
same for uprobes and fprobes.

Have eprobes have its own config and it gets enabled by default if tracing
is enabled.

Link: https://lore.kernel.org/all/20250729102636.b7cce553e7cc263722b12365@kernel.org/
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/20250730140945.360286733@kernel.org
Suggested-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/Kconfig
kernel/trace/Makefile

index 93e8e7fc11c044338fdf3ef6d3560973cb190cbe..f80298e6aa16a8f8d48f897e6c34b24a6fa04c47 100644 (file)
@@ -792,6 +792,20 @@ config UPROBE_EVENTS
          This option is required if you plan to use perf-probe subcommand
          of perf tools on user space applications.
 
+config EPROBE_EVENTS
+       bool "Enable event-based dynamic events"
+       depends on TRACING
+       depends on HAVE_REGS_AND_STACK_ACCESS_API
+       select PROBE_EVENTS
+       select DYNAMIC_EVENTS
+       default y
+       help
+         Eprobes are dynamic events that can be placed on other existing
+         events. It can be used to limit what fields are recorded in
+         an event or even dereference a field of an event. It can
+         convert the type of an event field. For example, turn an
+         address into a string.
+
 config BPF_EVENTS
        depends on BPF_SYSCALL
        depends on (KPROBE_EVENTS || UPROBE_EVENTS) && PERF_EVENTS
index 057cd975d0146a38933364bfe834b9b536115e5d..dcb4e02afc5f493af4d33bb7e2f780897646a804 100644 (file)
@@ -82,7 +82,7 @@ obj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o
 endif
 obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o
 obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o
-obj-$(CONFIG_PROBE_EVENTS) += trace_eprobe.o
+obj-$(CONFIG_EPROBE_EVENTS) += trace_eprobe.o
 obj-$(CONFIG_TRACE_EVENT_INJECT) += trace_events_inject.o
 obj-$(CONFIG_SYNTH_EVENTS) += trace_events_synth.o
 obj-$(CONFIG_HIST_TRIGGERS) += trace_events_hist.o