Lines Matching refs:sysvals

795 			sysvals.printSystemInfo(False)
1184 fp = open(sysvals.mempowerfile, 'r')
1407 sysvals = SystemValues()
1583 if len(self.dmesgtext) < 1 and sysvals.dmesgfile:
1584 lf = sysvals.openlog(sysvals.dmesgfile, 'r')
1590 if tp.stampInfo(line, sysvals):
1612 sysvals.dmesglog = True
1613 if len(self.dmesgtext) < 1 and sysvals.dmesgfile:
1620 self.hwstart = datetime.strptime(msg, sysvals.tmstart)
1627 self.hwend = datetime.strptime(msg, sysvals.tmend)
1695 sysvals.vprint('[%f - %f] %s-%d %s %s %s' % \
1701 dtf = sysvals.dev_tracefuncs
1719 color = sysvals.kprobeColor(kprobename)
1889 sysvals.vprint('WARNING: phase %s failed to end' % self.currphase)
1905 sysvals.vprint('WARNING: %s ended instead of %s, ftrace corruption?' % (phase, self.currphase))
1907 sysvals.vprint('WARNING: %s ended without a start, ftrace corruption?' % phase)
1926 sysvals.vprint('%s (%s): callback didnt return' % (devname, phase))
2042 sysvals.vprint('Timeline Details:')
2043 sysvals.vprint(' test start: %f' % self.start)
2044 sysvals.vprint('kernel suspend start: %f' % self.tKernSus)
2050 sysvals.vprint(' machine suspended: %f' % self.tSuspended)
2053 sysvals.vprint(' machine resumed: %f' % self.tResumed)
2055 sysvals.vprint('%20s: %f - %f (%d devices)' % (phase, ps, pe, dc))
2056 if sysvals.devdump:
2057 sysvals.vprint(''.join('-' for i in range(80)))
2064 sysvals.vprint(fmt % (c, name, s, e))
2066 sysvals.vprint(''.join('-' for i in range(80)))
2067 sysvals.vprint(' kernel resume end: %f' % self.tKernRes)
2068 sysvals.vprint(' test end: %f' % self.end)
2190 sysvals.vprint('Process Execution:')
2290 dt <= sysvals.callloopmaxgap and \
2291 self.length < sysvals.callloopmaxlen:
2405 if sysvals.usetracemarkers:
2418 if sysvals.usetracemarkers:
3237 sysvals.fsetVal('ps - @%d|%s' % (len(out), line), 'trace_marker')
3239 sysvals.fsetVal('ps - %s' % out[0], 'trace_marker')
3260 sysvals.usekprobes = False
3261 fp = sysvals.openlog(sysvals.ftracefile, 'r')
3264 if not sysvals.usekprobes:
3267 sysvals.usekprobes = True
3281 sysvals.usetraceevents = True if len(techeck) < 3 else False
3282 sysvals.usetracemarkers = True if len(tmcheck) == 0 else False
3299 sysvals.vprint('Analyzing the ftrace data (%s)...' % \
3300 os.path.basename(sysvals.ftracefile))
3302 tf = sysvals.openlog(sysvals.ftracefile, 'r')
3307 if tp.stampInfo(line, sysvals):
3332 tp.parseStamp(data, sysvals)
3348 elif sysvals.usecallgraph:
3352 testrun[testidx].ftemp[pid].append(FTraceCallGraph(pid, sysvals))
3357 testrun[testidx].ftemp[pid].append(FTraceCallGraph(pid, sysvals))
3370 sysvals.vprint('Sanity check failed for '+\
3394 tf = sysvals.openlog(sysvals.ftracefile, 'r')
3398 if tp.stampInfo(line, sysvals):
3447 # The ftrace filename is taken from sysvals
3451 sysvals.vprint('Analyzing the ftrace data (%s)...' % \
3452 os.path.basename(sysvals.ftracefile))
3453 if(os.path.exists(sysvals.ftracefile) == False):
3454 doError('%s does not exist' % sysvals.ftracefile)
3456 sysvals.setupAllKprobes()
3460 if sysvals.usekprobes:
3487 tp.parseStamp(data, sysvals)
3529 if(not sysvals.usetracemarkers):
3608 if(sysvals.suspendmode in ['mem', 'disk']):
3693 displayname = sysvals.kprobeDisplayName(kprobename, kprobedata)
3716 if (t.time - e['begin']) * 1000 < sysvals.mindevlen:
3728 elif sysvals.usecallgraph:
3733 testrun.ftemp[key].append(FTraceCallGraph(pid, sysvals))
3738 testrun.ftemp[key].append(FTraceCallGraph(pid, sysvals))
3742 sysvals.vprint('WARNING: ftrace start marker is missing')
3744 sysvals.vprint('WARNING: ftrace end marker is missing')
3747 if sysvals.suspendmode == 'command':
3761 if sysvals.usedevsrc or sysvals.useprocmon:
3762 sysvals.mixedphaseheight = False
3780 if sysvals.useprocmon:
3783 if(sysvals.usetraceevents):
3796 if name not in sysvals.tracefuncs:
3804 color = sysvals.kprobeColor(name)
3807 if sysvals.usedevsrc:
3810 if name in sysvals.tracefuncs or name not in sysvals.dev_tracefuncs:
3818 if sysvals.usecallgraph:
3828 sysvals.vprint('Sanity check failed for '+\
3833 if sysvals.suspendmode != 'command':
3838 elif len(cg.list) > 1000000 and cg.name != sysvals.ftopfunc:
3839 sysvals.vprint('WARNING: the callgraph for %s is massive (%d lines)' %\
3845 if sysvals.isCallgraphFunc(name):
3846 sysvals.vprint('Callgraph found for task %d: %.3fms, %s' % (cg.pid, (cg.end - cg.start)*1000, name))
3848 if sysvals.suspendmode == 'command':
3863 sm = sysvals.suspendmode
3868 terr = '%s%s failed in %s phase' % (sysvals.suspendmode, tn, ph)
3876 sysvals.vprint('WARNING: phase "%s" is missing!' % p)
3880 (sysvals.suspendmode, tn, data.wifi['dev'], data.wifi['time'])
3883 pprint('test%s FAILED: enter %s failed with %s' % (tn, sysvals.suspendmode, data.enterfail))
3884 terr = 'test%s failed to enter %s mode' % (tn, sysvals.suspendmode)
3891 if(len(sysvals.devicefilter) > 0):
3892 data.deviceFilter(sysvals.devicefilter)
3894 if sysvals.usedevsrc:
3898 if sysvals.usedevsrc and len(testdata) > 1:
3913 sysvals.vprint('Analyzing the dmesg data (%s)...' % \
3914 os.path.basename(sysvals.dmesgfile))
3915 if(os.path.exists(sysvals.dmesgfile) == False):
3916 doError('%s does not exist' % sysvals.dmesgfile)
3923 lf = sysvals.openlog(sysvals.dmesgfile, 'r')
3929 if tp.stampInfo(line, sysvals):
3940 tp.parseStamp(data, sysvals)
3945 sysvals.stamp['kernel'] = m.group('k')
3950 sysvals.stamp['mode'] = sysvals.suspendmode = m.group('m')
3954 if sysvals.suspendmode == 's2idle':
3955 sysvals.suspendmode = 'freeze'
3956 elif sysvals.suspendmode == 'deep':
3957 sysvals.suspendmode = 'mem'
3962 % sysvals.dmesgfile)
3993 sysvals.vprint('Firmware Suspend = %u ns, Firmware Resume = %u ns' % \
4073 if(not sysvals.usetraceevents and sysvals.suspendmode == 'freeze' \
4107 if(sysvals.suspendmode in ['freeze', 'standby']):
4162 if(not sysvals.usetraceevents):
4208 pprint('TEST FAILED: %s failed in %s phase' % (sysvals.suspendmode, lp))
4209 terr = '%s failed in %s phase' % (sysvals.suspendmode, lp)
4214 sysvals.vprint('WARNING: phase "%s" is missing!' % p)
4231 if(len(sysvals.devicefilter) > 0):
4232 data.deviceFilter(sysvals.devicefilter)
4640 if(sysvals.suspendmode in ['freeze', 'standby']):
4655 '<td class="gray" title="time spent in low-power mode with clock running">'+sysvals.suspendmode+' time: <b>{1} ms</b></td>'\
4676 devtl.createHeader(sysvals, testruns[0].stamp)
4683 if sysvals.suspendmode == 'command':
4685 if sysvals.testcommand:
4686 testdesc = sysvals.testcommand
4709 (sysvals.suspendmode, ' & '.join(ssrc))
4711 (sysvals.suspendmode, ' & '.join(rsrc))
4756 data.selectTimelineDevices('%f', tTotal, sysvals.mindevlen)
4771 if sysvals.mixedphaseheight:
4773 if not sysvals.mixedphaseheight:
4791 devtl.createZoomBox(sysvals.suspendmode, len(testruns))
4814 left = '%f' % ((((m0-t0)*100.0)+sysvals.srgap/2)/tTotal)
4819 width = '%f' % (((mTotal*100.0)-sysvals.srgap/2)/tTotal)
4847 if(d in sysvals.devprops):
4848 name = sysvals.devprops[d].altName(d)
4849 xtraclass = sysvals.devprops[d].xtraClass()
4850 xtrainfo = sysvals.devprops[d].xtraInfo()
4862 if sysvals.suspendmode == 'command':
4863 title += sysvals.testcommand
4908 if sysvals.suspendmode != 'command':
4922 hf = open(sysvals.htmlfile, 'w')
4923 addCSS(hf, sysvals, len(testruns), kerror)
4944 if sysvals.suspendmode == 'command':
4950 if sysvals.cgtest >= 0 and len(testruns) > sysvals.cgtest:
4951 data = testruns[sysvals.cgtest]
4954 if sysvals.usecallgraph:
4955 addCallgraphs(sysvals, hf, data)
4958 if sysvals.testlog and sysvals.logmsg:
4959 hf.write('<div id="testlog" style="display:none;">\n'+sysvals.logmsg+'</div>\n')
4961 if sysvals.dmesglog and sysvals.dmesgfile:
4963 lf = sysvals.openlog(sysvals.dmesgfile, 'r')
4970 if sysvals.ftracelog and sysvals.ftracefile:
4972 lf = sysvals.openlog(sysvals.ftracefile, 'r')
5485 sv, tp, pm = sysvals, sysvals.tpath, ProcessMonitor()
5623 return sysvals.getVal(file).strip()
5651 # a list of USB device names to sysvals for better timeline readability
5714 if(os.path.exists(sysvals.powerfile)):
5715 fp = open(sysvals.powerfile, 'r')
5718 if(os.path.exists(sysvals.mempowerfile)):
5720 fp = open(sysvals.mempowerfile, 'r')
5730 if('disk' in modes and os.path.exists(sysvals.diskpowerfile)):
5731 fp = open(sysvals.diskpowerfile, 'r')
5756 val = sysvals.getVal(os.path.join(spath, info[key])).strip()
5768 (sysvals.mempath, spath))
5888 sysvals.rootCheck(True)
5889 if(not os.path.exists(sysvals.fpdtpath)):
5891 doError('file does not exist: %s' % sysvals.fpdtpath)
5893 if(not os.access(sysvals.fpdtpath, os.R_OK)):
5895 doError('file is not readable: %s' % sysvals.fpdtpath)
5897 if(not os.path.exists(sysvals.mempath)):
5899 doError('file does not exist: %s' % sysvals.mempath)
5901 if(not os.access(sysvals.mempath, os.R_OK)):
5903 doError('file is not readable: %s' % sysvals.mempath)
5906 fp = open(sysvals.fpdtpath, 'rb')
5943 fp = open(sysvals.mempath, 'rb')
5961 pprint('Bad address 0x%x in %s' % (addr, sysvals.mempath))
6024 res = sysvals.colorText('NO (No features of this tool will work!)')
6025 if(sysvals.rootCheck(False)):
6033 res = sysvals.colorText('NO (No features of this tool will work!)')
6034 if(os.path.exists(sysvals.powerfile)):
6041 if sysvals.suspendmode != 'command':
6042 res = sysvals.colorText('NO')
6044 if(sysvals.suspendmode in modes):
6047 status = '%s mode is not supported' % sysvals.suspendmode
6048 pprint(' is "%s" a valid power mode: %s' % (sysvals.suspendmode, res))
6054 if sysvals.useftrace:
6055 res = sysvals.colorText('NO')
6056 sysvals.useftrace = sysvals.verifyFtrace()
6058 if sysvals.useftrace:
6060 elif sysvals.usecallgraph:
6062 elif sysvals.usedevsrc:
6064 elif sysvals.useprocmon:
6069 if sysvals.usekprobes:
6070 res = sysvals.colorText('NO')
6071 sysvals.usekprobes = sysvals.verifyKprobes()
6072 if(sysvals.usekprobes):
6075 sysvals.usedevsrc = False
6080 if sysvals.useftrace:
6081 sysvals.usetraceevents = True
6082 for e in sysvals.traceevents:
6083 if not os.path.exists(sysvals.epath+e):
6084 sysvals.usetraceevents = False
6085 if(sysvals.usetraceevents):
6090 res = sysvals.colorText('NO')
6091 if(sysvals.rtcpath != ''):
6093 elif(sysvals.rtcwake):
6099 no = sysvals.colorText('MISSING')
6100 yes = sysvals.colorText('FOUND', 32)
6103 res = yes if sysvals.haveTurbostat() else no
6105 res = yes if sysvals.getExec(c) else no
6112 if sysvals.usekprobes:
6113 for name in sysvals.tracefuncs:
6114 sysvals.defaultKprobe(name, sysvals.tracefuncs[name])
6115 if sysvals.usedevsrc:
6116 for name in sysvals.dev_tracefuncs:
6117 sysvals.defaultKprobe(name, sysvals.dev_tracefuncs[name])
6118 sysvals.addKprobes(True)
6132 sysvals.outputResult({'error':msg})
6175 pprint('PROCESSING: %s' % sysvals.htmlfile)
6176 sysvals.vprint('usetraceevents=%s, usetracemarkers=%s, usekprobes=%s' % \
6177 (sysvals.usetraceevents, sysvals.usetracemarkers, sysvals.usekprobes))
6179 if(sysvals.usetraceevents):
6181 if sysvals.dmesgfile:
6188 if(sysvals.ftracefile and (sysvals.usecallgraph or sysvals.usetraceevents)):
6190 if not sysvals.stamp:
6195 sysvals.vprint('System Info:')
6196 for key in sorted(sysvals.stamp):
6198 sysvals.vprint(' %-8s : %s' % (key.upper(), sysvals.stamp[key]))
6199 sysvals.vprint('Command:\n %s' % sysvals.cmdline)
6209 sysvals.vprint(s)
6211 if len(sysvals.platinfo) > 0:
6212 sysvals.vprint('\nPlatform Info:')
6213 for info in sysvals.platinfo:
6214 sysvals.vprint('[%s - %s]' % (info[0], info[1]))
6215 sysvals.vprint(info[2])
6216 sysvals.vprint('')
6217 if sysvals.cgdump:
6224 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
6227 pprint('DONE: %s' % sysvals.htmlfile)
6241 if sysvals.ftracefile:
6243 if not sysvals.dmesgfile and not sysvals.usetraceevents:
6246 sysvals.htmlfile = htmlfile
6248 sysvals.setOutputFile()
6249 if os.path.exists(sysvals.htmlfile):
6250 if not os.path.isfile(sysvals.htmlfile):
6251 doError('a directory already exists with this name: %s' % sysvals.htmlfile)
6252 elif not os.access(sysvals.htmlfile, os.W_OK):
6253 doError('missing permission to write to %s' % sysvals.htmlfile)
6255 sysvals.resetlog()
6263 sysvals.initTestOutput('suspend')
6264 op = sysvals.writeDatafileHeader(sysvals.dmesgfile, [])
6268 if sysvals.rs != 0:
6269 sysvals.dlog('%sabling runtime suspend' % ('en' if sysvals.rs > 0 else 'dis'))
6270 sysvals.setRuntimeSuspend(True)
6271 if sysvals.display:
6272 ret = sysvals.displayControl('init')
6273 sysvals.dlog('xset display init, ret = %d' % ret)
6274 sysvals.testVal(sysvals.pmdpath, 'basic', '1')
6275 sysvals.testVal(sysvals.s0ixpath, 'basic', 'Y')
6276 sysvals.dlog('initialize ftrace')
6277 sysvals.initFtrace(quiet)
6281 sysvals.cleanupFtrace()
6282 if sysvals.skiphtml:
6283 sysvals.outputResult({}, n)
6284 sysvals.sudoUserchown(sysvals.testdir)
6289 sysvals.sudoUserchown(sysvals.testdir)
6290 sysvals.outputResult(stamp, n)
6326 sysvals.htmlfile = os.path.relpath(file, outpath)
6339 sysvals.hostname = stmp[0]
6362 sysvals.errorSummary(issues, msg)
6398 if sysvals.hostname not in match[0]['urls']:
6399 match[0]['urls'][sysvals.hostname] = [sysvals.htmlfile]
6400 elif sysvals.htmlfile not in match[0]['urls'][sysvals.hostname]:
6401 match[0]['urls'][sysvals.hostname].append(sysvals.htmlfile)
6405 'urls': {sysvals.hostname: [sysvals.htmlfile]},
6456 'url': sysvals.htmlfile,
6471 sysvals.dmesgfile = sysvals.ftracefile = sysvals.htmlfile = ''
6474 if sysvals.usable(file):
6476 sysvals.dmesgfile = file
6478 sysvals.ftracefile = file
6479 sysvals.setOutputFile()
6480 if (sysvals.dmesgfile or sysvals.ftracefile) and sysvals.htmlfile and \
6481 (force or not sysvals.usable(sysvals.htmlfile, True)):
6482 pprint('FTRACE: %s' % sysvals.ftracefile)
6483 if sysvals.dmesgfile:
6484 pprint('DMESG : %s' % sysvals.dmesgfile)
6551 sysvals.verbose = checkArgBool(option, value)
6553 sysvals.dmesglog = sysvals.ftracelog = checkArgBool(option, value)
6555 sysvals.usedevsrc = checkArgBool(option, value)
6557 sysvals.useprocmon = checkArgBool(option, value)
6560 sysvals.execcount = 2
6562 sysvals.usecallgraph = checkArgBool(option, value)
6568 sysvals.skiphtml = checkArgBool(option, value)
6570 sysvals.sync = checkArgBool(option, value)
6574 sysvals.rs = -1
6576 sysvals.rs = 1
6583 sysvals.display = value
6585 sysvals.gzip = checkArgBool(option, value)
6587 sysvals.setCallgraphFilter(value)
6590 sysvals.cgskip = ''
6592 sysvals.cgskip = sysvals.configFile(val)
6593 if(not sysvals.cgskip):
6594 doError('%s does not exist' % sysvals.cgskip)
6596 sysvals.cgtest = getArgInt('cgtest', value, 0, 1, False)
6602 sysvals.cgphase = value
6604 file = sysvals.configFile(value)
6607 sysvals.addFtraceFilterFunctions(file)
6609 sysvals.result = value
6614 sysvals.multiinit(nums[0], nums[1])
6616 sysvals.setDeviceFilter(value)
6618 sysvals.cgexp = checkArgBool(option, value)
6621 sysvals.srgap = 5
6623 sysvals.suspendmode = value
6625 sysvals.testcommand = value
6627 sysvals.x2delay = getArgInt('x2delay', value, 0, 60000, False)
6629 sysvals.predelay = getArgInt('predelay', value, 0, 60000, False)
6631 sysvals.postdelay = getArgInt('postdelay', value, 0, 60000, False)
6633 sysvals.max_graph_depth = getArgInt('maxdepth', value, 0, 1000, False)
6636 sysvals.rtcwake = False
6638 sysvals.rtcwake = True
6639 sysvals.rtcwaketime = getArgInt('rtcwake', value, 0, 3600, False)
6641 sysvals.setPrecision(getArgInt('timeprec', value, 0, 6, False))
6643 sysvals.mindevlen = getArgFloat('mindev', value, 0.0, 10000.0, False)
6645 sysvals.callloopmaxgap = getArgFloat('callloop-maxgap', value, 0.0, 1.0, False)
6647 sysvals.callloopmaxgap = getArgFloat('callloop-maxlen', value, 0.0, 1.0, False)
6649 sysvals.mincglen = getArgFloat('mincg', value, 0.0, 10000.0, False)
6651 sysvals.bufsize = getArgInt('bufsize', value, 1, 1024*1024*8, False)
6653 sysvals.outdir = sysvals.setOutputFolder(value)
6655 if sysvals.suspendmode == 'command' and not sysvals.testcommand:
6659 if sysvals.usedevsrc and sysvals.usecallgraph:
6661 if sysvals.usecallgraph and sysvals.useprocmon:
6665 sysvals.tracefuncs = dict()
6667 sysvals.dev_tracefuncs = dict()
6716 if (dev and name in sysvals.dev_tracefuncs) or (not dev and name in sysvals.tracefuncs):
6723 sysvals.archargs: args
6728 sysvals.dev_tracefuncs[name] = kp
6730 sysvals.tracefuncs[name] = kp
6824 '' % (sysvals.title, sysvals.version, sysvals.suspendmode, sysvals.ftopfunc))
6836 sysvals.cgskip = sysvals.configFile('cgskip.txt')
6845 if val == 'command' and not sysvals.testcommand:
6847 sysvals.suspendmode = val
6854 pprint("Version %s" % sysvals.version)
6859 sysvals.execcount = 2
6861 sysvals.x2delay = getArgInt('-x2delay', args, 0, 60000)
6863 sysvals.predelay = getArgInt('-predelay', args, 0, 60000)
6865 sysvals.postdelay = getArgInt('-postdelay', args, 0, 60000)
6867 sysvals.usecallgraph = True
6869 sysvals.usecallgraph = True
6870 sysvals.ftop = True
6871 sysvals.usekprobes = False
6873 sysvals.skiphtml = True
6875 sysvals.cgdump = True
6877 sysvals.devdump = True
6881 sysvals.dmesglog = sysvals.ftracelog = True
6883 sysvals.dmesglog = sysvals.ftracelog = False
6885 sysvals.dmesglog = True
6887 sysvals.ftracelog = True
6889 sysvals.tstat = False
6891 sysvals.verbose = True
6893 sysvals.useprocmon = True
6895 sysvals.usedevsrc = True
6897 sysvals.sync = True
6899 sysvals.wifi = True
6901 sysvals.wifitrace = True
6903 sysvals.netfix = True
6905 sysvals.gzip = True
6923 sysvals.rs = -1
6925 sysvals.rs = 1
6936 sysvals.display = val.lower()
6938 sysvals.max_graph_depth = getArgInt('-maxdepth', args, 0, 1000)
6945 sysvals.rtcwake = False
6947 sysvals.rtcwake = True
6948 sysvals.rtcwaketime = getArgInt('-rtcwake', val, 0, 3600, False)
6950 sysvals.setPrecision(getArgInt('-timeprec', args, 0, 6))
6952 sysvals.mindevlen = getArgFloat('-mindev', args, 0.0, 10000.0)
6954 sysvals.mincglen = getArgFloat('-mincg', args, 0.0, 10000.0)
6956 sysvals.bufsize = getArgInt('-bufsize', args, 1, 1024*1024*8)
6958 sysvals.cgtest = getArgInt('-cgtest', args, 0, 1)
6968 sysvals.cgphase = val
6974 sysvals.setCallgraphFilter(val)
6980 sysvals.skipKprobes(val)
6987 sysvals.cgskip = ''
6989 sysvals.cgskip = sysvals.configFile(val)
6990 if(not sysvals.cgskip):
6991 doError('%s does not exist' % sysvals.cgskip)
6993 sysvals.callloopmaxgap = getArgFloat('-callloop-maxgap', args, 0.0, 1.0)
6995 sysvals.callloopmaxlen = getArgFloat('-callloop-maxlen', args, 0.0, 1.0)
7001 sysvals.testcommand = val
7002 sysvals.suspendmode = 'command'
7004 sysvals.cgexp = True
7006 sysvals.srgap = 5
7008 sysvals.maxfail = getArgInt('-maxfail', args, 0, 1000000)
7014 sysvals.multiinit(c, d)
7020 sysvals.outdir = sysvals.setOutputFolder(val)
7026 file = sysvals.configFile(val)
7035 file = sysvals.configFile(val)
7038 sysvals.addFtraceFilterFunctions(file)
7044 sysvals.notestrun = True
7045 sysvals.dmesgfile = val
7046 if(os.path.exists(sysvals.dmesgfile) == False):
7047 doError('%s does not exist' % sysvals.dmesgfile)
7053 sysvals.notestrun = True
7054 sysvals.ftracefile = val
7055 if(os.path.exists(sysvals.ftracefile) == False):
7056 doError('%s does not exist' % sysvals.ftracefile)
7063 sysvals.outdir = val
7064 sysvals.notestrun = True
7072 sysvals.setDeviceFilter(val)
7078 sysvals.result = val
7083 if(sysvals.usecallgraph and sysvals.usedevsrc):
7085 if(sysvals.usecallgraph and sysvals.useprocmon):
7088 sysvals.signalHandlerInit()
7089 if sysvals.usecallgraph and sysvals.cgskip:
7090 sysvals.vprint('Using cgskip file: %s' % sysvals.cgskip)
7091 sysvals.setCallgraphBlacklist(sysvals.cgskip)
7094 if sysvals.mincglen < sysvals.mindevlen:
7095 sysvals.mincglen = sysvals.mindevlen
7098 if(sysvals.usecallgraph or sysvals.usedevsrc):
7099 sysvals.fsetVal('16', 'buffer_size_kb')
7100 sysvals.cpuInfo()
7112 sysvals.printSystemInfo(True)
7118 sysvals.getFtraceFilterFunctions(True)
7120 sysvals.getFtraceFilterFunctions(False)
7122 runSummary(sysvals.outdir, True, genhtml)
7124 sysvals.verbose = True
7125 ret = sysvals.displayControl(cmd[1:])
7127 pprint('Display Status: %s' % sysvals.displayControl('stat').upper())
7129 dev = sysvals.checkWifi()
7131 print('%s is connected' % sysvals.wifiDetails(dev))
7135 for out in sysvals.cmdinfo(False, True):
7140 if(sysvals.notestrun):
7141 stamp = rerunTest(sysvals.outdir)
7142 sysvals.outputResult(stamp)
7151 mode = sysvals.suspendmode
7160 sysvals.memmode = memmode
7161 sysvals.suspendmode = mode
7163 sysvals.diskmode = mode.split('-', 1)[-1]
7164 sysvals.suspendmode = 'disk'
7165 sysvals.systemInfo(dmidecode(sysvals.mempath))
7168 if sysvals.multitest['run']:
7170 if not sysvals.outdir:
7171 if 'time' in sysvals.multitest:
7172 s = '-%dm' % sysvals.multitest['time']
7174 s = '-x%d' % sysvals.multitest['count']
7175 sysvals.outdir = datetime.now().strftime('suspend-%y%m%d-%H%M%S'+s)
7176 if not os.path.isdir(sysvals.outdir):
7177 os.makedirs(sysvals.outdir)
7178 sysvals.sudoUserchown(sysvals.outdir)
7180 if 'time' in sysvals.multitest:
7181 finish += timedelta(minutes=sysvals.multitest['time'])
7182 for i in range(sysvals.multitest['count']):
7183 sysvals.multistat(True, i, finish)
7184 if i != 0 and sysvals.multitest['delay'] > 0:
7185 pprint('Waiting %d seconds...' % (sysvals.multitest['delay']))
7186 time.sleep(sysvals.multitest['delay'])
7188 sysvals.testdir = os.path.join(sysvals.outdir, datetime.now().strftime(fmt))
7189 ret = runTest(i+1, not sysvals.verbose)
7191 if sysvals.maxfail > 0 and failcnt >= sysvals.maxfail:
7192 pprint('Maximum fail count of %d reached, aborting multitest' % (sysvals.maxfail))
7194 sysvals.resetlog()
7195 sysvals.multistat(False, i, finish)
7196 if 'time' in sysvals.multitest and datetime.now() >= finish:
7198 if not sysvals.skiphtml:
7199 runSummary(sysvals.outdir, False, False)
7200 sysvals.sudoUserchown(sysvals.outdir)
7202 if sysvals.outdir:
7203 sysvals.testdir = sysvals.outdir
7208 if sysvals.display:
7209 sysvals.displayControl('reset')
7210 if sysvals.rs != 0:
7211 sysvals.setRuntimeSuspend(False)