Lines Matching refs:sv

2307 	def __init__(self, pid, sv):  argument
2318 self.sv = sv
2356 warning = self.sv.verbose and abs(mismatch) > 1
2418 md = self.sv.max_graph_depth
2421 if (md and self.depth >= md - 1) or (line.name in self.sv.cgblacklist):
2430 (line.name in self.sv.cgblacklist):
2477 minicg = FTraceCallGraph(dev['pid'], self.sv)
2526 if self.sv.verbose:
2543 if self.sv.verbose:
2647 def createHeader(self, sv, stamp): argument
2651 % (sv.title, sv.version)
2652 if sv.logmsg and sv.testlog:
2654 if sv.dmesglog:
2656 if sv.ftracelog:
2916 def stampInfo(self, line, sv): argument
2936 self.parseDevprops(line, sv)
2939 self.parsePlatformInfo(line, sv)
2950 def parseStamp(self, data, sv): argument
2971 sv.hostname = data.stamp['host']
2972 sv.suspendmode = data.stamp['mode']
2973 if sv.suspendmode == 'freeze':
2977 if sv.suspendmode == 'command' and sv.ftracefile != '':
2979 fp = sv.openlog(sv.ftracefile, 'r')
2983 sv.suspendmode = modes[int(m.group('mode'))]
2984 data.stamp['mode'] = sv.suspendmode
2987 sv.cmdline = self.cmdline
2988 if not sv.stamp:
2989 sv.stamp = data.stamp
2991 if sv.suspendmode == 'mem' and len(self.fwdata) > data.testnumber:
3029 def parseDevprops(self, line, sv): argument
3034 if sv.suspendmode == 'command' and 'testcommandstring' in props:
3035 sv.testcommand = props['testcommandstring'].altname
3036 sv.devprops = props
3037 def parsePlatformInfo(self, line, sv): argument
3043 sv.devprops = self.devprops(sv.b64unzip(info))
3046 sv.testcommand = info
3052 output = sv.b64unzip(field[1].strip())
3053 sv.platinfo.append([name, cmdline, output])
4040 def callgraphHTML(sv, hf, num, cg, title, color, devid): argument
4050 if cglen < sv.mincglen:
4053 fmt = '<r>(%.3f ms @ '+sv.timeformat+' to '+sv.timeformat+')</r>'
4061 fmt = '<n>(%.3f ms @ '+sv.timeformat+')</n>'
4073 def addCallgraphs(sv, hf, data): argument
4078 if sv.cgphase and p != sv.cgphase:
4082 if len(sv.cgfilter) > 0 and d not in sv.cgfilter:
4091 if(d in sv.devprops):
4092 name = sv.devprops[d].altName(d)
4095 if sv.suspendmode in suspendmodename:
4099 if cg.name == sv.ftopfunc:
4101 num = callgraphHTML(sv, hf, num, cg,
4105 num = callgraphHTML(sv, hf, num, cg,
4788 def addCSS(hf, sv, testcount=1, kerror=False, extra=''): argument
4789 kernel = sv.stamp['kernel']
4790 host = sv.hostname[0].upper()+sv.hostname[1:]
4791 mode = sv.suspendmode
4792 if sv.suspendmode in suspendmodename:
4793 mode = suspendmodename[sv.suspendmode]
4799 if sv.cgexp:
4804 if sv.usedevsrc:
5285 sv, tp, pm = sysvals, sysvals.tpath, ProcessMonitor()
5286 if sv.wifi:
5287 wifi = sv.checkWifi()
5288 sv.dlog('wifi check, connected device is "%s"' % wifi)
5291 if sv.display:
5293 pprint('SET DISPLAY TO %s' % sv.display.upper())
5294 ret = sv.displayControl(sv.display)
5295 sv.dlog('xset display %s, ret = %d' % (sv.display, ret))
5297 if sv.sync:
5300 sv.dlog('syncing filesystems')
5302 sv.dlog('read dmesg')
5303 sv.initdmesg()
5305 if(sv.usecallgraph or sv.usetraceevents):
5308 sv.dlog('start ftrace tracing')
5309 sv.fsetVal('1', 'tracing_on')
5310 if sv.useprocmon:
5311 sv.dlog('start the process monitor')
5313 sv.dlog('run the cmdinfo list before')
5314 sv.cmdinfo(True)
5316 for count in range(1,sv.execcount+1):
5318 if(count > 1 and sv.x2delay > 0):
5319 sv.fsetVal('WAIT %d' % sv.x2delay, 'trace_marker')
5320 time.sleep(sv.x2delay/1000.0)
5321 sv.fsetVal('WAIT END', 'trace_marker')
5323 if sv.testcommand != '':
5326 if(sv.rtcwake):
5331 if(sv.rtcwake):
5333 pprint('will issue an rtcwake in %d seconds' % sv.rtcwaketime)
5334 sv.dlog('enable RTC wake alarm')
5335 sv.rtcWakeAlarmOn()
5337 if(sv.usecallgraph or sv.usetraceevents):
5338 sv.fsetVal(datetime.now().strftime(sv.tmstart), 'trace_marker')
5340 if(count == 1 and sv.predelay > 0):
5341 sv.fsetVal('WAIT %d' % sv.predelay, 'trace_marker')
5342 time.sleep(sv.predelay/1000.0)
5343 sv.fsetVal('WAIT END', 'trace_marker')
5345 sv.dlog('system executing a suspend')
5347 if sv.testcommand != '':
5348 res = call(sv.testcommand+' 2>&1', shell=True);
5352 mode = sv.suspendmode
5353 if sv.memmode and os.path.exists(sv.mempowerfile):
5355 sv.testVal(sv.mempowerfile, 'radio', sv.memmode)
5356 if sv.diskmode and os.path.exists(sv.diskpowerfile):
5358 sv.testVal(sv.diskpowerfile, 'radio', sv.diskmode)
5359 if sv.acpidebug:
5360 sv.testVal(sv.acpipath, 'acpi', '0xe')
5361 if mode == 'freeze' and sv.haveTurbostat():
5363 turbo = sv.turbostat()
5367 pf = open(sv.powerfile, 'w')
5374 sv.dlog('system returned from resume')
5376 sv.testVal('restoreall')
5377 if(sv.rtcwake):
5378 sv.dlog('disable RTC wake alarm')
5379 sv.rtcWakeAlarmOff()
5381 if(count == sv.execcount and sv.postdelay > 0):
5382 sv.fsetVal('WAIT %d' % sv.postdelay, 'trace_marker')
5383 time.sleep(sv.postdelay/1000.0)
5384 sv.fsetVal('WAIT END', 'trace_marker')
5387 if(sv.usecallgraph or sv.usetraceevents):
5388 sv.fsetVal(datetime.now().strftime(sv.tmend), 'trace_marker')
5389 if sv.wifi and wifi:
5390 tdata['wifi'] = sv.pollWifi(wifi)
5391 sv.dlog('wifi check, %s' % tdata['wifi'])
5392 if(sv.suspendmode == 'mem' or sv.suspendmode == 'command'):
5393 sv.dlog('read the ACPI FPDT')
5396 sv.dlog('run the cmdinfo list after')
5397 cmdafter = sv.cmdinfo(False)
5399 if(sv.usecallgraph or sv.usetraceevents):
5400 if sv.useprocmon:
5401 sv.dlog('stop the process monitor')
5403 sv.fsetVal('0', 'tracing_on')
5408 sv.getdmesg(testdata)
5410 if(sv.usecallgraph or sv.usetraceevents):
5413 op = sv.writeDatafileHeader(sv.ftracefile, testdata)
5418 sv.fsetVal('', 'trace')
5419 sv.platforminfo(cmdafter)