gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
CommMonitor::MonitorStats Struct Reference

Stats declarations, all in a struct for convenience. More...

Inheritance diagram for CommMonitor::MonitorStats:
Stats::Group

Public Member Functions

 MonitorStats (Stats::Group *parent, const CommMonitorParams *params)
 Create the monitor stats and initialise all the members that are not statistics themselves, but used to control the stats or track values during a sample period. More...
 
void updateReqStats (const ProbePoints::PacketInfo &pkt, bool is_atomic, bool expects_response)
 
void updateRespStats (const ProbePoints::PacketInfo &pkt, Tick latency, bool is_atomic)
 
- Public Member Functions inherited from Stats::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group. More...
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters. More...
 
virtual void resetStats ()
 Callback to reset stats. More...
 
virtual void preDumpStats ()
 Callback before stats are dumped. More...
 
void addStat (Stats::Info *info)
 Register a stat with this group. More...
 
const std::map< std::string, Group * > & getStatGroups () const
 Get all child groups associated with this object. More...
 
const std::vector< Info * > & getStats () const
 Get all stats associated with this object. More...
 
void addStatGroup (const char *name, Group *block)
 Add a stat block as a child of this block. More...
 
const InforesolveStat (std::string name) const
 Resolve a stat by its name within this group. More...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 

Public Attributes

bool disableBurstLengthHists
 Disable flag for burst length histograms. More...
 
Stats::Histogram readBurstLengthHist
 Histogram of read burst lengths. More...
 
Stats::Histogram writeBurstLengthHist
 Histogram of write burst lengths. More...
 
bool disableBandwidthHists
 Disable flag for the bandwidth histograms. More...
 
unsigned int readBytes
 Histogram for read bandwidth per sample window. More...
 
Stats::Histogram readBandwidthHist
 
Stats::Scalar totalReadBytes
 
Stats::Formula averageReadBandwidth
 
unsigned int writtenBytes
 Histogram for write bandwidth per sample window. More...
 
Stats::Histogram writeBandwidthHist
 
Stats::Scalar totalWrittenBytes
 
Stats::Formula averageWriteBandwidth
 
bool disableLatencyHists
 Disable flag for latency histograms. More...
 
Stats::Histogram readLatencyHist
 Histogram of read request-to-response latencies. More...
 
Stats::Histogram writeLatencyHist
 Histogram of write request-to-response latencies. More...
 
bool disableITTDists
 Disable flag for ITT distributions. More...
 
Stats::Distribution ittReadRead
 Inter transaction time (ITT) distributions. More...
 
Stats::Distribution ittWriteWrite
 
Stats::Distribution ittReqReq
 
Tick timeOfLastRead
 
Tick timeOfLastWrite
 
Tick timeOfLastReq
 
bool disableOutstandingHists
 Disable flag for outstanding histograms. More...
 
Stats::Histogram outstandingReadsHist
 Histogram of outstanding read requests. More...
 
unsigned int outstandingReadReqs
 
Stats::Histogram outstandingWritesHist
 Histogram of outstanding write requests. More...
 
unsigned int outstandingWriteReqs
 
bool disableTransactionHists
 Disable flag for transaction histograms. More...
 
Stats::Histogram readTransHist
 Histogram of number of read transactions per time bin. More...
 
unsigned int readTrans
 
Stats::Histogram writeTransHist
 Histogram of number of timing write transactions per time bin. More...
 
unsigned int writeTrans
 
bool disableAddrDists
 Disable flag for address distributions. More...
 
const Addr readAddrMask
 Address mask for sources of read accesses to be captured. More...
 
const Addr writeAddrMask
 Address mask for sources of write accesses to be captured. More...
 
Stats::SparseHistogram readAddrDist
 Histogram of number of read accesses to addresses over time. More...
 
Stats::SparseHistogram writeAddrDist
 Histogram of number of write accesses to addresses over time. More...
 

Detailed Description

Stats declarations, all in a struct for convenience.

Definition at line 272 of file comm_monitor.hh.

Constructor & Destructor Documentation

◆ MonitorStats()

CommMonitor::MonitorStats::MonitorStats ( Stats::Group parent,
const CommMonitorParams *  params 
)

Member Function Documentation

◆ updateReqStats()

void CommMonitor::MonitorStats::updateReqStats ( const ProbePoints::PacketInfo pkt,
bool  is_atomic,
bool  expects_response 
)

◆ updateRespStats()

void CommMonitor::MonitorStats::updateRespStats ( const ProbePoints::PacketInfo pkt,
Tick  latency,
bool  is_atomic 
)

Member Data Documentation

◆ averageReadBandwidth

Stats::Formula CommMonitor::MonitorStats::averageReadBandwidth

Definition at line 293 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ averageWriteBandwidth

Stats::Formula CommMonitor::MonitorStats::averageWriteBandwidth

Definition at line 302 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ disableAddrDists

bool CommMonitor::MonitorStats::disableAddrDists

Disable flag for address distributions.

Definition at line 360 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ disableBandwidthHists

bool CommMonitor::MonitorStats::disableBandwidthHists

Disable flag for the bandwidth histograms.

Definition at line 284 of file comm_monitor.hh.

Referenced by MonitorStats(), updateReqStats(), and updateRespStats().

◆ disableBurstLengthHists

bool CommMonitor::MonitorStats::disableBurstLengthHists

Disable flag for burst length histograms.

Definition at line 275 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ disableITTDists

