From: Jun He <jhe@cs.wisc.edu>
To: linux-btrace@vger.kernel.org
Subject: Any way to output semantics of block
Date: Sat, 25 Jun 2016 17:04:02 +0000 [thread overview]
Message-ID: <20160625170402.GA21168@wifi-514.cs.wisc.edu> (raw)
Hi all,
I use the output of blktrace as the input of my block device simulator. Now I
want to add semantics of data stored in each block to the output, so
my simulator can use them. For example, I would like to know if the block is
storing file data or file system metadata. If it is metadata, I'd like to know
what kind of metadata it is. For example, ext4's superblock, inode table,
blockbitmap, or extent tree block ... If it is file data, I'd like to know
its filename.
Output of blkparse may look like:
op block# semantics
w 43 inode-table
w 88 directory-entries
r 48 file-data(/home/user1/data)
w 77 extent-tree-block
w 777 journal
Statically, I can get the semantics of, for example, ext4 by debugfs and
dumpe2fs. And this is fine for most of the cases since the format of ext4 is
mostly fixed (blocks that store inode table will always store inode table). But
the data semantics in a block does change over time in some case. For example, a
block can store file data at a time and extent tree block at another time. So I
cannot use the statically collected semantics to feed my simulator.
Is outputting semantics already supported by blktrace?
If not, any suggestions for implementing it?
Thanks,
Jun
next reply other threads:[~2016-06-25 17:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-25 17:04 Jun He [this message]
2016-06-25 19:34 ` Any way to output semantics of block Jens Axboe
2016-06-25 19:36 ` Jun He
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=20160625170402.GA21168@wifi-514.cs.wisc.edu \
--to=jhe@cs.wisc.edu \
--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