Satoshi Uchida
2007-Jun-05 10:01 UTC
[Xen-devel] [PATCH][XENTOP][1/4] Display blktap statistics.
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@ap.jp.nec.com # 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@ap.jp.nec.com> 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@lists.xensource.com http://lists.xensource.com/xen-devel