Lines Matching defs:start

1128 							dinfo += '%10s (start) : %s\n%10s (after) : %s\n' % \
1241 start = time.time()
1242 while (time.time() - start) < timeout:
1246 (self.wifiDetails(dev), max(0, time.time() - start))
1280 def multistat(self, start, idx, finish):
1286 if 'start' not in self.multitest:
1287 self.multitest['start'] = self.multitest['last'] = t
1292 if not start:
1369 def start(self, pm):
1371 self.dlog('start ftrace tracing')
1374 self.dlog('start the process monitor')
1375 pm.start()
1443 # contents: times for phase start/end, order/color data for html
1448 # contents: start/stop times, pid/cpu/driver info
1493 self.start = 0.0 # test start
1495 self.hwstart = 0 # rtc test start
1497 self.tSuspended = 0.0 # low-level suspend start
1498 self.tResumed = 0.0 # low-level resume start
1499 self.tKernSus = 0.0 # kernel level suspend start
1573 if t < self.start or t > self.end:
1594 self.start = time
1612 if(d['pid'] == pid and time >= d['start'] and
1616 def sourcePhase(self, start):
1621 if start <= pend:
1624 def sourceDevice(self, phaselist, start, end, pid, type):
1633 devS = dev['start']
1637 if(start < devS or start >= devE or end <= devS or end > devE):
1641 if start < devS:
1642 dev['start'] = start
1648 def addDeviceFunctionCall(self, displayname, kprobename, proc, pid, start, end, cdata, rdata):
1651 tgtdev = self.sourceDevice(phases, start, end, pid, 'device')
1658 tgtdev = self.sourceDevice(phases, start, end, pid, 'thread')
1665 tgtphase = self.sourcePhase(start)
1668 self.newAction(tgtphase, threadname, pid, '', start, end, '', ' kth', '')
1669 return self.addDeviceFunctionCall(displayname, kprobename, proc, pid, start, end, cdata, rdata)
1673 (start, end, proc, pid, kprobename, cdata, rdata))
1697 e = DevFunction(displayname, a, c, r, start, end, ubiquitous, proc, pid, color)
1719 o = min(dev['end'], tdev['end']) - max(dev['start'], tdev['start'])
1733 if tdev['start'] - dev['end'] < 0.1:
1787 self.start = self.trimTimeVal(self.start, t0, dT, left)
1793 p['start'] = self.trimTimeVal(p['start'], t0, dT, left)
1798 d['start'] = self.trimTimeVal(d['start'], t0, dT, left)
1800 d['length'] = d['end'] - d['start']
1803 cg.start = self.trimTimeVal(cg.start, t0, dT, left)
1832 tS, tR = self.dmesg[lp]['end'], self.dmesg[phase]['start']
1852 stime = (self.tSuspended - self.start) * 1000000
1863 # phase start over current phase
1874 self.dmesg[phase] = {'list': dict(), 'start': -1.0, 'end': -1.0,
1876 self.dmesg[phase]['start'] = ktime
1879 # phase end without a start
1884 sysvals.vprint('WARNING: %s ended without a start, ftrace corruption?' % phase)
1892 return sorted(list, key=lambda k:list[k]['start'])
1900 if self.dmesg[p]['end'] > dev['start']:
1937 def newActionGlobal(self, name, start, end, pid=-1, color=''):
1945 pstart = self.dmesg[phase]['start']
1948 o = max(0, min(end, pend) - max(start, pstart))
1959 p0start = self.dmesg[phases[0]]['start']
1960 if start <= p0start:
1972 newname = self.newAction(targetphase, name, pid, '', start, end, '', htmlclass, color)
1975 def newAction(self, phase, name, pid, parent, start, end, drv, htmlclass='', color=''):
1981 if(start >= 0 and end >= 0):
1982 length = end - start
1989 list[name] = {'name': name, 'start': start, 'end': end, 'pid': pid,
2020 sysvals.vprint(' test start: %f' % self.start)
2021 sysvals.vprint('kernel suspend start: %f' % self.tKernSus)
2025 dc, ps, pe = len(devlist), self.dmesg[phase]['start'], self.dmesg[phase]['end']
2039 s = devlist[name]['start']
2072 s = list[node.name]['start']
2118 length = (list[dev]['end'] - list[dev]['start']) * 1000
2119 width = widfmt % (((list[dev]['end']-list[dev]['start'])*100)/tTotal)
2126 self.start, devend, '', ' sec', '')
2133 # get the start and end times for this process
2135 tlast = start = end = -1
2141 if start < 0:
2142 start = tlast
2147 if start < 0 or end < 0:
2150 out = self.newActionGlobal(name, start, end, -3)
2178 # assume resume machine ends at next phase start
2182 dm['resume_machine']['end'] = dm[np]['start']
2186 # if kernel suspend start not found, assume its the end marker
2228 def __init__(self, name, args, caller, ret, start, end, u, proc, pid, color):
2235 self.time = start
2236 self.length = end - start
2419 self.start = -1.0
2510 self.start = vline.time
2547 self.start = line.time
2557 if(self.start < 0):
2558 self.start = line.time
2575 window = '(%f - %f)' % (self.start, line.time)
2588 if(l.time < dev['start'] or l.time > dev['end']):
2667 self.start <= dev['start'] and
2675 if(data.dmesg[p]['start'] <= self.start and
2676 self.start <= data.dmesg[p]['end']):
2678 for devname in sorted(list, key=lambda k:list[k]['start']):
2681 self.start <= dev['start'] and
2692 fs = self.start
2694 if fs < data.start or fe > data.end:
2698 if(data.dmesg[p]['start'] <= self.start and
2699 self.start < data.dmesg[p]['end']):
2710 (self.name, self.pid, self.start, self.end,
2711 (self.end - self.start)*1000000))
2833 if sortby == 'start':
2834 # sort by start 1st, then length 2nd
2835 sortdict[item] = (-1*float(dev['start']), float(dev['end']) - float(dev['start']))
2838 sortdict[item] = (float(dev['end']) - float(dev['start']), item.dev['name'])
2858 s = dev['start']
2862 rs = ritem.dev['start']
2939 # m0: start time (mode begin)
3219 def start(self):
3222 self.thread.start()
3305 # look for the suspend start marker
3342 if len(cg.list) < 1 or cg.invalid or (cg.end - cg.start == 0):
3349 callstart = cg.start
3352 if(test.data.dmesg[p]['start'] <= callstart and
3358 callstart <= dev['start'] and
3400 # move certain lines to the start or end of a timestamp block
3457 # find the start of suspend
3532 # start of kernel suspend
3537 # suspend_prepare start
3546 # suspend start
3550 # suspend_late start
3554 # suspend_noirq start
3571 t.time - data.dmesg[lp]['start']
3591 # resume_noirq start
3595 # resume_early start
3599 # resume start
3603 # resume complete start
3634 # device callback start
3659 dev['length'] = t.time - dev['start']
3682 # start of kernel resume
3718 sysvals.vprint('WARNING: ftrace start marker is missing')
3727 test.data.dmesg[p]['start'] = test.data.start
3730 test.data.dmesg[p]['start'] = test.data.end
3745 data.dmesg[lp]['end'] = data.dmesg[p]['start']
3752 tlb, tle = data.start, data.end
3754 tle = testruns[i+1].data.start
3800 if len(cg.list) < 1 or cg.invalid or (cg.end - cg.start == 0):
3812 sortkey = '%f%f%d' % (cg.start, cg.end, pid)
3822 sysvals.vprint('Callgraph found for task %d: %.3fms, %s' % (cg.pid, (cg.end - cg.start)*1000, name))
4032 # initialize data start to first line time
4149 # start of first cpu suspend
4152 # start of first cpu resume
4156 # end of a cpu suspend, start of the next
4166 # end of a cpu resume, start of the next
4180 doError('dmesg log format has changed, could not find start of suspend')
4195 data.dmesg[lp]['end'] = data.dmesg[p]['start']
4221 cglen = (cg.end - cg.start) * 1000
4226 flen = fmt % (cglen, cg.start, cg.end)
4309 # write the html header first (html head, css code, up to body start)
4655 tTotal = data.end - data.start
4683 stitle = 'time from kernel suspend start to %s mode [%s time]' % \
4721 t0 = testruns[0].start
4771 if data.dmesg[phase]['start'] >= data.tSuspended:
4780 m0 = data.start
4788 mMax = testruns[1].start
4799 length = phase['end']-phase['start']
4800 left = '%f' % (((phase['start']-m0)*100.0)/mTotal)
4833 left = '%f' % (((dev['start']-m0)*100)/mTotal)
4834 width = '%f' % (((dev['end']-dev['start'])*100)/mTotal)
4835 length = ' (%0.3f ms) ' % ((dev['end']-dev['start'])*1000)
4851 start, end = t
4854 left = '%f' % (((start-m0)*100)/mTotal)
4855 width = '%f' % ((end-start)*100/mTotal)
4912 length = phase['end']-phase['start']
4913 left = '%.3f' % (((phase['start']-t0)*100.0)/tTotal)
4986 # write the html header first (html head, css code, up to body start)
5062 t0 = testruns[0].start * 1000
5315 ' html += " start=<b>"+info[1]+"</b>, end=<b>"+info[2]+"</b>";\n'\
5477 sv.start(pm)
5485 # start message
5499 # start of suspend trace marker
6248 def find_in_html(html, start, end, firstonly=True):
6251 m = re.search(start, html)
6255 list = re.finditer(start, html)
6262 e = s + m.start()
6771 # exec start (skipped if script is loaded as library)