WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xentop: tmem: no stats for non-tmem domai

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xentop: tmem: no stats for non-tmem domains
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 03 Mar 2010 09:45:18 -0800
Delivery-date: Wed, 03 Mar 2010 09:45:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1267638048 0
# Node ID 401c0012b8273dbe6711c48d9d5bd2409808330f
# Parent  6c338a5830b524a17290285fd02fa442927b1d52
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@xxxxxxxxxx>
---
 tools/xenstat/libxenstat/src/xenstat.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 6c338a5830b5 -r 401c0012b827 tools/xenstat/libxenstat/src/xenstat.c
--- a/tools/xenstat/libxenstat/src/xenstat.c    Wed Mar 03 17:40:22 2010 +0000
+++ b/tools/xenstat/libxenstat/src/xenstat.c    Wed Mar 03 17:40:48 2010 +0000
@@ -149,8 +149,9 @@ void domain_get_tmem_stats(xenstat_handl
 {
        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");

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xentop: tmem: no stats for non-tmem domains, Xen patchbot-unstable <=