From: Akira Hayakawa <ruby.wktk@gmail.com>
To: linux-btrace@vger.kernel.org
Cc: dm-devel@redhat.com, devel@etsukata.com
Subject: [Question] btt -B doesn't output anything with DM device
Date: Thu, 05 Dec 2013 12:12:49 +0000 [thread overview]
Message-ID: <52A06DC1.4070402@gmail.com> (raw)
Hi, Guys,
I am trying to visualize io pattern by bno_plot.
bno_plot requires an output from btt -B but
btt -B doesn't output anything for DM devices (e.g. /dev/mapper/mydev) while
it does for real block devices (e.g. /dev/sdc).
For narrowing down the problem
I reproduced this problem with simple linear device.
# Setup
root@Freedom:/home/akira# dmsetup create mydev --table "0 100000 linear /dev/sdc 0"
root@Freedom:/home/akira# dmsetup ls
pdc_fgaahfadb (254:0)
mydev (254:1) <- this
# Trace
root@Freedom:/home/akira# cat devlist
/dev/mapper/mydev
/dev/sdc
root@Freedom:/home/akira# blktrace -w 30 -I devlist -D mytrace
== dm-1 = CPU 0: 0 events, 0 KiB data
CPU 1: 378 events, 18 KiB data
Total: 378 events (dropped 0), 18 KiB data
== sdc = CPU 0: 0 events, 0 KiB data
CPU 1: 781 events, 37 KiB data
Total: 781 events (dropped 0), 37 KiB data
root@Freedom:/home/akira# ls mytrace/
dm-1.blktrace.0 dm-1.blktrace.1 sdc.blktrace.0 sdc.blktrace.1
# btt
root@Freedom:/home/akira# btt -i mytrace/sdc.blktrace.* -B sdc
root@Freedom:/home/akira# btt -i mytrace/dm-1.blktrace.* -B dm-1
root@Freedom:/home/akira# ls *.dat
sdc_008,032_c.dat sdc_008,032_r.dat
btt doesn't output anything with dm-1.blktrace.* .
Is this intentionally designed or just a (known/unknown) bug?
Or, do I forget something?
Thanks,
Akira
reply other threads:[~2013-12-05 12:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=52A06DC1.4070402@gmail.com \
--to=ruby.wktk@gmail.com \
--cc=devel@etsukata.com \
--cc=dm-devel@redhat.com \
--cc=linux-btrace@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).