|
ETISS 0.11.2
ExtendableTranslatingInstructionSetSimulator(version0.11.2)
|
Classes | |
| class | MemRange |
Functions | |
| parseElf (inFile) | |
| 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_")]) | |
| dict | results |
| writer = csv.DictWriter(f, fieldnames=results.keys()) | |
| get_metrics.parseElf | ( | inFile | ) |
Definition at line 87 of file get_metrics.py.
References str.
| get_metrics.printSz | ( | sz, | |
unknown_msg = "" |
|||
| ) |
Definition at line 134 of file get_metrics.py.
| get_metrics.adr = int(r[3], 16) |
Definition at line 210 of file get_metrics.py.
| get_metrics.args = parser.parse_args() |
Definition at line 154 of file get_metrics.py.
| get_metrics.cfg = config["IntConfigurations"] |
Definition at line 182 of file get_metrics.py.
| get_metrics.config = configparser.ConfigParser() |
Definition at line 176 of file get_metrics.py.
| get_metrics.csvFile = args.out |
Definition at line 159 of file get_metrics.py.
Definition at line 196 of file get_metrics.py.
| get_metrics.default |
Definition at line 146 of file get_metrics.py.
| int get_metrics.DEFAULT_RAM_SIZE = 0x80000 |
Definition at line 40 of file get_metrics.py.
| int get_metrics.DEFAULT_RAM_START = 0x80000 |
Definition at line 39 of file get_metrics.py.
| int get_metrics.DEFAULT_STACK_SIZE = 0x4000 |
Definition at line 41 of file get_metrics.py.
| get_metrics.elfFile = args.elf[0] |
Definition at line 156 of file get_metrics.py.
Definition at line 197 of file get_metrics.py.
| get_metrics.heapStart |
Definition at line 190 of file get_metrics.py.
| get_metrics.help |
Definition at line 142 of file get_metrics.py.
| get_metrics.memIni = args.ini |
Definition at line 158 of file get_metrics.py.
Definition at line 199 of file get_metrics.py.
| get_metrics.metavar |
Definition at line 142 of file get_metrics.py.
| get_metrics.mode = r[2] |
Definition at line 209 of file get_metrics.py.
| get_metrics.nargs |
Definition at line 142 of file get_metrics.py.
| get_metrics.parser = argparse.ArgumentParser() |
Definition at line 141 of file get_metrics.py.
| get_metrics.pc = int(r[1], 16) |
Definition at line 208 of file get_metrics.py.
| get_metrics.ramSize = DEFAULT_RAM_SIZE |
Definition at line 162 of file get_metrics.py.
| get_metrics.ramStart = DEFAULT_RAM_START |
Definition at line 161 of file get_metrics.py.
| get_metrics.reader = csv.reader(f, skipinitialspace=True, delimiter=";") |
Definition at line 205 of file get_metrics.py.
| dict get_metrics.results |
Definition at line 222 of file get_metrics.py.
| get_metrics.romSize = sum([staticSizes[k] for k in staticSizes if k.startswith("rom_")]) |
Definition at line 219 of file get_metrics.py.
Definition at line 198 of file get_metrics.py.
| int get_metrics.stackSize = DEFAULT_STACK_SIZE |
Definition at line 163 of file get_metrics.py.
| get_metrics.staticSizes |
Definition at line 190 of file get_metrics.py.
| get_metrics.str |
Definition at line 142 of file get_metrics.py.
Referenced by parseElf().
| get_metrics.sz = int(r[4], 16) |
Definition at line 211 of file get_metrics.py.
| bool get_metrics.trace_available = False |
Definition at line 201 of file get_metrics.py.
| get_metrics.traceFile = args.trace |
Definition at line 157 of file get_metrics.py.
| get_metrics.type |
Definition at line 142 of file get_metrics.py.
| get_metrics.writer = csv.DictWriter(f, fieldnames=results.keys()) |
Definition at line 252 of file get_metrics.py.