summaryrefslogtreecommitdiff
path: root/util/streamline/m5stats2streamline.py
diff options
context:
space:
mode:
authorShawn Rosti <shawn.rosti@gmail.com>2016-10-15 15:11:07 -0500
committerShawn Rosti <shawn.rosti@gmail.com>2016-10-15 15:11:07 -0500
commit71c982ff708cc3adc7c0eccf536fea34c20cc5f0 (patch)
treeee658e5b910e0887ae45a0a9e4caebeb16fae22c /util/streamline/m5stats2streamline.py
parent28c84d28861a1b143d0c0c9087a77e931a233e67 (diff)
downloadgem5-71c982ff708cc3adc7c0eccf536fea34c20cc5f0.tar.xz
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>
Diffstat (limited to 'util/streamline/m5stats2streamline.py')
-rwxr-xr-xutil/streamline/m5stats2streamline.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/streamline/m5stats2streamline.py b/util/streamline/m5stats2streamline.py
index 96b7432f2..c65649e79 100755
--- a/util/streamline/m5stats2streamline.py
+++ b/util/streamline/m5stats2streamline.py
@@ -142,18 +142,18 @@ def parseConfig(config_file):
print "ERROR: config file '", config_file, "' not found"
sys.exit(1)
- if config.has_section("system.cluster.cpu"):
+ if config.has_section("system.cpu"):
num_cpus = 1
else:
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
- if config.has_section("system.cluster.l2_cache"):
+ if config.has_section("system.l2_cache"):
num_l2 = 1
else:
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
print "Num CPUs:", num_cpus