Skip to content

Commit 580d9e0

Browse files
kosakiIngo Molnar
authored andcommitted
kprobetrace, doc: Shell needs single quote to use $ character
Shell interprets $val as shell variable, thus we need quote if we use the echo command. Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> Cc: systemtap <systemtap@sources.redhat.com> Cc: DLE <dle-develop@lists.sourceforge.net> LKML-Reference: <20100119023505.31880.17367.stgit@localhost6.localdomain6> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent f426a7e commit 580d9e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Documentation/trace/kprobetrace.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Usage examples
7979
To add a probe as a new event, write a new definition to kprobe_events
8080
as below.
8181

82-
echo p:myprobe do_sys_open dfd=%ax filename=%dx flags=%cx mode=+4($stack) > /sys/kernel/debug/tracing/kprobe_events
82+
echo 'p:myprobe do_sys_open dfd=%ax filename=%dx flags=%cx mode=+4($stack)' > /sys/kernel/debug/tracing/kprobe_events
8383

8484
This sets a kprobe on the top of do_sys_open() function with recording
8585
1st to 4th arguments as "myprobe" event. Note, which register/stack entry is
@@ -88,7 +88,7 @@ the ABI, please try to use probe subcommand of perf-tools (you can find it
8888
under tools/perf/).
8989
As this example shows, users can choose more familiar names for each arguments.
9090

91-
echo r:myretprobe do_sys_open $retval >> /sys/kernel/debug/tracing/kprobe_events
91+
echo 'r:myretprobe do_sys_open $retval' >> /sys/kernel/debug/tracing/kprobe_events
9292

9393
This sets a kretprobe on the return point of do_sys_open() function with
9494
recording return value as "myretprobe" event.

0 commit comments

Comments
 (0)