From: Pekka Paalanen <pq@iki.fi>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Steven Rostedt <rostedt@goodmis.org>,
akpm@osdl.org, Peter Zijlstra <peterz@infradead.org>,
Soeren Sandmann Pedersen <sandmann@redhat.com>
Subject: Re: [PATCH 0/3] ftrace: overrun accounting and trace_pipe headers
Date: Tue, 22 Apr 2008 20:36:02 +0300 [thread overview]
Message-ID: <20080422203602.488bb8f9@daedalus.pq.iki.fi> (raw)
In-Reply-To: <20080421210935.460817943@goodmis.org>
Excellent!
On Mon, 21 Apr 2008 17:09:35 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
> The first patch in this series adds accounting to record overruns. That is
> where the writing catches up to the reading of the buffer. This really
> only matters for trace_pipe since that's a consumer / producer output file.
This takes me some thinking how to make the best of it, but looks like it
allows me to relay the overrun events into the trace log. Very good.
> The next patch adds new methods for the plugins to hook into the
> open_pipe and open_read, to let a plugin produce a header.
> The open_read method can also be used to do something when overruns
> are detected.
You mean pipe_open() and read()? :-)
And read() is pipe specific?
Ah, now I see what you mean by read() can be used to notice overruns:
it is called for every read syscall, not just in the beginning.
> The last patch is a test patch AND SHOULD NOT BE APPLIED. It is just an
> example in how to use the new methods to produce a header. It simply
> makes the ftrace tracer produce a simple "Test header" before any
> output.
In function_read(), shouldn't I be doing something with filp and/or ppos?
Thanks.
--
Pekka Paalanen
http://www.iki.fi/pq/
next prev parent reply other threads:[~2008-04-22 17:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 21:09 [PATCH 0/3] ftrace: overrun accounting and trace_pipe headers Steven Rostedt
2008-04-21 21:09 ` [PATCH 1/3] ftrace: add logic to record overruns Steven Rostedt
2008-04-26 20:47 ` Pekka Paalanen
2008-04-28 13:13 ` Steven Rostedt
2008-04-21 21:09 ` [PATCH 2/3] ftrace: add trace pipe header pluggin Steven Rostedt
2008-04-26 17:33 ` Pekka Paalanen
2008-04-28 13:05 ` Steven Rostedt
2008-04-21 21:09 ` [PATCH 3/3] TEST PATCH - ftrace example patch for use of trace pipe headers Steven Rostedt
2008-04-22 13:33 ` [PATCH 0/3] ftrace: overrun accounting and trace_pipe headers Ingo Molnar
2008-04-22 17:36 ` Pekka Paalanen [this message]
2008-04-23 0:58 ` 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=20080422203602.488bb8f9@daedalus.pq.iki.fi \
--to=pq@iki.fi \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=sandmann@redhat.com \
/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