Satoshi Uchida
2007-Jun-05 10:01 UTC
[Xen-devel] [PATCH][XENTOP][4/4] Display blktap statistics.
This patch make xentop output statistics about both blkback and blktap. And, xentop also display back-end driver type in detail view mode. # HG changeset patch # User s-uchida@ap.jp.nec.com # Date 1180665749 -32400 # Node ID 1b36d6f6c7a98728382de93ee23c8c97b0b95dbd # Parent 1768a89bb87824249827d935d7803d8193bdeb05 XENTOP: Displaying blktap information. Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com> diff -r 1768a89bb878 -r 1b36d6f6c7a9 tools/xenstat/xentop/xentop.c --- a/tools/xenstat/xentop/xentop.c Fri Jun 01 11:40:29 2007 +0900 +++ b/tools/xenstat/xentop/xentop.c Fri Jun 01 11:42:29 2007 +0900 @@ -913,6 +913,12 @@ void do_vbd(xenstat_domain *domain) xenstat_vbd *vbd; unsigned num_vbds = 0; + const char *vbd_type[] = { + "Unidentified", /* number 0 */ + "BlkBack", /* number 1 */ + "BlkTap", /* number 2 */ + }; + num_vbds = xenstat_domain_num_vbds(domain); for (i=0 ; i< num_vbds; i++) { @@ -927,7 +933,8 @@ void do_vbd(xenstat_domain *domain) MINOR(xenstat_vbd_dev(vbd))); #endif - print("VBD %4d %s OO: %8llu RD: %8llu WR: %8llu\n", + print("VBD %s %4d %s OO: %8llu RD: %8llu WR: %8llu\n", + vbd_type[xenstat_vbd_type(vbd)], xenstat_vbd_dev(vbd), details, xenstat_vbd_oo_reqs(vbd), xenstat_vbd_rd_reqs(vbd), _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel