diff options
author | Lecopzer Chen <lecopzer.chen@mediatek.com> | 2019-05-09 13:31:16 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-06-07 20:56:51 +0300 |
commit | 78a89463a31ce463a4b968553f57ff9932a0697f (patch) | |
tree | 2bd19f254013908911c754e1fa954f67a65a20cb /Documentation/trace/uprobetracer.rst | |
parent | 462e5a521ab73f7762583add73cbab1662612beb (diff) | |
download | linux-78a89463a31ce463a4b968553f57ff9932a0697f.tar.xz |
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/uprobetracer.rst')
-rw-r--r-- | Documentation/trace/uprobetracer.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/trace/uprobetracer.rst b/Documentation/trace/uprobetracer.rst index 4346e23e3ae7..0b21305fabdc 100644 --- a/Documentation/trace/uprobetracer.rst +++ b/Documentation/trace/uprobetracer.rst @@ -152,10 +152,15 @@ events, you need to enable it by:: # echo 1 > events/uprobes/enable -Lets disable the event after sleeping for some time. +Lets start tracing, sleep for some time and stop tracing. :: + # echo 1 > tracing_on # sleep 20 + # echo 0 > tracing_on + +Also, you can disable the event by:: + # echo 0 > events/uprobes/enable And you can see the traced information via /sys/kernel/debug/tracing/trace. |