Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Documentation/trace/uprobetracer.txt: fix incorrect examples

Current uprobetracer examples don't work as they use an incorrect syntax
- if no event name is specified then 'p/r' must not be followed by a
colon
- if no event name is specified then the default event name will have a
'p_' prefix, so use that in the '-' example as well

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Marcin Nowakowski and committed by
Jonathan Corbet
7058763b 58af04df

+3 -3
+3 -3
Documentation/trace/uprobetracer.txt
··· 76 76 * Add a probe as a new uprobe event, write a new definition to uprobe_events 77 77 as below: (sets a uprobe at an offset of 0x4245c0 in the executable /bin/bash) 78 78 79 - echo 'p: /bin/bash:0x4245c0' > /sys/kernel/debug/tracing/uprobe_events 79 + echo 'p /bin/bash:0x4245c0' > /sys/kernel/debug/tracing/uprobe_events 80 80 81 81 * Add a probe as a new uretprobe event: 82 82 83 - echo 'r: /bin/bash:0x4245c0' > /sys/kernel/debug/tracing/uprobe_events 83 + echo 'r /bin/bash:0x4245c0' > /sys/kernel/debug/tracing/uprobe_events 84 84 85 85 * Unset registered event: 86 86 87 - echo '-:bash_0x4245c0' >> /sys/kernel/debug/tracing/uprobe_events 87 + echo '-:p_bash_0x4245c0' >> /sys/kernel/debug/tracing/uprobe_events 88 88 89 89 * Print out the events that are registered: 90 90