summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorZhaoyu Liu <zackary.liu.pro@gmail.com>2021-11-13 14:37:34 +0100
committerJonathan Corbet <corbet@lwn.net>2021-11-15 10:50:39 +0100
commit951e0d00205cd3bbf457d31515aa6a96c5f4d053 (patch)
tree5707e619f6ed15818d99e758b2f5a0d5fad0bea6 /Documentation
parentDocumentation: arm: marvell: Fix link to armada_1000_pb.pdf document (diff)
downloadlinux-951e0d00205cd3bbf457d31515aa6a96c5f4d053.tar.xz
linux-951e0d00205cd3bbf457d31515aa6a96c5f4d053.zip
docs: ftrace: fix the wrong path of tracefs
Delete "tracing" due to it has been included in /proc/mounts. Delete "echo nop > $tracefs/tracing/current_tracer", maybe this command is redundant. Signed-off-by: Zhaoyu Liu <zackary.liu.pro@gmail.com> Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/trace/ftrace.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Documentation/trace/ftrace.rst b/Documentation/trace/ftrace.rst
index 4e5b26f03d5b..b3166c4a7867 100644
--- a/Documentation/trace/ftrace.rst
+++ b/Documentation/trace/ftrace.rst
@@ -2442,11 +2442,10 @@ Or this simple script!
#!/bin/bash
tracefs=`sed -ne 's/^tracefs \(.*\) tracefs.*/\1/p' /proc/mounts`
- echo nop > $tracefs/tracing/current_tracer
- echo 0 > $tracefs/tracing/tracing_on
- echo $$ > $tracefs/tracing/set_ftrace_pid
- echo function > $tracefs/tracing/current_tracer
- echo 1 > $tracefs/tracing/tracing_on
+ echo 0 > $tracefs/tracing_on
+ echo $$ > $tracefs/set_ftrace_pid
+ echo function > $tracefs/current_tracer
+ echo 1 > $tracefs/tracing_on
exec "$@"