mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
ad709c500b
commit
41a3140ea2
1 file changed
+3
-2
@@ -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");
|
||||
|
||||