Lines Matching refs:sv

2104 	def __init__(self, pid, sv):  argument
2115 self.sv = sv
2153 warning = self.sv.verbose and abs(mismatch) > 1
2215 md = self.sv.max_graph_depth
2218 if (md and self.depth >= md - 1) or (line.name in self.sv.cgblacklist):
2227 (line.name in self.sv.cgblacklist):
2274 minicg = FTraceCallGraph(dev['pid'], self.sv)
2323 if self.sv.verbose:
2340 if self.sv.verbose:
2444 def createHeader(self, sv, stamp): argument
2448 % (sv.title, sv.version)
2449 if sv.logmsg and sv.testlog:
2451 if sv.dmesglog:
2453 if sv.ftracelog:
2749 def parseStamp(self, data, sv): argument
2768 sv.hostname = data.stamp['host']
2769 sv.suspendmode = data.stamp['mode']
2770 if sv.suspendmode == 'command' and sv.ftracefile != '':
2772 fp = sysvals.openlog(sv.ftracefile, 'r')
2776 sv.suspendmode = modes[int(m.group('mode'))]
2777 data.stamp['mode'] = sv.suspendmode
2782 sv.cmdline = m.group('cmd')
2786 sv.kparams = m.group('kp')
2787 if not sv.stamp:
2788 sv.stamp = data.stamp
2790 if sv.suspendmode == 'mem' and len(self.fwdata) > data.testnumber:
2800 data.mcelog = sv.b64unzip(m.group('m'))
2836 def parseDevprops(self, line, sv): argument
2841 if sv.suspendmode == 'command' and 'testcommandstring' in props:
2842 sv.testcommand = props['testcommandstring'].altname
2843 sv.devprops = props
2844 def parsePlatformInfo(self, line, sv): argument
2850 sv.devprops = self.devprops(sv.b64unzip(info))
2853 sv.testcommand = info
2859 output = sv.b64unzip(field[1].strip())
2860 sv.platinfo.append([name, cmdline, output])
3835 def callgraphHTML(sv, hf, num, cg, title, color, devid): argument
3845 if cglen < sv.mincglen:
3848 fmt = '<r>(%.3f ms @ '+sv.timeformat+' to '+sv.timeformat+')</r>'
3856 fmt = '<n>(%.3f ms @ '+sv.timeformat+')</n>'
3868 def addCallgraphs(sv, hf, data): argument
3873 if sv.cgphase and p != sv.cgphase:
3877 if len(sv.cgfilter) > 0 and devname not in sv.cgfilter:
3886 if(devname in sv.devprops):
3887 name = sv.devprops[devname].altName(devname)
3888 if sv.suspendmode in suspendmodename:
3892 if cg.name == sv.ftopfunc:
3894 num = callgraphHTML(sv, hf, num, cg,
3898 num = callgraphHTML(sv, hf, num, cg,
4565 def addCSS(hf, sv, testcount=1, kerror=False, extra=''): argument
4566 kernel = sv.stamp['kernel']
4567 host = sv.hostname[0].upper()+sv.hostname[1:]
4568 mode = sv.suspendmode
4569 if sv.suspendmode in suspendmodename:
4570 mode = suspendmodename[sv.suspendmode]
4576 if sv.cgexp:
4581 if sv.usedevsrc:
5059 sv = sysvals
5060 if sv.rs == 0:
5064 if sv.rs > 0:
5065 sv.rstgt, sv.rsval, sv.rsdir = 'on', 'auto', 'enabled'
5067 sv.rstgt, sv.rsval, sv.rsdir = 'auto', 'on', 'disabled'
5069 sv.rslist = deviceInfo(sv.rstgt)
5070 for i in sv.rslist:
5071 sv.setVal(sv.rsval, i)
5072 pprint('runtime suspend %s on all devices (%d changed)' % (sv.rsdir, len(sv.rslist)))
5077 for i in sv.rslist:
5078 sv.setVal(sv.rstgt, i)
5079 pprint('runtime suspend settings restored on %d devices' % len(sv.rslist))