From: Ingo Molnar <mingo@elte.hu>
To: Jens Axboe <jens.axboe@oracle.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH] blktrace: fix original blktrace
Date: Wed, 25 Mar 2009 13:52:31 +0100 [thread overview]
Message-ID: <20090325125231.GE30755@elte.hu> (raw)
In-Reply-To: <20090325072704.GF27476@kernel.dk>
* Jens Axboe <jens.axboe@oracle.com> wrote:
> On Wed, Mar 25 2009, Li Zefan wrote:
> > Jens Axboe wrote:
> > > On Wed, Mar 25 2009, Li Zefan wrote:
> > >> I'm wondering what we are going to do with the original blktrace which
> > >> is using relay and is used via ioctl.
> > >>
> > >> The problem is currently it's totally broken. You can use ftrace to see
> > >> the output of blktrace, but user-space blktrace is unusable.
> > >>
> > >> With this patch, both ioctl and ftrace can be used, but of course you
> > >> can't use both of them at the same time.
> > >
> > > Even if ftrace was as fast as storing huge amounts of data as blktrace,
> > > it's still of utmost importance that nothing is broken there. There are
> >
> > agreed
> >
> > > people actually USING this tracing to do real work, it's not a
> > > playground.
> > >
> >
> > and we are using blktrace to test the cgroup-based io controller
> >
> > > I appreciate the efforts to unify and improve our tracing, but we must
> > > not be breaking blktrace along the way. Otherwise the whole thing goes
> >
> > this patch fixes it.
> >
> > it's broken by "blktrace: add ftrace plugin"
> > (c71a896154119f4ca9e89d6078f5f63ad60ef199)
> >
> > @@ -131,13 +162,14 @@ static void __blk_add_trace()
> > - if (unlikely(bt->trace_state != Blktrace_running))
> > + if (unlikely(bt->trace_state != Blktrace_running || !blk_tracer_enabled))
> > return;
>
> Good, as long as it still works with blktrace, that's all I care
> about (for now, at least).
Sorry about that. I've applied Li's fixes and double checked
blktrace+blktrace functionality and pushed out a new tracing
tree to linux-next.
Btw., blktrace could be updated in the future to make use the
new per CPU buffering and sys_splice() code available in ftrace
plugin. [ splice is cool! =B-) ]
Plus blktrace could make use of built-in event filtering
capabilities - for example to only trace events in a specific
sector range on the disk. Or to trace all IO of a given PID only.
But that is a different project that needs changes both on the
kernel side and on the user-space side (.31-ish for sure) and the
relayfs+ioctl method must work fine in any case.
Ingo
next prev parent reply other threads:[~2009-03-25 12:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 2:49 [RFC][PATCH] blktrace: fix original blktrace Li Zefan
2009-03-25 7:07 ` Jens Axboe
2009-03-25 7:25 ` Li Zefan
2009-03-25 7:27 ` Jens Axboe
2009-03-25 12:52 ` Ingo Molnar [this message]
2009-03-25 13:01 ` Jens Axboe
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=20090325125231.GE30755@elte.hu \
--to=mingo@elte.hu \
--cc=acme@redhat.com \
--cc=fweisbec@gmail.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.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