• Home
  • Raw
  • Download

Lines Matching refs:sv

2225 	def __init__(self, pid, sv):  argument
2236 self.sv = sv
2274 warning = self.sv.verbose and abs(mismatch) > 1
2336 md = self.sv.max_graph_depth
2339 if (md and self.depth >= md - 1) or (line.name in self.sv.cgblacklist):
2348 (line.name in self.sv.cgblacklist):
2395 minicg = FTraceCallGraph(dev['pid'], self.sv)
2444 if self.sv.verbose:
2461 if self.sv.verbose:
2565 def createHeader(self, sv, stamp): argument
2569 % (sv.title, sv.version)
2570 if sv.logmsg and sv.testlog:
2572 if sv.dmesglog:
2574 if sv.ftracelog:
2834 def stampInfo(self, line, sv): argument
2854 self.parseDevprops(line, sv)
2857 self.parsePlatformInfo(line, sv)
2868 def parseStamp(self, data, sv): argument
2889 sv.hostname = data.stamp['host']
2890 sv.suspendmode = data.stamp['mode']
2891 if sv.suspendmode == 'freeze':
2895 if sv.suspendmode == 'command' and sv.ftracefile != '':
2897 fp = sv.openlog(sv.ftracefile, 'r')
2901 sv.suspendmode = modes[int(m.group('mode'))]
2902 data.stamp['mode'] = sv.suspendmode
2905 sv.cmdline = self.cmdline
2906 if not sv.stamp:
2907 sv.stamp = data.stamp
2909 if sv.suspendmode == 'mem' and len(self.fwdata) > data.testnumber:
2947 def parseDevprops(self, line, sv): argument
2952 if sv.suspendmode == 'command' and 'testcommandstring' in props:
2953 sv.testcommand = props['testcommandstring'].altname
2954 sv.devprops = props
2955 def parsePlatformInfo(self, line, sv): argument
2961 sv.devprops = self.devprops(sv.b64unzip(info))
2964 sv.testcommand = info
2970 output = sv.b64unzip(field[1].strip())
2971 sv.platinfo.append([name, cmdline, output])
3957 def callgraphHTML(sv, hf, num, cg, title, color, devid): argument
3967 if cglen < sv.mincglen:
3970 fmt = '<r>(%.3f ms @ '+sv.timeformat+' to '+sv.timeformat+')</r>'
3978 fmt = '<n>(%.3f ms @ '+sv.timeformat+')</n>'
3990 def addCallgraphs(sv, hf, data): argument
3995 if sv.cgphase and p != sv.cgphase:
3999 if len(sv.cgfilter) > 0 and d not in sv.cgfilter:
4008 if(d in sv.devprops):
4009 name = sv.devprops[d].altName(d)
4012 if sv.suspendmode in suspendmodename:
4016 if cg.name == sv.ftopfunc:
4018 num = callgraphHTML(sv, hf, num, cg,
4022 num = callgraphHTML(sv, hf, num, cg,
4705 def addCSS(hf, sv, testcount=1, kerror=False, extra=''): argument
4706 kernel = sv.stamp['kernel']
4707 host = sv.hostname[0].upper()+sv.hostname[1:]
4708 mode = sv.suspendmode
4709 if sv.suspendmode in suspendmodename:
4710 mode = suspendmodename[sv.suspendmode]
4716 if sv.cgexp:
4721 if sv.usedevsrc:
5199 sv = sysvals
5200 if sv.rs == 0:
5204 if sv.rs > 0:
5205 sv.rstgt, sv.rsval, sv.rsdir = 'on', 'auto', 'enabled'
5207 sv.rstgt, sv.rsval, sv.rsdir = 'auto', 'on', 'disabled'
5209 sv.rslist = deviceInfo(sv.rstgt)
5210 for i in sv.rslist:
5211 sv.setVal(sv.rsval, i)
5212 pprint('runtime suspend %s on all devices (%d changed)' % (sv.rsdir, len(sv.rslist)))
5217 for i in sv.rslist:
5218 sv.setVal(sv.rstgt, i)
5219 pprint('runtime suspend settings restored on %d devices' % len(sv.rslist))