From: Frederic Weisbecker <fweisbec@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Jiri Olsa <jolsa@redhat.com>,
mingo@elte.hu, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tracing - fix function graph trace to properly display failed entries
Date: Tue, 24 Nov 2009 23:17:51 +0100 [thread overview]
Message-ID: <20091124221748.GA5208@nowhere> (raw)
In-Reply-To: <20091124211423.GE5071@nowhere>
On Tue, Nov 24, 2009 at 10:14:36PM +0100, Frederic Weisbecker wrote:
> But I guess it doesn't happen because the function graph tracer
> has too large entries, or it would do an endless loop while
> reading the trace file.
Ah actually it won't as we don't check the return value
of trace_print_line() from the seq show handler.
There is no retry.
And also there is no need to retry. The buffer gets never
entirely filled in the trace file reading path, as it
is flushed after each entry. And no single trace fills the
whole buffer. I just made some tests and we never reach that
point (no TRACE_TYPE_PARTIAL_LINE) returned. So no overflow
as far as I tested (there might be rare corner cases).
But it happens with trace_pipe reading.
There is another bug. Here is a sample from
trace reading:
0) | sys_newfstat() {
0) | vfs_fstat() {
0) 1.187 us | fget();
0) | vfs_getattr() {
0) | security_inode_getattr() {
0) 0.608 us | }
0) 2.951 us | }
0) + 65.349 us | }
0) | path_put() {
0) 0.608 us | dput();
0) 0.548 us | mntput_no_expire();
0) 2.748 us | }
0) + 74.472 us | }
I think we are loosing some traces here, between security_inode_getattr()
and path_put().
I'm not sure why. The problem related by Olsa would explain such
symptoms, and what olsa reported is a real bug, but only
in trace_pipe. There is also something else, probably more
related to the fast path.
next prev parent reply other threads:[~2009-11-24 22:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 12:57 [PATCH] tracing - fix function graph trace to properly display failed entries Jiri Olsa
2009-11-24 17:14 ` Steven Rostedt
2009-11-24 21:14 ` Frederic Weisbecker
2009-11-24 22:17 ` Frederic Weisbecker [this message]
2009-11-24 22:26 ` Steven Rostedt
2009-11-24 22:53 ` Frederic Weisbecker
2009-11-24 23:21 ` Steven Rostedt
2009-11-25 8:47 ` Jiri Olsa
2009-11-25 8:45 ` Jiri Olsa
2009-11-25 16:21 ` Steven Rostedt
2009-12-04 10:46 ` Jiri Olsa
2009-12-07 20:21 ` Frederic Weisbecker
2009-12-07 20:26 ` Steven Rostedt
2009-12-07 20:33 ` Jiri Olsa
2009-12-10 7:49 ` [tip:tracing/core] tracing: Fix function graph trace_pipe " tip-bot for Jiri Olsa
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=20091124221748.GA5208@nowhere \
--to=fweisbec@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.