From: Wang Long <long.wanglong@huawei.com>
To: <rostedt@goodmis.org>, <mingo@redhat.com>, <corbet@lwn.net>
Cc: <linux-doc@vger.kernel.or>, <linux-kernel@vger.kernel.org>,
<peifeiyue@huawei.com>, <long.wanglong@huawei.com>
Subject: [PATCH] Documentation: Fix the wrong command `echo -1 > set_ftrace_pid` for cleaning the filter.
Date: Thu, 5 Feb 2015 05:16:14 +0000 [thread overview]
Message-ID: <1423113374-233765-1-git-send-email-long.wanglong@huawei.com> (raw)
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>
---
Documentation/trace/ftrace.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt
index 8408e04..572ca92 100644
--- a/Documentation/trace/ftrace.txt
+++ b/Documentation/trace/ftrace.txt
@@ -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
#
--
1.8.3.4
next reply other threads:[~2015-02-05 5:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 5:16 Wang Long [this message]
2015-02-09 15:57 ` Jonathan Corbet
2015-02-09 16:02 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423113374-233765-1-git-send-email-long.wanglong@huawei.com \
--to=long.wanglong@huawei.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.or \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peifeiyue@huawei.com \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®