summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCurtis Dunham <Curtis.Dunham@arm.com>2014-02-10 18:24:20 -0600
committerCurtis Dunham <Curtis.Dunham@arm.com>2014-02-10 18:24:20 -0600
commitfa4a262204953071be1ca34672f25b5de9af19ef (patch)
treefb34b79519e087a3d3feca09d4ce6243992c97a1 /src
parent0c75581d039197a8dcc0a5ed3af53a79ea836e9b (diff)
downloadgem5-fa4a262204953071be1ca34672f25b5de9af19ef.tar.xz
stats: better error message for uninitialized statistic
As suggested by Nathan Binkert in 2008: http://permalink.gmane.org/gmane.comp.emulators.m5.users/2676
Diffstat (limited to 'src')
-rw-r--r--src/python/m5/stats/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/stats/__init__.py b/src/python/m5/stats/__init__.py
index 765f9a634..770749bf0 100644
--- 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