Skip to content

Commit 0597c49

Browse files
mhiramatrostedt
authored andcommitted
tracing/uprobes: Use dyn_event framework for uprobe events
Use dyn_event framework for uprobe events. This shows uprobe events on "dynamic_events" file. User can also define new uprobe events via dynamic_events. Link: http://lkml.kernel.org/r/154140858481.17322.9091293846515154065.stgit@devbox Reviewed-by: Tom Zanussi <[email protected]> Tested-by: Tom Zanussi <[email protected]> Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 6212dd2 commit 0597c49

File tree

3 files changed

+153
-130
lines changed

3 files changed

+153
-130
lines changed

Documentation/trace/uprobetracer.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ current_tracer. Instead of that, add probe points via
1818
However unlike kprobe-event tracer, the uprobe event interface expects the
1919
user to calculate the offset of the probepoint in the object.
2020

21+
You can also use /sys/kernel/debug/tracing/dynamic_events instead of
22+
uprobe_events. That interface will provide unified access to other
23+
dynamic events too.
24+
2125
Synopsis of uprobe_tracer
2226
-------------------------
2327
::

kernel/trace/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ config UPROBE_EVENTS
501501
depends on PERF_EVENTS
502502
select UPROBES
503503
select PROBE_EVENTS
504+
select DYNAMIC_EVENTS
504505
select TRACING
505506
default y
506507
help

0 commit comments

Comments
 (0)