Lines Matching refs:m
265 m = re.match('(?P<name>.*)_dmesg\.txt$', self.dmesgfile)
266 if(m):
267 self.htmlfile = m.group('name')+'.html'
269 m = re.match('(?P<name>.*)_ftrace\.txt$', self.ftracefile)
270 if(m):
271 self.htmlfile = m.group('name')+'.html'
273 p = c = m = b = ''
275 m = info['baseboard-manufacturer']
277 m = info['system-manufacturer']
287 (m, p, c, b, self.cpucount, self.memtotal)
305 m = re.match('^MemTotal:[ \t]*(?P<sz>[0-9]*) *kB', line)
306 if m:
307 self.memtotal = int(m.group('sz'))
367 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
368 if(m):
369 ktime = m.group('ktime')
381 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
382 if(not m):
384 ktime = float(m.group('ktime'))
462 m = re.match('.* '+arg+'=(?P<arg>.*) ', data);
463 if m:
464 arglist[arg] = m.group('arg')
466 m = re.match('.* '+arg+'=(?P<arg>.*)', data);
467 if m:
468 arglist[arg] = m.group('arg')
834 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) .*', dmesg[i])
835 if not m:
837 tm = float(m.group('ktime'))
844 m = re.match('[ \t]*\[ *[0-9\.]*\] \[\<[0-9a-fA-F]*\>\] .*', dmesg[i])
845 if m:
933 m = re.match(mstr, title)
934 if m:
935 c = m.group('caller')
936 a = m.group('args').strip()
937 r = m.group('ret')
1439 def __init__(self, t, m='', d=''): argument
1441 if not m and not d:
1444 if(d == 'traceevent' or re.match('^ *\/\* *(?P<msg>.*) \*\/ *$', m)):
1447 msg = m
1450 em = re.match('^ *\/\* *(?P<msg>.*) \*\/ *$', m)
1477 match = re.match('^(?P<d> *)(?P<o>.*)$', m)
1481 m = match.group('o')
1483 if(m[0] == '}'):
1485 if(len(m) > 1):
1487 match = re.match('^} *\/\* *(?P<n>.*) *\*\/$', m)
1494 if(m[-1] == '{'):
1495 match = re.match('^(?P<n>.*) *\(.*', m)
1499 elif(m[-1] == ';'):
1501 match = re.match('^(?P<n>.*) *\(.*', m)
1506 self.name = m
2099 m = re.match(self.stampfmt, self.stamp)
2101 dt = datetime(int(m.group('y'))+2000, int(m.group('m')),
2102 int(m.group('d')), int(m.group('H')), int(m.group('M')),
2103 int(m.group('S')))
2105 data.stamp['host'] = m.group('host')
2106 data.stamp['mode'] = m.group('mode')
2107 data.stamp['kernel'] = m.group('kernel')
2122 m = re.match('.* suspend_enter\[(?P<mode>.*)\]', out)
2123 if m and m.group('mode') in ['1', '2', '3']:
2124 sv.suspendmode = modes[int(m.group('mode'))]
2265 m = re.match(sysvals.tracertypefmt, line)
2266 if(m):
2267 tp.setTracerType(m.group('t'))
2274 m = re.match(tp.ftrace_line_fmt, line)
2275 if(not m):
2278 m_time = m.group('time')
2279 m_pid = m.group('pid')
2280 m_msg = m.group('msg')
2282 m_param3 = m.group('dur')
2317 m = re.match('(?P<name>.*)\[(?P<val>[0-9]*)\] .*', t.name)
2318 if(m):
2319 val = m.group('val')
2321 name = m.group('name')
2323 name = m.group('name')+'['+val+']'
2325 m = re.match('(?P<name>.*) .*', t.name)
2326 name = m.group('name')
2416 id = 'task %s cpu %s' % (pid, m.group('cpu'))
2474 m = re.match(sysvals.firmwarefmt, line)
2475 if(m):
2476 tp.fwdata.append((int(m.group('s')), int(m.group('r'))))
2479 m = re.match(sysvals.tracertypefmt, line)
2480 if(m):
2481 tp.setTracerType(m.group('t'))
2491 m = re.match(tp.ftrace_line_fmt, line)
2492 if(not m):
2495 m_time = m.group('time')
2496 m_proc = m.group('proc')
2497 m_pid = m.group('pid')
2498 m_msg = m.group('msg')
2500 m_param3 = m.group('dur')
2526 m = re.match(sysvals.procexecfmt, t.name)
2527 if(m):
2529 for ps in m.group('ps').split(','):
2569 m = re.match('(?P<name>.*)\[(?P<val>[0-9]*)\] .*', t.name)
2570 if(m):
2571 val = m.group('val')
2573 name = m.group('name')
2575 name = m.group('name')+'['+val+']'
2577 m = re.match('(?P<name>.*) .*', t.name)
2578 name = m.group('name')
2681 m = re.match('(?P<drv>.*) (?P<d>.*), parent: *(?P<p>.*), .*',\
2683 if(not m):
2685 drv = m.group('drv')
2686 n = m.group('d')
2687 p = m.group('p')
2694 m = re.match('(?P<drv>.*) (?P<d>.*), err.*', t.name);
2695 if(not m):
2697 n = m.group('d')
2906 m = re.match(sysvals.firmwarefmt, line)
2907 if(m):
2908 tp.fwdata.append((int(m.group('s')), int(m.group('r'))))
2910 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
2911 if(not m):
2913 msg = m.group("msg")
2928 m = re.match('.* *(?P<k>[0-9]\.[0-9]{2}\.[0-9]-.*) .*', msg)
2929 if(m):
2930 sysvals.stamp['kernel'] = m.group('k')
2931 m = re.match('PM: Preparing system for (?P<m>.*) sleep', msg)
2932 if(m):
2933 sysvals.stamp['mode'] = sysvals.suspendmode = m.group('m')
3033 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
3034 if(m):
3035 val = m.group('ktime')
3040 msg = m.group('msg')
3165 m = re.match('smpboot: CPU (?P<cpu>[0-9]*) is now offline', msg)
3166 cpu = 'CPU'+m.group('cpu')
3173 m = re.match('CPU(?P<cpu>[0-9]*) is up', msg)
3174 cpu = 'CPU'+m.group('cpu')
4354 m = ms / 60000
4355 s = (ms / 1000) - (m * 60)
4356 return '%3dm%2ds' % (m, s)
4453 m = re.match(sysvals.tracertypefmt, line)
4454 if(m):
4455 tp.setTracerType(m.group('t'))
4458 m = re.match(tp.ftrace_line_fmt, line)
4459 if(not m or 'device_pm_callback_start' not in line):
4461 m = re.match('.*: (?P<drv>.*) (?P<d>.*), parent: *(?P<p>.*), .*', m.group('msg'));
4462 if(not m):
4464 dev = m.group('d')
4548 for m in string.split(fp.read()):
4549 memmode = m.strip('[]')