Documentation: Fix the wrong command `echo -1 > set_ftrace_pid` for cleaning the...
authorWang Long <long.wanglong@huawei.com>
Thu, 5 Feb 2015 05:16:14 +0000 (05:16 +0000)
committerJonathan Corbet <corbet@lwn.net>
Mon, 9 Feb 2015 16:04:17 +0000 (11:04 -0500)
The command `echo > set_ftrace_pid` should be used to clean the filter quietly.
because the command `echo -1 >  set_ftrace_pid` will output the following:
"bash: echo: write error: Invalid argument".

so update the file Documentation/trace/ftrace.txt.

Signed-off-by: Wang Long <long.wanglong@huawei.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/trace/ftrace.txt

index 8408e040f06fecc958ed746551ef90754dc0f868..572ca923631a1e49d56c6ea76189a1d0c408693d 100644 (file)
@@ -1740,7 +1740,7 @@ no pid
      yum-updatesd-3111  [003]  1637.254683: lock_hrtimer_base <-hrtimer_try_to_cancel
      yum-updatesd-3111  [003]  1637.254685: fget_light <-do_sys_poll
      yum-updatesd-3111  [003]  1637.254686: pipe_poll <-do_sys_poll
-# echo -1 > set_ftrace_pid
+# echo > set_ftrace_pid
 # cat trace |head
  # tracer: function
  #