direct-io.hg

changeset 6426:a032aca565a3

Changed xentop.c to include version in the summary.
Signed-off-by: Judy Fischbach <jfisch@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Aug 26 08:50:02 2005 +0000 (2005-08-26)
parents 28ffa7296a44
children 48202c7c709a
files tools/xenstat/xentop/xentop.c
line diff
     1.1 --- a/tools/xenstat/xentop/xentop.c	Fri Aug 26 08:49:31 2005 +0000
     1.2 +++ b/tools/xenstat/xentop/xentop.c	Fri Aug 26 08:50:02 2005 +0000
     1.3 @@ -593,6 +593,7 @@ void do_summary(void)
     1.4  #define TIME_STR_LEN 9
     1.5  	const char *TIME_STR_FORMAT = "%H:%M:%S";
     1.6  	char time_str[TIME_STR_LEN];
     1.7 +	const char *ver_str;
     1.8  	unsigned run = 0, block = 0, pause = 0,
     1.9  	         crash = 0, dying = 0, shutdown = 0;
    1.10  	unsigned i, num_domains = 0;
    1.11 @@ -603,7 +604,8 @@ void do_summary(void)
    1.12  	strftime(time_str, TIME_STR_LEN, TIME_STR_FORMAT,
    1.13  	         localtime(&curtime.tv_sec));
    1.14  	num_domains = xenstat_node_num_domains(cur_node);
    1.15 -	print("xentop - %s\n", time_str);
    1.16 +	ver_str = xenstat_node_xen_ver( cur_node);
    1.17 +	print("xentop - %s   Xen %s\n", time_str, ver_str);
    1.18  
    1.19  	/* Tabulate what states domains are in for summary */
    1.20  	for (i=0; i < num_domains; i++) {