ia64/xen-unstable

changeset 15288:3a413f011b8f

xentop: Display blktap information.
Signed-off-by: Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
author kfraser@localhost.localdomain
date Thu Jun 07 11:14:18 2007 +0100 (2007-06-07)
parents d47415adf384
children 1cae82505e9e
files tools/xenstat/xentop/xentop.c
line diff
     1.1 --- a/tools/xenstat/xentop/xentop.c	Thu Jun 07 11:13:41 2007 +0100
     1.2 +++ b/tools/xenstat/xentop/xentop.c	Thu Jun 07 11:14:18 2007 +0100
     1.3 @@ -913,6 +913,12 @@ void do_vbd(xenstat_domain *domain)
     1.4  	xenstat_vbd *vbd;
     1.5  	unsigned num_vbds = 0;
     1.6  
     1.7 +	const char *vbd_type[] = {
     1.8 +		"Unidentified",           /* number 0 */
     1.9 +		"BlkBack",           /* number 1 */
    1.10 +		"BlkTap",            /* number 2 */
    1.11 +	};
    1.12 +	
    1.13  	num_vbds = xenstat_domain_num_vbds(domain);
    1.14  
    1.15  	for (i=0 ; i< num_vbds; i++) {
    1.16 @@ -927,7 +933,8 @@ void do_vbd(xenstat_domain *domain)
    1.17  		         MINOR(xenstat_vbd_dev(vbd)));
    1.18  #endif
    1.19  
    1.20 -		print("VBD %4d %s OO: %8llu   RD: %8llu   WR: %8llu\n",
    1.21 +		print("VBD %s %4d %s OO: %8llu   RD: %8llu   WR: %8llu\n",
    1.22 +		      vbd_type[xenstat_vbd_type(vbd)],
    1.23  		      xenstat_vbd_dev(vbd), details,
    1.24  		      xenstat_vbd_oo_reqs(vbd),
    1.25  		      xenstat_vbd_rd_reqs(vbd),