summaryrefslogtreecommitdiffstats
path: root/Documentation/trace/kprobetrace.rst
diff options
context:
space:
mode:
authorLecopzer Chen2019-05-09 12:31:16 +0200
committerJonathan Corbet2019-06-07 19:56:51 +0200
commit78a89463a31ce463a4b968553f57ff9932a0697f (patch)
tree2bd19f254013908911c754e1fa954f67a65a20cb /Documentation/trace/kprobetrace.rst
parenttreewide: trivial: fix s/poped/popped/ typo (diff)
downloadkernel-qcow2-linux-78a89463a31ce463a4b968553f57ff9932a0697f.tar.gz
kernel-qcow2-linux-78a89463a31ce463a4b968553f57ff9932a0697f.tar.xz
kernel-qcow2-linux-78a89463a31ce463a4b968553f57ff9932a0697f.zip
Documentation: {u,k}probes: add tracing_on before tracing
After following the document step by step, the `cat trace` can't be worked without enabling tracing_on and might mislead newbies about the functionality. Signed-off-by: Lecopzer Chen <lecopzer.chen@mediatek.com> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/trace/kprobetrace.rst')
-rw-r--r--Documentation/trace/kprobetrace.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/trace/kprobetrace.rst b/Documentation/trace/kprobetrace.rst
index 235ce2ab131a..baa3c42ba2f4 100644
--- a/Documentation/trace/kprobetrace.rst
+++ b/Documentation/trace/kprobetrace.rst
@@ -189,6 +189,12 @@ events, you need to enable it.
echo 1 > /sys/kernel/debug/tracing/events/kprobes/myprobe/enable
echo 1 > /sys/kernel/debug/tracing/events/kprobes/myretprobe/enable
+Use the following command to start tracing in an interval.
+::
+ # echo 1 > tracing_on
+ Open something...
+ # echo 0 > tracing_on
+
And you can see the traced information via /sys/kernel/debug/tracing/trace.
::