Lines Matching refs:line

326 		msg = 'Signal %s caused a tool exit, line %d' % (signame, frame.f_lineno)
428 for line in fp:
429 if re.match('^processor[ \t]*:[ \t]*[0-9]*', line):
433 for line in fp:
434 m = re.match('^MemTotal:[ \t]*(?P<sz>[0-9]*) *kB', line)
437 m = re.match('^MemFree:[ \t]*(?P<sz>[0-9]*) *kB', line)
495 for line in fp:
496 line = ascii(line).replace('\r\n', '')
497 idx = line.find('[')
499 line = line[idx:]
500 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
509 for line in fp:
510 line = ascii(line).replace('\r\n', '')
511 idx = line.find('[')
513 line = line[idx:]
514 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
519 op.write(line)
918 # add test command string line if need be
926 for line in tf:
927 if tp.stampInfo(line, self):
930 m = re.match(tp.ftrace_line_fmt, line)
931 if(not m or 'device_pm_callback_start' not in line):
986 # add a devinfo line to the bottom of ftrace
992 # add a line for each of these commands with their outputs
1015 for line in text.split('\n'):
1017 header, out['@'] = False, line
1019 line = line.strip()
1020 if delim in line:
1021 data = line.split(delim, 1)
1081 for line in fp:
1082 line = ascii(line)
1083 rawout += line
1086 if re.match('(?i)Avg_MHz.*', line):
1087 keyline = line.strip().split()
1089 valline = line.strip().split()
1120 for line in reversed(w.split('\n')):
1160 'line': msg,
1367 for line in self.dmesgtext:
1368 m = re.match(tp.tstatfmt, line)
1385 for line in lf:
1387 if tp.stampInfo(line, sysvals):
1389 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
1622 for line in cg.list:
1623 line.time = self.trimTimeVal(line.time, t0, dT, left)
2086 # A container for a single line of ftrace data. There are six basic types:
2087 # callgraph line:
2191 # Is this the starting line of a suspend?
2204 # Is this the ending line of a resume?
2237 def addLine(self, line):
2240 if(line.depth == 0 and line.freturn):
2245 self.invalidate(line)
2249 if line.depth > self.depth:
2253 self.list[-1].length = line.time - self.list[-1].time
2256 if line.depth == self.depth and line.isReturn():
2257 if line.depth == 0:
2258 self.end = line.time
2262 prelinedep = line.depth
2263 if line.isReturn():
2266 lasttime = line.time
2285 last.length = line.time - last.time
2300 info.append(('', line))
2308 if idx == 0 and line.isReturn():
2310 line.fcall = True
2313 info.append(('[make leaf]', line))
2326 if warning and ('[make leaf]', line) not in info:
2327 info.append(('', line))
2337 if line.isCall():
2339 if (md and self.depth >= md - 1) or (line.name in self.sv.cgblacklist):
2343 elif line.isReturn():
2346 if (last and last.isCall() and last.depth == line.depth) or \
2348 (line.name in self.sv.cgblacklist):
2349 while len(self.list) > 0 and self.list[-1].depth > line.depth:
2355 self.list[-1].length = line.time - self.list[-1].time
2356 self.list[-1].name = line.name
2359 self.start = line.time
2363 line = self.list[-1]
2367 self.list.append(line)
2368 if(line.depth == 0 and line.freturn):
2370 self.start = line.time
2371 self.end = line.time
2372 if line.fcall:
2373 self.end += line.length
2380 def invalidate(self, line):
2387 window = '(%f - %f)' % (self.start, line.time)
2729 # if there is 1 line per row, draw them the standard way
2834 def stampInfo(self, line, sv):
2835 if re.match(self.stampfmt, line):
2836 self.stamp = line
2838 elif re.match(self.sysinfofmt, line):
2839 self.sysinfo = line
2841 elif re.match(self.tstatfmt, line):
2842 self.turbostat.append(line)
2844 elif re.match(self.wififmt, line):
2845 self.wifi.append(line)
2847 elif re.match(self.testerrfmt, line):
2848 self.testerror.append(line)
2850 elif re.match(self.firmwarefmt, line):
2851 self.fwdata.append(line)
2853 elif(re.match(self.devpropfmt, line)):
2854 self.parseDevprops(line, sv)
2856 elif(re.match(self.pinfofmt, line)):
2857 self.parsePlatformInfo(line, sv)
2859 m = re.match(self.cmdlinefmt, line)
2863 m = re.match(self.tracertypefmt, line)
2898 for line in fp:
2899 m = re.match('.* machine_suspend\[(?P<mode>.*)\]', line)
2947 def parseDevprops(self, line, sv):
2948 idx = line.index(': ') + 2
2949 if idx >= len(line):
2951 props = self.devprops(line[idx:])
2955 def parsePlatformInfo(self, line, sv):
2956 m = re.match(self.pinfofmt, line)
2991 for line in process.stdout:
2992 data = ascii(line).split()
3041 for line in fp:
3045 if i in line:
3050 if i in line:
3056 if i in line:
3084 for line in tf:
3086 line = line.replace('\r\n', '')
3087 if tp.stampInfo(line, sysvals):
3090 m = re.match(tp.ftrace_line_fmt, line)
3093 # gather the basic message data from the line
3106 # the line should be a call, return, or event
3197 for line in tf:
3199 line = line.replace('\r\n', '')
3200 if tp.stampInfo(line, sysvals):
3203 if line[0] == '#':
3205 # ftrace line: parse only valid lines
3206 m = re.match(tp.ftrace_line_fmt, line)
3209 # gather the basic message data from the line
3223 # the line should be a call, return, or event
3239 # process cpu exec line
3645 for line in lf:
3646 line = line.replace('\r\n', '')
3647 idx = line.find('[')
3649 line = line[idx:]
3650 if tp.stampInfo(line, sysvals):
3652 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
3669 data.dmesgtext.append(line)
3681 for line in data.dmesgtext:
3683 '(?P<f>.*)\+ @ .*, parent: .*', line)
3689 j = data.dmesgtext.index(line)
3690 data.dmesgtext[i] = line
3692 last = line
3764 for line in data.dmesgtext:
3765 # parse each dmesg line into the time and message
3766 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
3774 # initialize data start to first line time
3781 # check for a phase change line
3974 for line in cg.list:
3975 if(line.length < 0.000000001):
3979 flen = fmt % (line.length*1000, line.time)
3980 if line.isLeaf():
3981 hf.write(html_func_leaf.format(line.name, flen))
3982 elif line.freturn:
3985 hf.write(html_func_start.format(num, line.name, flen))
4032 .stamp {width: 100%;text-align:center;background:#888;line-height:30px;color:white;font: 25px Arial;}\n\
4162 # header line for each suspend mode
4183 # figure out if the line has sus or res highlighted
4315 html += td.format('left', e['line']) # issue
4365 html_traceevent = '<div title="{0}" class="traceevent{6}" style="left:{1}%;top:{2}px;height:{3}px;width:{4}%;line-height:{3}px;{7}">{5}</div>\n'
4685 for line in lf:
4686 line = line.replace('<', '&lt').replace('>', '&gt')
4687 hf.write(line)
4694 for line in lf:
4695 hf.write(line)
4738 .stamp {width:100%;text-align:center;background:gray;line-height:30px;color:white;font:25px Arial;}\n\
4747 t4 {color:black;font:bold 30px Times;line-height:60px;white-space:nowrap;}\n\
4769 .thread {position:absolute;height:0%;overflow:hidden;z-index:7;line-height:30px;font-size:14px;border:1px solid;text-align:center;white-space:nowrap;}\n\
4772 .thread.sec,.thread.sec:hover {background:black;border:0;color:white;line-height:15px;font-size:10px;}\n\
4781 .t {position:absolute;line-height:'+('%d'%scaleTH)+'px;pointer-events:none;top:0;height:100%;border-right:1px solid black;z-index:6;}\n\
4782 .err {position:absolute;top:0%;height:100%;border-right:3px solid red;color:red;font:bold 14px Times;line-height:18px;}\n\
4792 .version {position:relative;float:left;color:white;font-size:10px;line-height:30px;margin-left:10px;}\n\
5342 for line in fp:
5343 op.write(line)
5613 for line in fp:
5614 m = re.match('[\s]*Monitor is (?P<m>.*)', ascii(line))
5878 # pull out an integer argument from the command line with checks
5897 # pull out a float argument from the command line with checks
6056 line = find_in_html(html, '<div class="stamp">', '</div>')
6057 stmp = line.split()
6112 'match': issue, 'count': 1, 'line': issue,
6118 for line in html.split('\n'):
6119 m = re.match(' *<div id=\"[a,0-9]*\" *title=\"(?P<title>.*)\" class=\"thread.*', line)
6120 if not m or 'thread kth' in line or 'thread sec' in line:
6540 # loop through the command line arguments