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

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

Inheritance diagram for gem5::CommMonitor::MonitorStats:
gem5::statistics::Group

Public Member Functions

 MonitorStats (statistics::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 probing::PacketInfo &pkt, bool is_atomic, bool expects_response)
 
void updateRespStats (const probing::PacketInfo &pkt, Tick latency, bool is_atomic)
 
- Public Member Functions inherited from gem5::statistics::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 (statistics::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...
 
void mergeStatGroup (Group *block)
 Merge the contents (stats & children) of a block to this block. More...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 

Public Attributes

bool disableBurstLengthHists
 Disable flag for burst length histograms. More...
 
statistics::Histogram readBurstLengthHist
 Histogram of read burst lengths. More...
 
statistics::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...
 
statistics::Histogram readBandwidthHist
 
statistics::Scalar totalReadBytes
 
statistics::Formula averageReadBandwidth
 
unsigned int writtenBytes
 Histogram for write bandwidth per sample window. More...
 
statistics::Histogram writeBandwidthHist
 
statistics::Scalar totalWrittenBytes
 
statistics::Formula averageWriteBandwidth
 
bool disableLatencyHists
 Disable flag for latency histograms. More...
 
statistics::Histogram readLatencyHist
 Histogram of read request-to-response latencies. More...
 
statistics::Histogram writeLatencyHist
 Histogram of write request-to-response latencies. More...
 
bool disableITTDists
 Disable flag for ITT distributions. More...
 
statistics::Distribution ittReadRead
 Inter transaction time (ITT) distributions. More...
 
statistics::Distribution ittWriteWrite
 
statistics::Distribution ittReqReq
 
Tick timeOfLastRead
 
Tick timeOfLastWrite
 
Tick timeOfLastReq
 
bool disableOutstandingHists
 Disable flag for outstanding histograms. More...
 
statistics::Histogram outstandingReadsHist
 Histogram of outstanding read requests. More...
 
unsigned int outstandingReadReqs
 
statistics::Histogram outstandingWritesHist
 Histogram of outstanding write requests. More...
 
unsigned int outstandingWriteReqs
 
bool disableTransactionHists
 Disable flag for transaction histograms. More...
 
statistics::Histogram readTransHist
 Histogram of number of read transactions per time bin. More...
 
unsigned int readTrans
 
statistics::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...
 
statistics::SparseHistogram readAddrDist
 Histogram of number of read accesses to addresses over time. More...
 
statistics::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 273 of file comm_monitor.hh.

Constructor & Destructor Documentation

◆ MonitorStats()

gem5::CommMonitor::MonitorStats::MonitorStats ( statistics::Group parent,
const CommMonitorParams &  params 
)

Member Function Documentation

◆ updateReqStats()

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

◆ updateRespStats()

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

Member Data Documentation

◆ averageReadBandwidth

statistics::Formula gem5::CommMonitor::MonitorStats::averageReadBandwidth

Definition at line 294 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ averageWriteBandwidth

statistics::Formula gem5::CommMonitor::MonitorStats::averageWriteBandwidth

Definition at line 303 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ disableAddrDists

bool gem5::CommMonitor::MonitorStats::disableAddrDists

Disable flag for address distributions.

Definition at line 361 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ disableBandwidthHists

bool gem5::CommMonitor::MonitorStats::disableBandwidthHists

Disable flag for the bandwidth histograms.

Definition at line 285 of file comm_monitor.hh.

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

◆ disableBurstLengthHists

bool gem5::CommMonitor::MonitorStats::disableBurstLengthHists

Disable flag for burst length histograms.

Definition at line 276 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ disableITTDists

bool gem5::CommMonitor::MonitorStats::disableITTDists

Disable flag for ITT distributions.

Definition at line 315 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ disableLatencyHists

bool gem5::CommMonitor::MonitorStats::disableLatencyHists

Disable flag for latency histograms.

Definition at line 306 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ disableOutstandingHists

bool gem5::CommMonitor::MonitorStats::disableOutstandingHists

Disable flag for outstanding histograms.

Definition at line 331 of file comm_monitor.hh.

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

◆ disableTransactionHists

bool gem5::CommMonitor::MonitorStats::disableTransactionHists

Disable flag for transaction histograms.

Definition at line 350 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ ittReadRead

statistics::Distribution gem5::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 323 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ ittReqReq

statistics::Distribution gem5::CommMonitor::MonitorStats::ittReqReq

Definition at line 325 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ ittWriteWrite

statistics::Distribution gem5::CommMonitor::MonitorStats::ittWriteWrite

Definition at line 324 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ outstandingReadReqs

unsigned int gem5::CommMonitor::MonitorStats::outstandingReadReqs

Definition at line 339 of file comm_monitor.hh.

Referenced by updateReqStats(), and updateRespStats().

◆ outstandingReadsHist

statistics::Histogram gem5::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 338 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ outstandingWriteReqs

unsigned int gem5::CommMonitor::MonitorStats::outstandingWriteReqs

Definition at line 347 of file comm_monitor.hh.

Referenced by updateReqStats(), and updateRespStats().

◆ outstandingWritesHist

statistics::Histogram gem5::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 346 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ readAddrDist

statistics::SparseHistogram gem5::CommMonitor::MonitorStats::readAddrDist

Histogram of number of read accesses to addresses over time.

Definition at line 373 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ readAddrMask

const Addr gem5::CommMonitor::MonitorStats::readAddrMask

Address mask for sources of read accesses to be captured.

Definition at line 364 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ readBandwidthHist

statistics::Histogram gem5::CommMonitor::MonitorStats::readBandwidthHist

Definition at line 292 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ readBurstLengthHist

statistics::Histogram gem5::CommMonitor::MonitorStats::readBurstLengthHist

Histogram of read burst lengths.

Definition at line 279 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ readBytes

unsigned int gem5::CommMonitor::MonitorStats::readBytes

Histogram for read bandwidth per sample window.

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

Definition at line 291 of file comm_monitor.hh.

Referenced by updateRespStats().

◆ readLatencyHist

statistics::Histogram gem5::CommMonitor::MonitorStats::readLatencyHist

Histogram of read request-to-response latencies.

Definition at line 309 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ readTrans

unsigned int gem5::CommMonitor::MonitorStats::readTrans

Definition at line 354 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ readTransHist

statistics::Histogram gem5::CommMonitor::MonitorStats::readTransHist

Histogram of number of read transactions per time bin.

Definition at line 353 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ timeOfLastRead

Tick gem5::CommMonitor::MonitorStats::timeOfLastRead

Definition at line 326 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ timeOfLastReq

Tick gem5::CommMonitor::MonitorStats::timeOfLastReq

Definition at line 328 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ timeOfLastWrite

Tick gem5::CommMonitor::MonitorStats::timeOfLastWrite

Definition at line 327 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ totalReadBytes

statistics::Scalar gem5::CommMonitor::MonitorStats::totalReadBytes

Definition at line 293 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ totalWrittenBytes

statistics::Scalar gem5::CommMonitor::MonitorStats::totalWrittenBytes

Definition at line 302 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ writeAddrDist

statistics::SparseHistogram gem5::CommMonitor::MonitorStats::writeAddrDist

Histogram of number of write accesses to addresses over time.

Definition at line 379 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ writeAddrMask

const Addr gem5::CommMonitor::MonitorStats::writeAddrMask

Address mask for sources of write accesses to be captured.

Definition at line 367 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ writeBandwidthHist

statistics::Histogram gem5::CommMonitor::MonitorStats::writeBandwidthHist

Definition at line 301 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ writeBurstLengthHist

statistics::Histogram gem5::CommMonitor::MonitorStats::writeBurstLengthHist

Histogram of write burst lengths.

Definition at line 282 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateReqStats().

◆ writeLatencyHist

statistics::Histogram gem5::CommMonitor::MonitorStats::writeLatencyHist

Histogram of write request-to-response latencies.

Definition at line 312 of file comm_monitor.hh.

Referenced by MonitorStats(), and updateRespStats().

◆ writeTrans

unsigned int gem5::CommMonitor::MonitorStats::writeTrans

Definition at line 358 of file comm_monitor.hh.

Referenced by updateReqStats().

◆ writeTransHist

statistics::Histogram gem5::CommMonitor::MonitorStats::writeTransHist

Histogram of number of timing write transactions per time bin.

Definition at line 357 of file comm_monitor.hh.

Referenced by MonitorStats().

◆ writtenBytes

unsigned int gem5::CommMonitor::MonitorStats::writtenBytes

Histogram for write bandwidth per sample window.

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

Definition at line 300 of file comm_monitor.hh.

Referenced by updateReqStats().


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

Generated on Wed Dec 21 2022 10:23:27 for gem5 by doxygen 1.9.1