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][1/4] Display blktap statistics.

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][XENTOP][1/4] Display blktap statistics.
From: "Satoshi Uchida" <s-uchida@xxxxxxxxxxxxx>
Date: Tue, 5 Jun 2007 19:01:26 +0900
Delivery-date: Tue, 05 Jun 2007 02:59:41 -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: AcejPgGdJV/9DCQNTzyiIz8OTyK87QEGN9QQ
This patch renames sysfs entries about blktap.

Sysfs entories about blktap are added prefix "tap_".
This patch removes its prefix.

For example, in blktap, the number of READ request used to be referred sysfs 
entries "tap_rd_req".
After applying this patch, it is referred sysfs entries "rd_req" -- this is 
same entiries' name with blkback. --.


# HG changeset patch
# User s-uchida@xxxxxxxxxxxxx
# Date 1180665239 -32400
# Node ID 32d03e18fda8aad13b1674104eb2d32854be1403
# Parent  1b39e42d4e0d906747fc7bae1a3e5924c98be48d
BLKTAP:Modified sysfs name for blktap.
       a sysfs name for back-end driver is unified.
       In detail, remve "tap-".

Sigened-off-by: Satochi UCHIDA <s-uchida@xxxxxxxxxxxxx>

diff -r 1b39e42d4e0d -r 32d03e18fda8 
linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c
--- a/linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c  Thu May 10 10:35:55 
2007 +0900
+++ b/linux-2.6-xen-sparse/drivers/xen/blktap/xenbus.c  Fri Jun 01 11:33:59 
2007 +0900
@@ -114,7 +114,7 @@ static int blktap_name(blkif_t *blkif, c
 }
 
 /****************************************************************
- *  sysfs interface for VBD I/O requests
+ *  sysfs interface for I/O requests of blktap device
  */
 
 #define VBD_SHOW(name, format, args...)                                        
\
@@ -127,20 +127,20 @@ static int blktap_name(blkif_t *blkif, c
                                                                        \
                return sprintf(buf, format, ##args);                    \
        }                                                               \
-       DEVICE_ATTR(name, S_IRUGO, show_##name, NULL)
-
-VBD_SHOW(tap_oo_req,  "%d\n", be->blkif->st_oo_req);
-VBD_SHOW(tap_rd_req,  "%d\n", be->blkif->st_rd_req);
-VBD_SHOW(tap_wr_req,  "%d\n", be->blkif->st_wr_req);
-VBD_SHOW(tap_rd_sect, "%d\n", be->blkif->st_rd_sect);
-VBD_SHOW(tap_wr_sect, "%d\n", be->blkif->st_wr_sect);
+       static DEVICE_ATTR(name, S_IRUGO, show_##name, NULL)
+
+VBD_SHOW(oo_req,  "%d\n", be->blkif->st_oo_req);
+VBD_SHOW(rd_req,  "%d\n", be->blkif->st_rd_req);
+VBD_SHOW(wr_req,  "%d\n", be->blkif->st_wr_req);
+VBD_SHOW(rd_sect, "%d\n", be->blkif->st_rd_sect);
+VBD_SHOW(wr_sect, "%d\n", be->blkif->st_wr_sect);
 
 static struct attribute *tapstat_attrs[] = {
-       &dev_attr_tap_oo_req.attr,
-       &dev_attr_tap_rd_req.attr,
-       &dev_attr_tap_wr_req.attr,
-       &dev_attr_tap_rd_sect.attr,
-       &dev_attr_tap_wr_sect.attr,
+       &dev_attr_oo_req.attr,
+       &dev_attr_rd_req.attr,
+       &dev_attr_wr_req.attr,
+       &dev_attr_rd_sect.attr,
+       &dev_attr_wr_sect.attr,
        NULL
 };
 


_______________________________________________
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][1/4] Display blktap statistics., Satoshi Uchida <=