Lines Matching refs:line
348 msg = 'Signal %s caused a tool exit, line %d' % (signame, frame.f_lineno)
466 for line in fp:
467 if re.match('^processor[ \t]*:[ \t]*[0-9]*', line):
471 for line in fp:
472 m = re.match('^MemTotal:[ \t]*(?P<sz>[0-9]*) *kB', line)
475 m = re.match('^MemFree:[ \t]*(?P<sz>[0-9]*) *kB', line)
480 for line in fp:
481 if line.startswith('PRETTY_NAME='):
482 self.osversion = line[12:].strip().replace('"', '')
537 for line in reversed(lines):
538 line = ascii(line).replace('\r\n', '')
539 idx = line.find('[')
541 line = line[idx:]
542 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
551 for line in fp:
552 line = ascii(line).replace('\r\n', '')
553 idx = line.find('[')
555 line = line[idx:]
556 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
561 op.write(line)
977 # add test command string line if need be
985 for line in tf:
986 if tp.stampInfo(line, self):
989 m = re.match(tp.ftrace_line_fmt, line)
990 if(not m or 'device_pm_callback_start' not in line):
1042 # add a devinfo line to the bottom of ftrace
1048 # add a line for each of these commands with their outputs
1069 for line in text.split('\n'):
1071 header, out['@'] = False, line
1073 line = line.strip()
1074 if delim in line:
1075 data = line.split(delim, 1)
1091 for line in info.split('\n'):
1092 if line[0] == 'e' and 'UP' in line:
1093 return line.split()[0]
1150 line = fp.read().strip().split('\n')[-1]
1151 m = re.match('.* (?P<v>[0-9A-Fx]*) .*', line)
1185 for line in fp:
1186 line = ascii(line)
1187 rawout += line
1190 if re.match('(?i)Avg_MHz.*', line):
1191 keyline = line.strip().split()
1193 valline = line.strip().split()
1234 for line in reversed(w.split('\n')):
1235 m = re.match(' *(?P<dev>.*): (?P<stat>[0-9a-f]*) .*', line)
1274 'line': msg,
1342 for line in fp:
1343 m = re.match('[\s]*Monitor is (?P<m>.*)', ascii(line))
1547 for line in self.dmesgtext:
1548 m = re.match(tp.tstatfmt, line)
1565 for line in lf:
1567 if tp.stampInfo(line, sysvals):
1569 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
1805 for line in cg.list:
1806 line.time = self.trimTimeVal(line.time, t0, dT, left)
2192 def initcall_debug_call(self, line, quick=False):
2194 'PM: *calling .* @ (?P<n>.*), parent: (?P<p>.*)', line)
2197 'calling .* @ (?P<n>.*), parent: (?P<p>.*)', line)
2200 '(?P<f>.*)\+ @ (?P<n>.*), parent: (?P<p>.*)', line)
2204 def initcall_debug_return(self, line, quick=False):
2206 '.* returned (?P<r>[0-9]*) after (?P<dt>[0-9]*) usecs', line)
2209 '.* returned (?P<r>[0-9]*) after (?P<dt>[0-9]*) usecs', line)
2212 '(?P<f>.*)\+ returned .* after (?P<dt>.*) usecs', line)
2274 # A container for a single line of ftrace data. There are six basic types:
2275 # callgraph line:
2379 # Is this the starting line of a suspend?
2392 # Is this the ending line of a resume?
2425 def addLine(self, line):
2428 if(line.depth == 0 and line.freturn):
2433 self.invalidate(line)
2437 if line.depth > self.depth:
2441 self.list[-1].length = line.time - self.list[-1].time
2444 if line.depth == self.depth and line.isReturn():
2445 if line.depth == 0:
2446 self.end = line.time
2450 prelinedep = line.depth
2451 if line.isReturn():
2454 lasttime = line.time
2473 last.length = line.time - last.time
2488 info.append(('', line))
2496 if idx == 0 and line.isReturn():
2498 line.fcall = True
2501 info.append(('[make leaf]', line))
2514 if warning and ('[make leaf]', line) not in info:
2515 info.append(('', line))
2525 if line.isCall():
2527 if (md and self.depth >= md - 1) or (line.name in self.sv.cgblacklist):
2531 elif line.isReturn():
2534 if (last and last.isCall() and last.depth == line.depth) or \
2536 (line.name in self.sv.cgblacklist):
2537 while len(self.list) > 0 and self.list[-1].depth > line.depth:
2543 self.list[-1].length = line.time - self.list[-1].time
2544 self.list[-1].name = line.name
2547 self.start = line.time
2551 line = self.list[-1]
2555 self.list.append(line)
2556 if(line.depth == 0 and line.freturn):
2558 self.start = line.time
2559 self.end = line.time
2560 if line.fcall:
2561 self.end += line.length
2568 def invalidate(self, line):
2575 window = '(%f - %f)' % (self.start, line.time)
2917 # if there is 1 line per row, draw them the standard way
3026 def stampInfo(self, line, sv):
3027 if re.match(self.stampfmt, line):
3028 self.stamp = line
3030 elif re.match(self.sysinfofmt, line):
3031 self.sysinfo = line
3033 elif re.match(self.tstatfmt, line):
3034 self.turbostat.append(line)
3036 elif re.match(self.wififmt, line):
3037 self.wifi.append(line)
3039 elif re.match(self.testerrfmt, line):
3040 self.testerror.append(line)
3042 elif re.match(self.firmwarefmt, line):
3043 self.fwdata.append(line)
3045 elif(re.match(self.devpropfmt, line)):
3046 self.parseDevprops(line, sv)
3048 elif(re.match(self.pinfofmt, line)):
3049 self.parsePlatformInfo(line, sv)
3051 m = re.match(self.cmdlinefmt, line)
3055 m = re.match(self.tracertypefmt, line)
3090 for line in fp:
3091 m = re.match('.* machine_suspend\[(?P<mode>.*)\]', line)
3139 def parseDevprops(self, line, sv):
3140 idx = line.index(': ') + 2
3141 if idx >= len(line):
3143 props = self.devprops(line[idx:])
3147 def parsePlatformInfo(self, line, sv):
3148 m = re.match(self.pinfofmt, line)
3184 for line in process.stdout:
3185 data = ascii(line).split()
3212 for line in out:
3213 sysvals.fsetVal('ps - @%d|%s' % (len(out), line), 'trace_marker')
3238 for line in fp:
3242 if i in line:
3247 if i in line:
3253 if i in line:
3280 for line in tf:
3282 line = line.replace('\r\n', '')
3283 if tp.stampInfo(line, sysvals):
3286 m = re.match(tp.ftrace_line_fmt, line)
3289 # gather the basic message data from the line
3302 # the line should be a call, return, or event
3371 for line in tf:
3373 line = line.replace('\r\n', '')
3374 if tp.stampInfo(line, sysvals):
3377 if line[0] == '#':
3379 # ftrace line: parse only valid lines
3380 m = re.match(tp.ftrace_line_fmt, line)
3448 # gather the basic message data from the line
3454 # the line should be a call, return, or event
3470 # process cpu exec line
3900 for line in lf:
3901 line = line.replace('\r\n', '')
3902 idx = line.find('[')
3904 line = line[idx:]
3905 if tp.stampInfo(line, sysvals):
3907 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
3927 data.dmesgtext.append(line)
3943 for line in data.dmesgtext:
3944 ct, cf, n, p = data.initcall_debug_call(line)
3948 j = data.dmesgtext.index(line)
3949 data.dmesgtext[i] = line
3951 last = line
4022 for line in data.dmesgtext:
4023 # parse each dmesg line into the time and message
4024 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
4032 # initialize data start to first line time
4039 # check for a phase change line
4051 data.initcall_debug_call(line, True)):
4124 t, f, n, p = data.initcall_debug_call(line)
4129 t, f, l = data.initcall_debug_return(line)
4229 for line in cg.list:
4230 if(line.length < 0.000000001):
4234 flen = fmt % (line.length*1000, line.time)
4235 if line.isLeaf():
4236 if line.length * 1000 < sv.mincglen:
4238 hf.write(html_func_leaf.format(line.name, flen))
4239 elif line.freturn:
4242 hf.write(html_func_start.format(num, line.name, flen))
4289 .stamp {width: 100%;text-align:center;background:#888;line-height:30px;color:white;font: 25px Arial;}\n\
4419 # header line for each suspend mode
4440 # figure out if the line has sus or res highlighted
4572 html += td.format('left', e['line']) # issue
4622 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'
4939 for line in lf:
4940 line = line.replace('<', '<').replace('>', '>')
4941 hf.write(line)
4948 for line in lf:
4949 hf.write(line)
4992 .stamp {width:100%;text-align:center;background:gray;line-height:30px;color:white;font:25px Arial;}\n\
5001 t4 {color:black;font:bold 30px Times;line-height:60px;white-space:nowrap;}\n\
5023 .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\
5026 .thread.sec,.thread.sec:hover {background:black;border:0;color:white;line-height:15px;font-size:10px;}\n\
5035 .t {position:absolute;line-height:'+('%d'%scaleTH)+'px;pointer-events:none;top:0;height:100%;border-right:1px solid black;z-index:6;}\n\
5036 .err {position:absolute;top:0%;height:100%;border-right:3px solid red;color:red;font:bold 14px Times;line-height:18px;}\n\
5046 .version {position:relative;float:left;color:white;font-size:10px;line-height:30px;margin-left:10px;}\n\
6090 # pull out an integer argument from the command line with checks
6109 # pull out a float argument from the command line with checks
6281 line = find_in_html(html, '<div class="stamp">', '</div>')
6282 stmp = line.split()
6322 line = find_in_html(log, '# wifi ', '\n')
6323 if line:
6324 extra['wifi'] = line
6325 line = find_in_html(log, '# netfix ', '\n')
6326 if line:
6327 extra['netfix'] = line
6348 'match': issue, 'count': 1, 'line': issue,
6354 for line in html.split('\n'):
6355 m = re.match(' *<div id=\"[a,0-9]*\" *title=\"(?P<title>.*)\" class=\"thread.*', line)
6356 if not m or 'thread kth' in line or 'thread sec' in line:
6780 # loop through the command line arguments