OSDN Git Service

Query for device and then set the blockdev name.
authorMohan Srinivasan <srmohan@google.com>
Wed, 15 Feb 2017 20:39:35 +0000 (12:39 -0800)
committerMohan Srinivasan <srmohan@google.com>
Wed, 15 Feb 2017 20:42:39 +0000 (12:42 -0800)
commit08357dfe620c32a72de0c598a078dde01991cdb8
treea46fe24f8148aacd859bf947d249d8682b543bae
parent3e24331d2915d0c582138651b2f4e57eff881bd9
Query for device and then set the blockdev name.

IOshark uses /proc/diskstats to get various stats. It needs a
block device name for doing this. The block device was hardcoded
as sda (Marlin/Sailfish). Query the device productname and use
this to set the block device name instead. Needed to make IOshark
work on non-M/S device.

Test: Testing the change on marlin as well as bullhead (which
covers Sailfish, Shamu and Angler as well).

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