xentop: tmem: no stats for non-tmem domains

In xentop, don't re-use and print stale data of previous tmem
domain for subsequent non-tmem domain.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
This commit is contained in:
Keir Fraser committed 2010-03-03 17:40:48 +00:00
1 parent ad709c500b
commit 41a3140ea2
1 file changed
+3 -2
+3 -2
View File
@@ -149,8 +149,9 @@ void domain_get_tmem_stats(xenstat_handle * handle, xenstat_domain * domain)
{
char buffer[4096];
xc_tmem_control(handle->xc_handle,-1,TMEMC_LIST,domain->id,
sizeof(buffer),-1,-1,buffer);
if (xc_tmem_control(handle->xc_handle,-1,TMEMC_LIST,domain->id,
sizeof(buffer),-1,-1,buffer) < 0)
return;
domain->tmem_stats.curr_eph_pages = parse(buffer,"Ec");
domain->tmem_stats.succ_eph_gets = parse(buffer,"Ge");
domain->tmem_stats.succ_pers_puts = parse(buffer,"Pp");
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.