stats: Correctly print new-style dist stat names
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 24 Sep 2019 17:44:13 +0000 (18:44 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 26 Sep 2019 10:03:22 +0000 (10:03 +0000)
The text stat printer didn't output fully qualified names for
new-style dist stats. Fix that.

Change-Id: I61bc7403fbd760bbbb0641e8e593781e6d03a4ed
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21162
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
src/base/stats/text.cc

index da68188bd0f7466f1ade2804682e02cead35c4c9..17c619ac6de11fe1878d8ddb039af0735023ffe6 100644 (file)
@@ -396,8 +396,9 @@ DistPrint::DistPrint(const Text *text, const VectorDistInfo &info, int i)
 {
     init(text, info);
 
-    name = info.name + "_" +
-        (info.subnames[i].empty() ? (std::to_string(i)) : info.subnames[i]);
+    name = text->statName(
+        info.name + "_" +
+        (info.subnames[i].empty() ? (std::to_string(i)) : info.subnames[i]));
 
     if (!info.subdescs[i].empty())
         desc = info.subdescs[i];