OSDN Git Service

Add an option to explicitly specify blockdev.
authorMohan Srinivasan <srmohan@google.com>
Wed, 12 Jul 2017 21:03:16 +0000 (14:03 -0700)
committerMohan Srinivasan <srmohan@google.com>
Wed, 12 Jul 2017 21:04:14 +0000 (14:04 -0700)
commitb9d4b523807ec549c4b93921651122fa4ee9e8d1
tree9a548b897e40a53796b53d039bc41be5f0943d03
parenta69f1ec5c0cbd01bac15c7a8e2d3a1b58945af1f
Add an option to explicitly specify blockdev.

Add a -b option, that allows user to explicitly specify a blockdev
that we want to get stats out of. For example, this allows us to
specify the userdata partition (on which IOshark runs). Or in the rare
case where support for a new device has not been added yet, we can
still run IOshark on it by using this option.

Test: Run IOshark with the -b option passed in and verify that the
device stats reported match with /proc/diskstats.

Change-Id: Ic835697a6aae4484c95537e7d489a9c1fefc0110
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
ioshark/README
ioshark/ioshark_bench.c
ioshark/ioshark_bench_subr.c