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
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/51674
Maintainer: Gabe Black <gabe.black@gmail.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2021-10-14 22:10:46 -07:00
parent c3e98d86a2
commit 18cb3af215
2 changed files with 15 additions and 15 deletions

View File

@@ -324,8 +324,8 @@ GUPSGen::GenPort::recvTimingResp(PacketPtr pkt)
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,

View File

@@ -301,25 +301,25 @@ class GUPSGen : public ClockedObject
*/
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: