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 Jul 25, 2023
1 parent e9b0561 commit 5def066
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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
8 changes: 4 additions & 4 deletions hdf5logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# Tables for storing the elements from queue
class translation_block_table(tables.IsDescription):
identity = tables.UInt64Col()
id = tables.UInt64Col()
size = tables.UInt64Col()
ins_count = tables.UInt64Col()
num_exec = tables.UInt64Col()
Expand All @@ -45,7 +45,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 @@ -292,7 +292,7 @@ def process_tbinfo(f, group, tbinfolist, myfilter):
)
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 @@ -331,7 +331,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 5def066

Please sign in to comment.