Permalink
Browse files

Add mccblk devices to the diskfilter

  • Loading branch information...
1 parent e8ea398 commit 98cb0a0b20b4ac35a9ac76b26bbad28b2dc832b5 @dagwieers committed Nov 29, 2013
View
8 dstat
@@ -722,7 +722,7 @@ class dstat_disk(dstat):
def __init__(self):
self.nick = ('read', 'writ')
self.type = 'b'
- self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)$')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 2
@@ -787,7 +787,7 @@ class dstat_disk24(dstat):
def __init__(self):
self.nick = ('read', 'writ')
self.type = 'b'
- self.diskfilter = re.compile('(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/partitions')
if self.fd and not self.discover:
raise Exception, 'Kernel has no per-partition I/O accounting [CONFIG_BLK_STATS], use at least 2.4.20'
@@ -851,7 +851,7 @@ class dstat_disk24_old(dstat):
def __init__(self):
self.nick = ('read', 'writ')
self.type = 'b'
- self.diskfilter = re.compile('(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.regexp = re.compile('^\((\d+),(\d+)\):\(\d+,\d+,(\d+),\d+,(\d+)\)$')
self.open('/proc/stat')
self.cols = 2
@@ -1103,7 +1103,7 @@ class dstat_io(dstat):
self.type = 'f'
self.width = 5
self.scale = 1000
- self.diskfilter = re.compile('(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 2
@@ -11,7 +11,7 @@ def __init__(self):
self.type = 'f'
self.width = 4
self.scale = 10
- self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)$')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 1
self.struct = dict( rq_ticks=0 )
@@ -12,7 +12,7 @@ def __init__(self):
self.type = 'f'
self.width = 4
self.scale = 10
- self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)$')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 1
self.struct = dict( nr_ios=0, rd_sect=0, wr_sect=0 )
@@ -15,7 +15,7 @@ def __init__(self):
self.type = 'f'
self.width = 4
self.scale = 1
- self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)$')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 1
self.struct = dict( nr_ios=0, tot_ticks=0 )
@@ -11,7 +11,7 @@ def __init__(self):
self.nick = ('reads', 'writs' )
self.type = 'd'
self.scale = 1000
- self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)$')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 2
@@ -14,7 +14,7 @@ def __init__(self):
self.type = 'f'
self.width = 4
self.scale = 34
- self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)$')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 1
self.struct = dict( tot_ticks=0 )
@@ -13,7 +13,7 @@ def __init__(self):
self.type = 'f'
self.width = 4
self.scale = 1
- self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|cciss/c\dd\d)$')
+ self.diskfilter = re.compile('^(dm-\d+|md\d+|[hsv]d[a-z]+\d+|mmcblk\d+|cciss/c\dd\d)$')
self.open('/proc/diskstats')
self.cols = 1
self.struct = dict( rd_ios=0, wr_ios=0, rd_ticks=0, wr_ticks=0 )

0 comments on commit 98cb0a0

Please sign in to comment.