Exemple #1
0
 def parse_cache_common(self, version, start, end, client_id, ramdump):
     client_name = self.dump_data_id_lookup_table[client_id]
     core = client_id & 0xF
     filename = '{0}_0x{1:x}'.format(client_name, core)
     outfile = ramdump.open_file(filename)
     cache_type = lookup_cache_type(ramdump.hw_id, client_id, version)
     try:
         cache_type.parse(start, end, ramdump, outfile)
     except NotImplementedError:
         print_out_str('Cache dumping not supported for %s on this target'
                       % client_name)
     except:
         print_out_str('!!! Unhandled exception while running {0}'.format(client_name))
         print_out_exception()
     outfile.close()
 def parse_cache_common(self, version, start, end, client_id, ramdump):
     client_name = self.dump_data_id_lookup_table[client_id]
     core = client_id & 0xF
     filename = '{0}_0x{1:x}'.format(client_name, core)
     outfile = ramdump.open_file(filename)
     cache_type = lookup_cache_type(ramdump.hw_id, client_id, version)
     try:
         cache_type.parse(start, end, ramdump, outfile)
     except NotImplementedError:
         print_out_str('Cache dumping not supported for %s on this target'
                       % client_name)
     except:
         print_out_str('!!! Unhandled exception while running {0}'.format(client_name))
         print_out_exception()
     outfile.close()
Exemple #3
0
    # we called parser.add_option with dest=p.cls.__name__ above,
    # so if the user passed that option then `options' will have a
    # p.cls.__name__ attribute.
    parsers_to_run = [
        p for p in parser_util.get_parsers()
        if getattr(options, p.cls.__name__) or (
            options.everything and not p.optional)
    ]
    for i, p in enumerate(parsers_to_run):
        if i == 0:
            sys.stderr.write("\n")
        sys.stderr.write("    [%d/%d] %s ... " %
                         (i + 1, len(parsers_to_run), p.longopt))
        before = time.time()
        with print_out_section(p.cls.__name__):
            try:
                p.cls(dump).parse()
            except:
                print_out_str('!!! Exception while running {0}'.format(
                    p.cls.__name__))
                print_out_exception()
                sys.stderr.write("FAILED! ")
        sys.stderr.write("%fs\n" % (time.time() - before))
        sys.stderr.flush()
        flush_outfile()

    sys.stderr.write("\n")

    if options.t32launcher or options.everything:
        dump.create_t32_launcher()
Exemple #4
0
        get_wdog_timing(dump)
        print_out_str('---------- end watchdog time-----')

    # we called parser.add_option with dest=p.cls.__name__ above,
    # so if the user passed that option then `options' will have a
    # p.cls.__name__ attribute.
    parsers_to_run = [p for p in parser_util.get_parsers()
                      if getattr(options, p.cls.__name__)
                      or (options.everything and not p.optional)]
    for i,p in enumerate(parsers_to_run):
        if i == 0:
            sys.stderr.write("\n")
        sys.stderr.write("    [%d/%d] %s ... " %
                         (i + 1, len(parsers_to_run), p.longopt))
        before = time.time()
        with print_out_section(p.cls.__name__):
            try:
                p.cls(dump).parse()
            except:
                print_out_str('!!! Exception while running {0}'.format(p.cls.__name__))
                print_out_exception()
                sys.stderr.write("FAILED! ")
        sys.stderr.write("%fs\n" % (time.time() - before))
        sys.stderr.flush()
        flush_outfile()

    sys.stderr.write("\n")

    if options.t32launcher or options.everything:
        dump.create_t32_launcher()