summaryrefslogtreecommitdiff
path: root/src/base/statistics.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2019-09-06 18:43:31 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2019-09-10 15:55:50 +0000
commiteb920362ae7f370028522f72d338573ceb435583 (patch)
tree82cd196ddc210306370b21c75d981387a7d7c863 /src/base/statistics.hh
parentebc1caf9e818d046a18919209a2afee55a37caf1 (diff)
downloadgem5-eb920362ae7f370028522f72d338573ceb435583.tar.xz
stats: Fix incorrect name conflict panic with grouped stats
Info::setName() performs a sanity check to ensure that the same stat name isn't used twice. This doesn't work for new-style stats with a parent group since the name is only unique within the group. Disable the check for new-style stats since these usually use names generated from member variable names. Change-Id: I590abe6040407c6a4fe582c0782a418165ff5588 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20760 Maintainer: Jason Lowe-Power <jason@lowepower.com> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/base/statistics.hh')
-rw-r--r--src/base/statistics.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/statistics.hh b/src/base/statistics.hh
index f4fa123e9..07f295995 100644
--- a/src/base/statistics.hh
+++ b/src/base/statistics.hh
@@ -262,7 +262,7 @@ class DataWrap : public InfoAccess
parent->addStat(info);
if (name) {
- info->setName(name);
+ info->setName(parent, name);
info->flags.set(display);
}