arm: Fix for ARM's Streamline conversion script

tracked down issue with ARM's version of gem5 using the "cluster" name.
The public/github version of ARM Gem5 does not use the "cluster" naming
mechanism.

Signed-off-by: Dam Sunwoo <dam.sunwoo@arm.com>
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
Shawn Rosti 2016-10-15 15:11:07 -05:00
parent 28c84d2886
commit 71c982ff70
3 changed files with 52 additions and 52 deletions

View file

@ -41,8 +41,8 @@
# E.g., # E.g.,
# #
# commit_inst_count = # commit_inst_count =
# system.cluster.cpu#.commit.committedInsts # system.cpu#.commit.committedInsts
# system.cluster.cpu#.commit.commitSquashedInsts # system.cpu#.commit.commitSquashedInsts
# #
# will display the inst counts (committed/squashed) as a stacked line chart. # will display the inst counts (committed/squashed) as a stacked line chart.
# Charts will still be configurable in Streamline. # Charts will still be configurable in Streamline.
@ -51,40 +51,40 @@
# '#' will be automatically replaced with the correct CPU id. # '#' will be automatically replaced with the correct CPU id.
commit_inst_count = commit_inst_count =
system.cluster.cpu#.committedInsts system.cpu#.committedInsts
cycles = cycles =
system.cluster.cpu#.num_busy_cycles system.cpu#.num_busy_cycles
system.cluster.cpu#.num_idle_cycles system.cpu#.num_idle_cycles
register_access = register_access =
system.cluster.cpu#.num_int_register_reads system.cpu#.num_int_register_reads
system.cluster.cpu#.num_int_register_writes system.cpu#.num_int_register_writes
mem_refs = mem_refs =
system.cluster.cpu#.num_mem_refs system.cpu#.num_mem_refs
inst_breakdown = inst_breakdown =
system.cluster.cpu#.num_conditional_control_insts system.cpu#.num_conditional_control_insts
system.cluster.cpu#.num_int_insts system.cpu#.num_int_insts
system.cluster.cpu#.num_fp_insts system.cpu#.num_fp_insts
system.cluster.cpu#.num_load_insts system.cpu#.num_load_insts
system.cluster.cpu#.num_store_insts system.cpu#.num_store_insts
icache = icache =
system.cluster.il1_cache#.overall_hits::total system.il1_cache#.overall_hits::total
system.cluster.il1_cache#.overall_misses::total system.il1_cache#.overall_misses::total
dcache = dcache =
system.cluster.dl1_cache#.overall_hits::total system.dl1_cache#.overall_hits::total
system.cluster.dl1_cache#.overall_misses::total system.dl1_cache#.overall_misses::total
[PER_L2_STATS] [PER_L2_STATS]
# '#' will be automatically replaced with the correct L2 id. # '#' will be automatically replaced with the correct L2 id.
l2_cache = l2_cache =
system.cluster.l2_cache#.overall_hits::total system.l2_cache#.overall_hits::total
system.cluster.l2_cache#.overall_misses::total system.l2_cache#.overall_misses::total
[OTHER_STATS] [OTHER_STATS]
# Anything that doesn't belong to CPU or L2 caches # Anything that doesn't belong to CPU or L2 caches

View file

@ -142,18 +142,18 @@ def parseConfig(config_file):
print "ERROR: config file '", config_file, "' not found" print "ERROR: config file '", config_file, "' not found"
sys.exit(1) sys.exit(1)
if config.has_section("system.cluster.cpu"): if config.has_section("system.cpu"):
num_cpus = 1 num_cpus = 1
else: else:
num_cpus = 0 num_cpus = 0
while config.has_section("system.cluster.cpu" + str(num_cpus)): while config.has_section("system.cpu" + str(num_cpus)):
num_cpus += 1 num_cpus += 1
if config.has_section("system.cluster.l2_cache"): if config.has_section("system.l2_cache"):
num_l2 = 1 num_l2 = 1
else: else:
num_l2 = 0 num_l2 = 0
while config.has_section("system.cluster.l2_cache" + str(num_l2)): while config.has_section("system.l2_cache" + str(num_l2)):
num_l2 += 1 num_l2 += 1
print "Num CPUs:", num_cpus print "Num CPUs:", num_cpus

