|
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 80 of file get_metrics.py.
References str.
| get_metrics.printSz | ( | sz, | |
unknown_msg = "" |
|||
| ) |
Definition at line 127 of file get_metrics.py.
| get_metrics.adr = int(r[3], 16) |
Definition at line 203 of file get_metrics.py.
| get_metrics.args = parser.parse_args() |
Definition at line 147 of file get_metrics.py.
| get_metrics.cfg = config["IntConfigurations"] |
Definition at line 175 of file get_metrics.py.
| get_metrics.config = configparser.ConfigParser() |
Definition at line 169 of file get_metrics.py.
| get_metrics.csvFile = args.out |
Definition at line 152 of file get_metrics.py.
Definition at line 189 of file get_metrics.py.
| get_metrics.default |
Definition at line 139 of file get_metrics.py.
| int get_metrics.DEFAULT_RAM_SIZE = 0x80000 |
Definition at line 33 of file get_metrics.py.
| int get_metrics.DEFAULT_RAM_START = 0x80000 |
Definition at line 32 of file get_metrics.py.
| int get_metrics.DEFAULT_STACK_SIZE = 0x4000 |
Definition at line 34 of file get_metrics.py.
| get_metrics.elfFile = args.elf[0] |
Definition at line 149 of file get_metrics.py.
Definition at line 190 of file get_metrics.py.
| get_metrics.heapStart |
Definition at line 183 of file get_metrics.py.
| get_metrics.help |
Definition at line 135 of file get_metrics.py.
| get_metrics.memIni = args.ini |
Definition at line 151 of file get_metrics.py.
Definition at line 192 of file get_metrics.py.
| get_metrics.metavar |
Definition at line 135 of file get_metrics.py.
| get_metrics.mode = r[2] |
Definition at line 202 of file get_metrics.py.
| get_metrics.nargs |
Definition at line 135 of file get_metrics.py.
| get_metrics.parser = argparse.ArgumentParser() |
Definition at line 134 of file get_metrics.py.
| get_metrics.pc = int(r[1], 16) |
Definition at line 201 of file get_metrics.py.
| get_metrics.ramSize = DEFAULT_RAM_SIZE |
Definition at line 155 of file get_metrics.py.
| get_metrics.ramStart = DEFAULT_RAM_START |
Definition at line 154 of file get_metrics.py.
| get_metrics.reader = csv.reader(f, skipinitialspace=True, delimiter=";") |
Definition at line 198 of file get_metrics.py.
| dict get_metrics.results |
Definition at line 215 of file get_metrics.py.
| get_metrics.romSize = sum([staticSizes[k] for k in staticSizes if k.startswith("rom_")]) |
Definition at line 212 of file get_metrics.py.
Definition at line 191 of file get_metrics.py.
| int get_metrics.stackSize = DEFAULT_STACK_SIZE |
Definition at line 156 of file get_metrics.py.
| get_metrics.staticSizes |
Definition at line 183 of file get_metrics.py.
| get_metrics.str |
Definition at line 135 of file get_metrics.py.
Referenced by parseElf().
| get_metrics.sz = int(r[4], 16) |
Definition at line 204 of file get_metrics.py.
| bool get_metrics.trace_available = False |
Definition at line 194 of file get_metrics.py.
| get_metrics.traceFile = args.trace |
Definition at line 150 of file get_metrics.py.
| get_metrics.type |
Definition at line 135 of file get_metrics.py.
| get_metrics.writer = csv.DictWriter(f, fieldnames=results.keys()) |
Definition at line 245 of file get_metrics.py.