Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/51674 )

Change subject: cpu,tests: Replace the deprecated Stats namespace with statistics.
......................................................................

cpu,tests: Replace the deprecated Stats namespace with statistics.

The gups traffic generator was checked in recently and uses the
deprecated namespace. This change updates it.

Change-Id: I5e6f593aac086e6ef251f11fc50c0e3d3e545d06
---
M src/cpu/testers/traffic_gen/gups_gen.cc
M src/cpu/testers/traffic_gen/gups_gen.hh
2 files changed, 27 insertions(+), 15 deletions(-)



diff --git a/src/cpu/testers/traffic_gen/gups_gen.cc b/src/cpu/testers/traffic_gen/gups_gen.cc
index 615d4b0..3ed1fa4 100644
--- a/src/cpu/testers/traffic_gen/gups_gen.cc
+++ b/src/cpu/testers/traffic_gen/gups_gen.cc
@@ -324,8 +324,8 @@
     return true;
 }

-GUPSGen::GUPSGenStat::GUPSGenStat(GUPSGen* parent):
-    Stats::Group(parent),
+GUPSGen::GUPSGenStat::GUPSGenStat(GUPSGen* parent) :
+    statistics::Group(parent),
     ADD_STAT(totalUpdates, statistics::units::Count::get(),
         "Total number of updates the generator made in the memory"),
     ADD_STAT(GUPS, statistics::units::Rate<statistics::units::Count,
diff --git a/src/cpu/testers/traffic_gen/gups_gen.hh b/src/cpu/testers/traffic_gen/gups_gen.hh
index 04c0bb0..fa7b336 100644
--- a/src/cpu/testers/traffic_gen/gups_gen.hh
+++ b/src/cpu/testers/traffic_gen/gups_gen.hh
@@ -301,25 +301,25 @@
      */
     int readRequests;

-    struct GUPSGenStat : public Stats::Group
+    struct GUPSGenStat : public statistics::Group
     {
         GUPSGenStat(GUPSGen* parent);
         void regStats() override;

-        Stats::Scalar totalUpdates;
-        Stats::Formula GUPS;
+        statistics::Scalar totalUpdates;
+        statistics::Formula GUPS;

-        Stats::Scalar totalReads;
-        Stats::Scalar totalBytesRead;
-        Stats::Formula avgReadBW;
-        Stats::Scalar totalReadLat;
-        Stats::Formula avgReadLat;
+        statistics::Scalar totalReads;
+        statistics::Scalar totalBytesRead;
+        statistics::Formula avgReadBW;
+        statistics::Scalar totalReadLat;
+        statistics::Formula avgReadLat;

-        Stats::Scalar totalWrites;
-        Stats::Scalar totalBytesWritten;
-        Stats::Formula avgWriteBW;
-        Stats::Scalar totalWriteLat;
-        Stats::Formula avgWriteLat;
+        statistics::Scalar totalWrites;
+        statistics::Scalar totalBytesWritten;
+        statistics::Formula avgWriteBW;
+        statistics::Scalar totalWriteLat;
+        statistics::Formula avgWriteLat;
     } stats;

   public:

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/51674
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I5e6f593aac086e6ef251f11fc50c0e3d3e545d06
Gerrit-Change-Number: 51674
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to