View file

@ -41,8 +41,8 @@
# E.g., # E.g.,
# #
# commit_inst_count = # commit_inst_count =
# system.cluster.cpu#.commit.committedInsts # system.cpu#.commit.committedInsts
# system.cluster.cpu#.commit.commitSquashedInsts # system.cpu#.commit.commitSquashedInsts
# #
# will display the inst counts (committed/squashed) as a stacked line chart. # will display the inst counts (committed/squashed) as a stacked line chart.
# Charts will still be configurable in Streamline. # Charts will still be configurable in Streamline.
@ -51,57 +51,57 @@
# '#' will be automatically replaced with the correct CPU id. # '#' will be automatically replaced with the correct CPU id.
icache = icache =
system.cluster.il1_cache#.overall_hits::total system.il1_cache#.overall_hits::total
system.cluster.il1_cache#.overall_misses::total system.il1_cache#.overall_misses::total
dcache = dcache =
system.cluster.dl1_cache#.overall_hits::total system.dl1_cache#.overall_hits::total
system.cluster.dl1_cache#.overall_misses::total system.dl1_cache#.overall_misses::total
commit_inst_count = commit_inst_count =
system.cluster.cpu#.commit.committedInsts system.cpu#.commit.committedInsts
system.cluster.cpu#.commit.commitSquashedInsts system.cpu#.commit.commitSquashedInsts
cycles = cycles =
system.cluster.cpu#.numCycles system.cpu#.numCycles
system.cluster.cpu#.idleCycles system.cpu#.idleCycles
branch_mispredict = branch_mispredict =
system.cluster.cpu#.commit.branchMispredicts system.cpu#.commit.branchMispredicts
itb = itb =
system.cluster.cpu#.itb.hits system.cpu#.itb.hits
system.cluster.cpu#.itb.misses system.cpu#.itb.misses
dtb = dtb =
system.cluster.cpu#.dtb.hits system.cpu#.dtb.hits
system.cluster.cpu#.dtb.misses system.cpu#.dtb.misses
commit_inst_breakdown = commit_inst_breakdown =
system.cluster.cpu#.commit.loads system.cpu#.commit.loads
system.cluster.cpu#.commit.membars system.cpu#.commit.membars
system.cluster.cpu#.commit.branches system.cpu#.commit.branches
system.cluster.cpu#.commit.fp_insts system.cpu#.commit.fp_insts
system.cluster.cpu#.commit.int_insts system.cpu#.commit.int_insts
int_regfile = int_regfile =
system.cluster.cpu#.int_regfile_reads system.cpu#.int_regfile_reads
system.cluster.cpu#.int_regfile_writes system.cpu#.int_regfile_writes
misc_regfile = misc_regfile =
system.cluster.cpu#.misc_regfile_reads system.cpu#.misc_regfile_reads
system.cluster.cpu#.misc_regfile_writes system.cpu#.misc_regfile_writes
rename_full = rename_full =
system.cluster.cpu#.rename.ROBFullEvents system.cpu#.rename.ROBFullEvents
system.cluster.cpu#.rename.IQFullEvents system.cpu#.rename.IQFullEvents
system.cluster.cpu#.rename.LSQFullEvents system.cpu#.rename.LSQFullEvents
[PER_L2_STATS] [PER_L2_STATS]
# '#' will be automatically replaced with the correct L2 id. # '#' will be automatically replaced with the correct L2 id.
l2_cache = l2_cache =
system.cluster.l2_cache#.overall_hits::total system.l2_cache#.overall_hits::total
system.cluster.l2_cache#.overall_misses::total system.l2_cache#.overall_misses::total
[OTHER_STATS] [OTHER_STATS]
# Anything that doesn't belong to CPU or L2 caches # Anything that doesn't belong to CPU or L2 caches