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-devel

[Xen-devel] [PATCH][XENTOP][4/4] Display blktap statistics.

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XENTOP][4/4] Display blktap statistics.
From: "Satoshi Uchida" <s-uchida@xxxxxxxxxxxxx>
Date: Tue, 5 Jun 2007 19:01:39 +0900
Delivery-date: Tue, 05 Jun 2007 03:01:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcejPhWwX45u8YZxQbCBb25injVbfwEGgWJQ
This patch make xentop output statistics about both blkback and blktap.
And, xentop also display back-end driver type in detail view mode.



# HG changeset patch
# User s-uchida@xxxxxxxxxxxxx
# Date 1180665749 -32400
# Node ID 1b36d6f6c7a98728382de93ee23c8c97b0b95dbd
# Parent  1768a89bb87824249827d935d7803d8193bdeb05
XENTOP: Displaying blktap information.

Signed-off-by: Satoshi UCHIDA <s-uchida@xxxxxxxxxxxxx>

diff -r 1768a89bb878 -r 1b36d6f6c7a9 tools/xenstat/xentop/xentop.c
--- a/tools/xenstat/xentop/xentop.c     Fri Jun 01 11:40:29 2007 +0900
+++ b/tools/xenstat/xentop/xentop.c     Fri Jun 01 11:42:29 2007 +0900
@@ -913,6 +913,12 @@ void do_vbd(xenstat_domain *domain)
        xenstat_vbd *vbd;
        unsigned num_vbds = 0;
 
+       const char *vbd_type[] = {
+               "Unidentified",           /* number 0 */
+               "BlkBack",           /* number 1 */
+               "BlkTap",            /* number 2 */
+       };
+       
        num_vbds = xenstat_domain_num_vbds(domain);
 
        for (i=0 ; i< num_vbds; i++) {
@@ -927,7 +933,8 @@ void do_vbd(xenstat_domain *domain)
                         MINOR(xenstat_vbd_dev(vbd)));
 #endif
 
-               print("VBD %4d %s OO: %8llu   RD: %8llu   WR: %8llu\n",
+               print("VBD %s %4d %s OO: %8llu   RD: %8llu   WR: %8llu\n",
+                     vbd_type[xenstat_vbd_type(vbd)],
                      xenstat_vbd_dev(vbd), details,
                      xenstat_vbd_oo_reqs(vbd),
                      xenstat_vbd_rd_reqs(vbd),


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][XENTOP][4/4] Display blktap statistics., Satoshi Uchida <=