Lines Matching refs:sysvals
205 sysvals = SystemValues() variable
274 sysvals.vprint('Timeline Details:')
275 sysvals.vprint(' Host: %s' % sysvals.hostname)
276 sysvals.vprint(' Kernel: %s' % sysvals.kernel)
277 sysvals.vprint(' Test time: %s' % sysvals.testtime)
278 sysvals.vprint(' Boot time: %s' % self.boottime)
281 sysvals.vprint('%9s mode: %.3f - %.3f (%d initcalls)' % (phase,
291 sysvals.vprint('Analyzing the dmesg data (%s)...' % \
292 os.path.basename(sysvals.dmesgfile))
296 sysvals.stamp = {
298 'host': sysvals.hostname,
303 if(sysvals.dmesgfile):
304 lf = open(sysvals.dmesgfile, 'rb')
334 if(not sysvals.stamp['kernel']):
335 sysvals.stamp['kernel'] = sysvals.kernelVersion(msg)
342 sysvals.stamp['time'] = bt.strftime('%B %d %Y, %I:%M:%S %p')
367 sysvals.stamp = 0
368 tp.parseStamp(data, sysvals)
377 sysvals.vprint('Analyzing the ftrace data (%s)...' % \
378 os.path.basename(sysvals.ftracefile))
381 if len(sysvals.cgfilter) > 0:
384 for i in sysvals.cgfilter:
392 tf = open(sysvals.ftracefile, 'r')
422 ftemp[key].append(aslib.FTraceCallGraph(pid, sysvals))
426 ftemp[key].append(aslib.FTraceCallGraph(pid, sysvals))
447 sysvals.vprint('%s callgraph found for %s %s-%d [%f - %f]' %\
458 if sysvals.useftrace:
459 tracer = sysvals.fgetVal('current_tracer').strip()
463 sysvals.systemInfo(aslib.dmidecode(sysvals.mempath))
464 sysvals.initTestOutput('boot')
465 sysvals.writeDatafileHeader(sysvals.dmesgfile)
466 call('dmesg >> '+sysvals.dmesgfile, shell=True)
467 if not sysvals.useftrace:
470 sysvals.writeDatafileHeader(sysvals.ftracefile)
471 call('cat '+sysvals.tpath+'trace >> '+sysvals.ftracefile, shell=True)
529 devtl.createHeader(sysvals, sysvals.stamp)
630 hf = open(sysvals.htmlfile, 'w')
650 aslib.addCSS(hf, sysvals, 1, False, extra)
680 if(sysvals.usecallgraph):
681 aslib.addCallgraphs(sysvals, hf, data)
684 if sysvals.testlog and sysvals.logmsg:
685 hf.write('<div id="testlog" style="display:none;">\n'+sysvals.logmsg+'</div>\n')
687 if sysvals.dmesglog:
706 sysvals.rootUser(True)
714 cmd = sysvals.getExec('crontab')
734 if not sysvals.myCronJob(line):
738 op.write('@reboot python %s\n' % sysvals.cronjobCmdString())
755 call(sysvals.blexec, stderr=PIPE, stdout=PIPE,
761 sysvals.rootUser(True)
798 cmdline += sysvals.kernelParams()
802 res = call(sysvals.blexec)
817 sysvals.getBootLoader()
818 if sysvals.bootloader == 'grub':
830 sysvals.outputResult({'error':msg})
882 '' % (sysvals.title, sysvals.version))
895 cgskip = sysvals.configFile('cgskip.txt')
903 pprint("Version %s" % sysvals.version)
906 sysvals.verbose = True
910 sysvals.useftrace = True
912 sysvals.useftrace = True
913 sysvals.usecallgraph = True
915 sysvals.cgdump = True
917 sysvals.mincglen = aslib.getArgFloat('-mincg', args, 0.0, 10000.0)
923 sysvals.setCallgraphFilter(val)
932 cgskip = sysvals.configFile(val)
942 sysvals.bootloader = val.lower()
944 sysvals.setPrecision(aslib.getArgInt('-timeprec', args, 0, 6))
947 sysvals.max_graph_depth = aslib.getArgInt('-maxdepth', args, 0, 1000)
953 sysvals.useftrace = True
954 sysvals.usecallgraph = True
955 sysvals.rootCheck(True)
956 sysvals.setGraphFilter(val)
965 sysvals.ftracefile = val
967 sysvals.dmesglog = True
969 sysvals.cgexp = True
978 sysvals.dmesgfile = val
984 sysvals.testdir = sysvals.setOutputFolder(val)
990 sysvals.result = val
992 sysvals.reboot = True
994 sysvals.reboot = True
995 sysvals.manual = True
998 sysvals.iscronjob = True
1004 out = sysvals.getExec(val)
1014 if(sysvals.iscronjob and (sysvals.reboot or \
1015 sysvals.dmesgfile or sysvals.ftracefile or cmd)):
1017 if(sysvals.reboot and (sysvals.dmesgfile or sysvals.ftracefile)):
1019 if cmd or sysvals.reboot or sysvals.iscronjob or testrun:
1020 sysvals.rootCheck(True)
1021 if (testrun and sysvals.useftrace) or cmd == 'flistall':
1022 if not sysvals.verifyFtrace():
1026 sysvals.cpuInfo()
1031 for f in sysvals.getBootFtraceFilterFunctions():
1034 sysvals.getBootLoader()
1035 pprint('Boot Loader: %s\n%s' % (sysvals.bootloader, sysvals.blexec))
1037 sysvals.printSystemInfo(True)
1041 if sysvals.reboot:
1042 if (sysvals.useftrace or sysvals.usecallgraph) and \
1043 not sysvals.checkFtraceKernelVersion():
1045 if not sysvals.manual:
1050 sysvals.manualRebootRequired()
1053 if sysvals.usecallgraph and cgskip:
1054 sysvals.vprint('Using cgskip file: %s' % cgskip)
1055 sysvals.setCallgraphBlacklist(cgskip)
1058 if sysvals.iscronjob:
1062 sysvals.fsetVal('0', 'tracing_on')
1070 sysvals.setOutputFile()
1073 if sysvals.dmesgfile:
1075 sysvals.max_graph_depth = 0
1078 doError('No initcall data found in %s' % sysvals.dmesgfile)
1079 if sysvals.useftrace and sysvals.ftracefile:
1081 if sysvals.cgdump:
1087 sysvals.vprint('Creating the html timeline (%s)...' % sysvals.htmlfile)
1088 sysvals.vprint('Command:\n %s' % sysvals.cmdline)
1089 sysvals.vprint('Kernel parameters:\n %s' % sysvals.kparams)
1094 if testrun and os.path.isdir(sysvals.testdir) and \
1097 call(cmd.format(os.environ['SUDO_USER'], sysvals.testdir), shell=True)
1099 sysvals.stamp['boot'] = (data.tUserMode - data.start) * 1000
1100 sysvals.stamp['lastinit'] = data.end * 1000
1101 sysvals.outputResult(sysvals.stamp)