Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
def time_sync():
    sea.ITT('lin').time_sync()
Ejemplo n.º 3
0
def relog_etl(frm, to):
    sea.ITT('win').relog(frm, to)