Skip to content

Commit 951e0d0

Browse files
zackaryliuJonathan Corbet
authored andcommitted
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 <[email protected]> Acked-by: Steven Rostedt (VMware) <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
1 parent 738943f commit 951e0d0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Documentation/trace/ftrace.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,11 +2442,10 @@ Or this simple script!
24422442
#!/bin/bash
24432443

24442444
tracefs=`sed -ne 's/^tracefs \(.*\) tracefs.*/\1/p' /proc/mounts`
2445-
echo nop > $tracefs/tracing/current_tracer
2446-
echo 0 > $tracefs/tracing/tracing_on
2447-
echo $$ > $tracefs/tracing/set_ftrace_pid
2448-
echo function > $tracefs/tracing/current_tracer
2449-
echo 1 > $tracefs/tracing/tracing_on
2445+
echo 0 > $tracefs/tracing_on
2446+
echo $$ > $tracefs/set_ftrace_pid
2447+
echo function > $tracefs/current_tracer
2448+
echo 1 > $tracefs/tracing_on
24502449
exec "$@"
24512450

24522451

0 commit comments

Comments
 (0)