ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
Classes | |
class | MemRange |
Functions | |
def | parseElf (inFile) |
def | printSz (sz, unknown_msg="") |
Variables | |
int | DEFAULT_RAM_START = 0x80000 |
int | DEFAULT_RAM_SIZE = 0x80000 |
int | DEFAULT_STACK_SIZE = 0x4000 |
parser = argparse.ArgumentParser() | |
metavar | |
type | |
str | |
nargs | |
help | |
default | |
args = parser.parse_args() | |
elfFile = args.elf[0] | |
traceFile = args.trace | |
memIni = args.ini | |
csvFile = args.out | |
int | ramStart = DEFAULT_RAM_START |
int | ramSize = DEFAULT_RAM_SIZE |
int | stackSize = DEFAULT_STACK_SIZE |
config = configparser.ConfigParser() | |
cfg = config["IntConfigurations"] | |
staticSizes | |
heapStart | |
d = MemRange("Data", ramStart, heapStart) | |
h = MemRange("Heap", heapStart, ramStart + ramSize - stackSize) | |
s = MemRange("Stack", ramStart + ramSize - stackSize, ramStart + ramSize) | |
list | mems = [d, h, s] |
bool | trace_available = False |
reader = csv.reader(f, skipinitialspace=True, delimiter=";") | |
pc = int(r[1], 16) | |
mode = r[2] | |
adr = int(r[3], 16) | |
sz = int(r[4], 16) | |
romSize = sum([staticSizes[k] for k in staticSizes if k.startswith("rom_")]) | |
dictionary | results |
writer = csv.DictWriter(f, fieldnames=results.keys()) | |
def get_metrics.parseElf | ( | inFile | ) |
Definition at line 74 of file get_metrics.py.
References str.
def get_metrics.printSz | ( | sz, | |
unknown_msg = "" |
|||
) |
Definition at line 121 of file get_metrics.py.
get_metrics.adr = int(r[3], 16) |
Definition at line 197 of file get_metrics.py.
Referenced by etiss.GetModuleByAddress().
get_metrics.args = parser.parse_args() |
Definition at line 141 of file get_metrics.py.
Referenced by etiss::instr::InstructionCollection.add(), etiss::instr::InstructionClass.add(), etiss::Configuration.Configuration(), etiss::ObjectPool< T, prealloc_inc >.construct(), etiss_initialize(), etiss.forceInitialization(), etiss.initialize(), etiss::Initializer.Initializer(), etiss.log(), std.make_unique(), xpath_parser.parse_function(), xpath_parser.parse_function_helper(), xpath_parser.parse_primary_expression(), etiss::Configuration.set(), etiss::Initializer.toList(), etiss::LLVMJIT.translate(), and vetiss_coverage_count().
get_metrics.cfg = config["IntConfigurations"] |
Definition at line 169 of file get_metrics.py.
Referenced by ETISSINCLUDED_createPlugin(), and GCCJIT_createJIT().
get_metrics.config = configparser.ConfigParser() |
Definition at line 163 of file get_metrics.py.
Referenced by etiss::ConfigAnnouncer.ConfigAnnouncer().
get_metrics.csvFile = args.out |
Definition at line 146 of file get_metrics.py.
Definition at line 183 of file get_metrics.py.
Referenced by pugi::xml_text._data_new(), pugi::xml_text.as_bool(), pugi::xml_text.as_double(), pugi::xml_text.as_float(), pugi::xml_text.as_int(), pugi::xml_text.as_string(), pugi::xml_text.as_uint(), and pugi::xml_text.get().
get_metrics.default |
Definition at line 133 of file get_metrics.py.
int get_metrics.DEFAULT_RAM_SIZE = 0x80000 |
Definition at line 27 of file get_metrics.py.
int get_metrics.DEFAULT_RAM_START = 0x80000 |
Definition at line 26 of file get_metrics.py.
int get_metrics.DEFAULT_STACK_SIZE = 0x4000 |
Definition at line 28 of file get_metrics.py.
get_metrics.elfFile = args.elf[0] |
Definition at line 143 of file get_metrics.py.
Definition at line 184 of file get_metrics.py.
Referenced by etiss::plugin::gdb::hex.toByte(), and etiss::plugin::SelectiveSysWrapper.unwrap().
get_metrics.heapStart |
Definition at line 177 of file get_metrics.py.
get_metrics.help |
Definition at line 129 of file get_metrics.py.
get_metrics.memIni = args.ini |
Definition at line 145 of file get_metrics.py.
Definition at line 186 of file get_metrics.py.
get_metrics.metavar |
Definition at line 129 of file get_metrics.py.
get_metrics.mode = r[2] |
Definition at line 196 of file get_metrics.py.
Referenced by etiss::DataSheetAccurateTiming.addRule(), etiss::instr::ModedInstructionSet.create(), fadd_d(), fadd_s(), fconv_d2f(), fconv_f2d(), fcvt_32_64(), fcvt_64_32(), fcvt_d(), fcvt_s(), fdiv_d(), fdiv_s(), fmadd_d(), fmadd_s(), fmul_d(), fmul_s(), fsqrt_d(), fsqrt_s(), fsub_d(), fsub_s(), etiss::instr::ModedInstructionSet.get(), etiss::DataSheetAccurateTiming.initInstrSet(), etiss::SimpleMemSystem.load_elf(), etiss::SimpleMemSystem.load_segments(), etiss::instr::ModedInstructionSet.open(), open_file_wide(), etiss::instr.parse_i(), and semihostingCall().
get_metrics.nargs |
Definition at line 129 of file get_metrics.py.
get_metrics.parser = argparse.ArgumentParser() |
Definition at line 128 of file get_metrics.py.
Referenced by etiss_initialize(), xml_parser.parse(), and xpath_parser.parse().
get_metrics.pc = int(r[1], 16) |
Definition at line 195 of file get_metrics.py.
Referenced by access_error(), and trace().
get_metrics.ramSize = DEFAULT_RAM_SIZE |
Definition at line 149 of file get_metrics.py.
get_metrics.ramStart = DEFAULT_RAM_START |
Definition at line 148 of file get_metrics.py.
get_metrics.reader = csv.reader(f, skipinitialspace=True, delimiter=";") |
Definition at line 192 of file get_metrics.py.
Referenced by etiss::SimpleMemSystem.load_elf().
dictionary get_metrics.results |
Definition at line 209 of file get_metrics.py.
Referenced by etiss::instr::BitArray.permutate(), and etiss::instr::InstructionSet.resolve().
get_metrics.romSize = sum([staticSizes[k] for k in staticSizes if k.startswith("rom_")]) |
Definition at line 206 of file get_metrics.py.
Definition at line 185 of file get_metrics.py.
int get_metrics.stackSize = DEFAULT_STACK_SIZE |
Definition at line 150 of file get_metrics.py.
get_metrics.staticSizes |
Definition at line 177 of file get_metrics.py.
get_metrics.str |
Definition at line 129 of file get_metrics.py.
Referenced by pugi.as_utf8(), as_utf8_begin(), as_utf8_end(), as_utf8_impl(), pugi.as_wide(), as_wide_impl(), convert_path_heap(), etiss::interfaces::VCD.declare(), etiss::string::form_string.form_string(), hash_string(), PacketProtocol_startsWith(), strconv_attribute_impl< opt_escape >.parse_wnorm(), parseElf(), semihostReadString(), semihostWriteString(), etiss::fault.setCoreName(), etiss.split(), etiss::plugin::VirtualStructMemory.VirtualStructMemory(), xpath_string.xpath_string(), and xpath_string_const().
get_metrics.sz = int(r[4], 16) |
Definition at line 198 of file get_metrics.py.
Referenced by etiss_loadIniConfigs().
bool get_metrics.trace_available = False |
Definition at line 188 of file get_metrics.py.
get_metrics.traceFile = args.trace |
Definition at line 144 of file get_metrics.py.
get_metrics.type |
Definition at line 129 of file get_metrics.py.
Referenced by pugi::xpath_variable_set.add(), allocate_node(), etiss::Configuration.announce(), etiss::CodeSet.append(), append_node(), etiss::ConfigAnnouncer.ConfigAnnouncer(), FuzzedDataProvider.ConsumeProbability(), utf_decoder< Traits, opt_swap >.decode_wchar_block(), delete_xpath_variable(), etiss::fault::Trigger.ensure(), etiss_initialize(), etiss_loadIniConfigs(), has_declaration(), xml_parser.has_element_node_siblings(), is_text_node(), std.make_unique(), new_xpath_variable(), etiss::instr.parse_i(), etiss::CodeSet.prepend(), text_output(), text_output_escaped(), xpath_ast_node.xpath_ast_node(), xpath_first(), and xpath_sort().
get_metrics.writer = csv.DictWriter(f, fieldnames=results.keys()) |
Definition at line 239 of file get_metrics.py.
Referenced by node_output(), node_output_attributes(), pugi::xml_node.print(), pugi::xml_document.save(), save_file_impl(), text_output(), text_output_cdata(), text_output_escaped(), and etiss::plugin::VariableValueLogger.VariableValueLogger().