Skip to content

Commit 0dd1274

Browse files
committed
tracing: Have eprobes have their own config option
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/[email protected]/ Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Randy Dunlap <[email protected]> Link: https://lore.kernel.org/[email protected] Suggested-by: Masami Hiramatsu (Google) <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 1a967e9 commit 0dd1274

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

kernel/trace/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,20 @@ config UPROBE_EVENTS
792792
This option is required if you plan to use perf-probe subcommand
793793
of perf tools on user space applications.
794794

795+
config EPROBE_EVENTS
796+
bool "Enable event-based dynamic events"
797+
depends on TRACING
798+
depends on HAVE_REGS_AND_STACK_ACCESS_API
799+
select PROBE_EVENTS
800+
select DYNAMIC_EVENTS
801+
default y
802+
help
803+
Eprobes are dynamic events that can be placed on other existing
804+
events. It can be used to limit what fields are recorded in
805+
an event or even dereference a field of an event. It can
806+
convert the type of an event field. For example, turn an
807+
address into a string.
808+
795809
config BPF_EVENTS
796810
depends on BPF_SYSCALL
797811
depends on (KPROBE_EVENTS || UPROBE_EVENTS) && PERF_EVENTS

kernel/trace/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ obj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o
8282
endif
8383
obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o
8484
obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o
85-
obj-$(CONFIG_PROBE_EVENTS) += trace_eprobe.o
85+
obj-$(CONFIG_EPROBE_EVENTS) += trace_eprobe.o
8686
obj-$(CONFIG_TRACE_EVENT_INJECT) += trace_events_inject.o
8787
obj-$(CONFIG_SYNTH_EVENTS) += trace_events_synth.o
8888
obj-$(CONFIG_HIST_TRIGGERS) += trace_events_hist.o

0 commit comments

Comments
 (0)