projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c75581
)
stats: better error message for uninitialized statistic
author
Curtis Dunham
<Curtis.Dunham@arm.com>
Tue, 11 Feb 2014 00:24:20 +0000
(18:24 -0600)
committer
Curtis Dunham
<Curtis.Dunham@arm.com>
Tue, 11 Feb 2014 00:24:20 +0000
(18:24 -0600)
As suggested by Nathan Binkert in 2008:
http://permalink.gmane.org/gmane.comp.emulators.m5.users/2676
src/python/m5/stats/__init__.py
patch
|
blob
|
history
diff --git
a/src/python/m5/stats/__init__.py
b/src/python/m5/stats/__init__.py
index 765f9a634581d4d1161cef98bae7f238a05a7a56..770749bf0d033acf3620b22b4ad74d3bfe3eef75 100644
(file)
--- a/
src/python/m5/stats/__init__.py
+++ b/
src/python/m5/stats/__init__.py
@@
-67,7
+67,8
@@
def enable():
for stat in stats_list:
if not stat.check() or not stat.baseCheck():
- fatal("stat check failed for '%s' %d\n", stat.name, stat.id)
+ fatal("statistic '%s' (%d) was not properly initialized " \
+ "by a regStats() function\n", stat.name, stat.id)
if not (stat.flags & flags.display):
stat.name = "__Stat%06d" % stat.id