def handle_etw_trace(self, etw_file): sea.prepare_environ(self.args) sea_itf = sea.ITT('tools') if sea_itf.can_parse_standard_source(): save = (self.args.input, self.args.output, self.args.trace) (self.args.input, self.args.output, self.args.trace) = (etw_file, etw_file, None) res = get_importers()['etl'](self.args) (self.args.input, self.args.output, self.args.trace) = save else: etw_xml = etw_file + ".xml" proc = subprocess.Popen( 'tracerpt "%s" -of XML -rts -lr -o "%s" -y' % (etw_file, etw_xml), shell=True, stderr=subprocess.PIPE) (out, err) = proc.communicate() if err: return None save = (self.args.input, self.args.output, self.args.trace) (self.args.input, self.args.output, self.args.trace) = (etw_xml, etw_xml, None) res = get_importers()['xml'](self.args) (self.args.input, self.args.output, self.args.trace) = save self.targets += res return res
def time_sync(): sea.ITT('lin').time_sync()
def relog_etl(frm, to): sea.ITT('win').relog(frm, to)