mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
Documentation: {u,k}probes: fix filename for event enabling
The per-event files to enable or disable kprobes and uprobes are named 'enable', not 'enabled'. Fix the corresponding documentation. Signed-off-by: Andreas Ziegler <andreas.ziegler@fau.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
parent
655c75a206
commit
e50891d6ef
2 changed files with 4 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ To enable this feature, build your kernel with CONFIG_KPROBE_EVENTS=y.
|
||||||
Similar to the events tracer, this doesn't need to be activated via
|
Similar to the events tracer, this doesn't need to be activated via
|
||||||
current_tracer. Instead of that, add probe points via
|
current_tracer. Instead of that, add probe points via
|
||||||
/sys/kernel/debug/tracing/kprobe_events, and enable it via
|
/sys/kernel/debug/tracing/kprobe_events, and enable it via
|
||||||
/sys/kernel/debug/tracing/events/kprobes/<EVENT>/enabled.
|
/sys/kernel/debug/tracing/events/kprobes/<EVENT>/enable.
|
||||||
|
|
||||||
|
|
||||||
Synopsis of kprobe_events
|
Synopsis of kprobe_events
|
||||||
|
|
@ -81,9 +81,9 @@ Per-probe event filtering feature allows you to set different filter on each
|
||||||
probe and gives you what arguments will be shown in trace buffer. If an event
|
probe and gives you what arguments will be shown in trace buffer. If an event
|
||||||
name is specified right after 'p:' or 'r:' in kprobe_events, it adds an event
|
name is specified right after 'p:' or 'r:' in kprobe_events, it adds an event
|
||||||
under tracing/events/kprobes/<EVENT>, at the directory you can see 'id',
|
under tracing/events/kprobes/<EVENT>, at the directory you can see 'id',
|
||||||
'enabled', 'format' and 'filter'.
|
'enable', 'format' and 'filter'.
|
||||||
|
|
||||||
enabled:
|
enable:
|
||||||
You can enable/disable the probe by writing 1 or 0 on it.
|
You can enable/disable the probe by writing 1 or 0 on it.
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ To enable this feature, build your kernel with CONFIG_UPROBE_EVENTS=y.
|
||||||
Similar to the kprobe-event tracer, this doesn't need to be activated via
|
Similar to the kprobe-event tracer, this doesn't need to be activated via
|
||||||
current_tracer. Instead of that, add probe points via
|
current_tracer. Instead of that, add probe points via
|
||||||
/sys/kernel/debug/tracing/uprobe_events, and enable it via
|
/sys/kernel/debug/tracing/uprobe_events, and enable it via
|
||||||
/sys/kernel/debug/tracing/events/uprobes/<EVENT>/enabled.
|
/sys/kernel/debug/tracing/events/uprobes/<EVENT>/enable.
|
||||||
|
|
||||||
However unlike kprobe-event tracer, the uprobe event interface expects the
|
However unlike kprobe-event tracer, the uprobe event interface expects the
|
||||||
user to calculate the offset of the probepoint in the object.
|
user to calculate the offset of the probepoint in the object.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue