[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211113091145.05ba14b5@rorschach.local.home>
Date: Sat, 13 Nov 2021 09:11:45 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Zhaoyu Liu <zackary.liu.pro@...il.com>
Cc: corbet@....net, mingo@...hat.com, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] docs: ftrace: fix the wrong path of tracefs
On Sat, 13 Nov 2021 21:37:34 +0800
Zhaoyu Liu <zackary.liu.pro@...il.com> wrote:
> 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@...il.com>
Acked-by: Steven Rostedt (VMware) <rostedt@...dmis.org>
Jon,
Can you take this through your tree?
Thanks,
-- Steve
> ---
> Documentation/trace/ftrace.rst | 9 ++++-----
> 1 file 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 "$@"
>
>
Powered by blists - more mailing lists