Skip to content

Commit

Permalink
Make id and ins consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
berkayurun committed Aug 22, 2023
1 parent 1465e02 commit 3f7d85d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions analysis/analysisfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def get_experiment_tbinfo(faultgroup, faultname):


def get_experiment_tbinfo_expanded(filehandle, faultname):
return get_experiment_table_expanded(filehandle, faultname, "tbinfo", ["identity"])
return get_experiment_table_expanded(filehandle, faultname, "tbinfo", ["id"])


def get_experiment_tbexec(faultgroup, faultname):
Expand All @@ -257,5 +257,5 @@ def get_experiment_meminfo(faultgroup, faultname):

def get_experiment_meminfo_expanded(filehandle, faultname):
return get_experiment_table_expanded(
filehandle, faultname, "meminfo", ["insaddr", "address"]
filehandle, faultname, "meminfo", ["ins", "address"]
)
4 changes: 2 additions & 2 deletions controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def read_backup(hdf5_file):
backup_goldenrun["tbinfo"] = [
{
"assembler": tb_info["assembler"].decode("utf-8"),
"identity": tb_info["identity"],
"id": tb_info["id"],
"ins_count": tb_info["ins_count"],
"num_exec": tb_info["num_exec"],
"size": tb_info["size"],
Expand All @@ -395,7 +395,7 @@ def read_backup(hdf5_file):
"address": mem["address"],
"counter": mem["counter"],
"direction": mem["direction"],
"insaddr": mem["insaddr"],
"ins": mem["ins"],
"size": mem["size"],
"tbid": mem["tbid"],
}
Expand Down
6 changes: 3 additions & 3 deletions hdf5logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class translation_block_exec_table(tables.IsDescription):


class memory_information_table(tables.IsDescription):
insaddr = tables.Int64Col()
ins = tables.Int64Col()
tbid = tables.UInt64Col()
size = tables.UInt64Col()
address = tables.Int64Col()
Expand Down Expand Up @@ -296,7 +296,7 @@ class translation_block_table(tables.IsDescription):
)
tbinforow = tbinfotable.row
for tbinfo in tbinfolist:
tbinforow["identity"] = tbinfo["id"]
tbinforow["id"] = tbinfo["id"]
tbinforow["size"] = tbinfo["size"]
tbinforow["ins_count"] = tbinfo["ins_count"]
tbinforow["num_exec"] = tbinfo["num_exec"]
Expand Down Expand Up @@ -335,7 +335,7 @@ def process_memory_info(f, group, meminfolist, myfilter):
)
meminforow = meminfotable.row
for meminfo in meminfolist:
meminforow["insaddr"] = meminfo["ins"]
meminforow["ins"] = meminfo["ins"]
meminforow["tbid"] = meminfo["tbid"]
meminforow["size"] = meminfo["size"]
meminforow["address"] = meminfo["address"]
Expand Down

0 comments on commit 3f7d85d

Please sign in to comment.