bool CommMonitor::MonitorStats::disableITTDists

Disable flag for ITT distributions.

Definition at line 314 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ disableLatencyHists

bool CommMonitor::MonitorStats::disableLatencyHists

Disable flag for latency histograms.

Definition at line 305 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ disableOutstandingHists

bool CommMonitor::MonitorStats::disableOutstandingHists

Disable flag for outstanding histograms.

Definition at line 330 of file comm_monitor.hh.

Referenced by MonitorStats(), updateReqStats(), and updateRespStats().

◆ disableTransactionHists

bool CommMonitor::MonitorStats::disableTransactionHists

Disable flag for transaction histograms.

Definition at line 349 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ ittReadRead

Stats::Distribution CommMonitor::MonitorStats::ittReadRead

Inter transaction time (ITT) distributions.

There are histograms of the time between two read, write or arbitrary accesses. The time of a request is the tick at which the request is forwarded by the monitor.

Definition at line 322 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ ittReqReq

Stats::Distribution CommMonitor::MonitorStats::ittReqReq

Definition at line 324 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ ittWriteWrite

Stats::Distribution CommMonitor::MonitorStats::ittWriteWrite

Definition at line 323 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ outstandingReadReqs

unsigned int CommMonitor::MonitorStats::outstandingReadReqs

Definition at line 338 of file comm_monitor.hh.

Referenced by updateReqStats(), and updateRespStats().

◆ outstandingReadsHist

Stats::Histogram CommMonitor::MonitorStats::outstandingReadsHist

Histogram of outstanding read requests.

Counter for outstanding read requests is an unsigned integer because it should not be reset when stats are reset.

Definition at line 337 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ outstandingWriteReqs

unsigned int CommMonitor::MonitorStats::outstandingWriteReqs

Definition at line 346 of file comm_monitor.hh.

Referenced by updateReqStats(), and updateRespStats().

◆ outstandingWritesHist

Stats::Histogram CommMonitor::MonitorStats::outstandingWritesHist

Histogram of outstanding write requests.

Counter for outstanding write requests is an unsigned integer because it should not be reset when stats are reset.

Definition at line 345 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ readAddrDist

Stats::SparseHistogram CommMonitor::MonitorStats::readAddrDist

Histogram of number of read accesses to addresses over time.

Definition at line 372 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ readAddrMask

const Addr CommMonitor::MonitorStats::readAddrMask

Address mask for sources of read accesses to be captured.

Definition at line 363 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ readBandwidthHist

Stats::Histogram CommMonitor::MonitorStats::readBandwidthHist

Definition at line 291 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ readBurstLengthHist

Stats::Histogram CommMonitor::MonitorStats::readBurstLengthHist

Histogram of read burst lengths.

Definition at line 278 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ readBytes

unsigned int CommMonitor::MonitorStats::readBytes

Histogram for read bandwidth per sample window.

The internal counter is an unsigned int rather than a stat.

Definition at line 290 of file comm_monitor.hh.

Referenced by updateRespStats().

◆ readLatencyHist

Stats::Histogram CommMonitor::MonitorStats::readLatencyHist

Histogram of read request-to-response latencies.

Definition at line 308 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ readTrans

unsigned int CommMonitor::MonitorStats::readTrans

Definition at line 353 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ readTransHist

Stats::Histogram CommMonitor::MonitorStats::readTransHist

Histogram of number of read transactions per time bin.

Definition at line 352 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ timeOfLastRead

Tick CommMonitor::MonitorStats::timeOfLastRead

Definition at line 325 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ timeOfLastReq

Tick CommMonitor::MonitorStats::timeOfLastReq

Definition at line 327 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ timeOfLastWrite

Tick CommMonitor::MonitorStats::timeOfLastWrite

Definition at line 326 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ totalReadBytes

Stats::Scalar CommMonitor::MonitorStats::totalReadBytes

Definition at line 292 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ totalWrittenBytes

Stats::Scalar CommMonitor::MonitorStats::totalWrittenBytes

Definition at line 301 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ writeAddrDist

Stats::SparseHistogram CommMonitor::MonitorStats::writeAddrDist

Histogram of number of write accesses to addresses over time.

Definition at line 378 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ writeAddrMask

const Addr CommMonitor::MonitorStats::writeAddrMask

Address mask for sources of write accesses to be captured.

Definition at line 366 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ writeBandwidthHist

Stats::Histogram CommMonitor::MonitorStats::writeBandwidthHist

Definition at line 300 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ writeBurstLengthHist

Stats::Histogram CommMonitor::MonitorStats::writeBurstLengthHist

Histogram of write burst lengths.

Definition at line 281 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ writeLatencyHist

Stats::Histogram CommMonitor::MonitorStats::writeLatencyHist

Histogram of write request-to-response latencies.

Definition at line 311 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ writeTrans

unsigned int CommMonitor::MonitorStats::writeTrans

Definition at line 357 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ writeTransHist

Stats::Histogram CommMonitor::MonitorStats::writeTransHist

Histogram of number of timing write transactions per time bin.

Definition at line 356 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ writtenBytes

unsigned int CommMonitor::MonitorStats::writtenBytes

Histogram for write bandwidth per sample window.

The internal counter is an unsigned int rather than a stat.

Definition at line 299 of file comm_monitor.hh.

Referenced by updateReqStats().


The documentation for this struct was generated from the following files:

Generated on Wed Sep 30 2020 14:02:22 for gem5 by doxygen 1.8.17