ETISS 0.8.0
Extendable Translating Instruction Set Simulator (version 0.8.0)
|
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 74 of file get_metrics.py.
References str.
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.
get_metrics.args = parser.parse_args() |
Definition at line 141 of file get_metrics.py.
get_metrics.cfg = config["IntConfigurations"] |
Definition at line 169 of file get_metrics.py.
get_metrics.config = configparser.ConfigParser() |
Definition at line 163 of file get_metrics.py.
get_metrics.csvFile = args.out |
Definition at line 146 of file get_metrics.py.
Definition at line 183 of file get_metrics.py.
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.
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.
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.
get_metrics.pc = int(r[1], 16) |
Definition at line 195 of file get_metrics.py.
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.
dict get_metrics.results |
Definition at line 209 of file get_metrics.py.
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 parseElf().
get_metrics.sz = int(r[4], 16) |
Definition at line 198 of file get_metrics.py.
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.
get_metrics.writer = csv.DictWriter(f, fieldnames=results.keys()) |
Definition at line 239 of file get_metrics.py.