changeset 628ed23d37af in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=628ed23d37af
description:
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:
src/python/m5/stats/__init__.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 7d7f635e7447 -r 628ed23d37af src/python/m5/stats/__init__.py
--- a/src/python/m5/stats/__init__.py Tue Apr 22 03:12:15 2014 -0400
+++ b/src/python/m5/stats/__init__.py Mon Feb 10 18:24:20 2014 -0600
@@ -67,7 +67,8 @@
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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev