]> git.baikalelectronics.ru Git - kernel.git/commitdiff
docs: ftrace: fix the wrong path of tracefs
authorZhaoyu Liu <zackary.liu.pro@gmail.com>
Sat, 13 Nov 2021 13:37:34 +0000 (21:37 +0800)
committerJonathan Corbet <corbet@lwn.net>
Mon, 15 Nov 2021 09:50:39 +0000 (02:50 -0700)
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>
Documentation/trace/ftrace.rst

index 4e5b26f03d5b162ef7f815f7ee3c380f23b45aa9..b3166c4a78678fa22f63cda44b5431c8b5d88358 100644 (file)
@@ -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 "$@"