From: Ingo Molnar <mingo@elte.hu>
To: Jens Axboe <jens.axboe@oracle.com>,
Steven Rostedt <rostedt@goodmis.org>,
Tom Zanussi <tzanussi@gmail.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>, "Theodore Ts'o" <tytso@mit.edu>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] blktrace: move trace/ dir to /sys/block/sda/
Date: Mon, 13 Apr 2009 22:11:55 +0200 [thread overview]
Message-ID: <20090413201155.GA17450@elte.hu> (raw)
In-Reply-To: <20090413180054.GZ5178@kernel.dk>
* Jens Axboe <jens.axboe@oracle.com> wrote:
> On Mon, Apr 13 2009, Li Zefan wrote:
> > Impact: allow ftrace-plugin blktrace to trace device-mapper devices
> >
> > blktrace can't trace a single partition, so it makes no sense to
> > have one trace/ dir in each /sys/block/sda/sdaX. Move it to
> > /sys/block/sda/.
> >
> > Thus we fix an issue reported by Ted, that ftrace-plugin
> > blktrace can't be used to trace device-mapper devices.
>
> Perhaps I never committed that patch, but it would be trivial to
> do partition based blktrace tracing. It's also quite useful. So
> please don't go changing things to make that harder to support, it
> would be nicer to just add the (small) bits to support
> per-partition tracing. It's basically just a start/stop sector
> range, while some events are per-device and should just be
> included always.
btw., per tracepoint filters could be used for that. That would
allow multiple partitions to be traced at once.
blktrace user-space could make use of sector range filters straight
away [ hm, Tom - do we have the <= comparison operator already, or
is that still WIP? ] - but i think it's better to do this in a more
integrated way: via the sysfs API, via /sys/block/sda/sda2/trace/.
So when a partition's trace entry is activated, it would
auto-install a specific filter expression for sda, with the sector
range of that partition. Or something like that. How does this
sound?
Ingo
next prev parent reply other threads:[~2009-04-13 20:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-13 10:51 [PATCH] blktrace: move trace/ dir to /sys/block/sda/ Li Zefan
2009-04-13 18:00 ` Jens Axboe
2009-04-13 18:28 ` Arnaldo Carvalho de Melo
2009-04-13 20:11 ` Ingo Molnar [this message]
2009-04-14 4:15 ` Tom Zanussi
2009-04-14 3:13 ` Li Zefan
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=20090413201155.GA17450@elte.hu \
--to=mingo@elte.hu \
--cc=acme@redhat.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=rostedt@goodmis.org \
--cc=tytso@mit.edu \
--cc=tzanussi@gmail.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