|
gem5
v21.0.1.0
|
Stats declarations, all in a struct for convenience. More...
Public Member Functions | |
| MonitorStats (Stats::Group *parent, const CommMonitorParams ¶ms) | |
| 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 Info * | resolveStat (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 | |
| Group & | operator= (const Group &)=delete |
Stats declarations, all in a struct for convenience.
Definition at line 270 of file comm_monitor.hh.
| CommMonitor::MonitorStats::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.
Definition at line 99 of file comm_monitor.cc.
References averageReadBandwidth, averageWriteBandwidth, Byte, disableAddrDists, disableBandwidthHists, disableBurstLengthHists, disableITTDists, disableLatencyHists, disableOutstandingHists, disableTransactionHists, Stats::DataWrap< Derived, InfoProxyType >::flags(), Stats::Distribution::init(), Stats::Histogram::init(), Stats::SparseHistogram::init(), ittReadRead, ittReqReq, ittWriteWrite, Stats::nozero, outstandingReadsHist, outstandingWritesHist, SimObject::params(), Stats::pdf, readAddrDist, readBandwidthHist, readBurstLengthHist, readLatencyHist, readTransHist, totalReadBytes, totalWrittenBytes, writeAddrDist, writeBandwidthHist, writeBurstLengthHist, writeLatencyHist, and writeTransHist.
| void CommMonitor::MonitorStats::updateReqStats | ( | const ProbePoints::PacketInfo & | pkt, |
| bool | is_atomic, | ||
| bool | expects_response | ||
| ) |
Definition at line 248 of file comm_monitor.cc.
References ProbePoints::PacketInfo::addr, ProbePoints::PacketInfo::cmd, curTick(), disableAddrDists, disableBandwidthHists, disableBurstLengthHists, disableITTDists, disableOutstandingHists, disableTransactionHists, MemCmd::isRead(), MemCmd::isWrite(), ittReadRead, ittReqReq, ittWriteWrite, outstandingReadReqs, outstandingWriteReqs, readAddrDist, readAddrMask, readBurstLengthHist, readTrans, Stats::DistBase< Derived, Stor >::sample(), Stats::SparseHistBase< Derived, Stor >::sample(), ProbePoints::PacketInfo::size, timeOfLastRead, timeOfLastReq, timeOfLastWrite, totalWrittenBytes, writeAddrDist, writeAddrMask, writeBurstLengthHist, writeTrans, and writtenBytes.
| void CommMonitor::MonitorStats::updateRespStats | ( | const ProbePoints::PacketInfo & | pkt, |
| Tick | latency, | ||
| bool | is_atomic | ||
| ) |
Definition at line 315 of file comm_monitor.cc.
References ProbePoints::PacketInfo::cmd, disableBandwidthHists, disableLatencyHists, disableOutstandingHists, MemCmd::isRead(), MemCmd::isWrite(), outstandingReadReqs, outstandingWriteReqs, readBytes, readLatencyHist, Stats::DistBase< Derived, Stor >::sample(), ProbePoints::PacketInfo::size, totalReadBytes, and writeLatencyHist.
| Stats::Formula CommMonitor::MonitorStats::averageReadBandwidth |
Definition at line 291 of file comm_monitor.hh.
Referenced by MonitorStats().
| Stats::Formula CommMonitor::MonitorStats::averageWriteBandwidth |
Definition at line 300 of file comm_monitor.hh.
Referenced by MonitorStats().
| bool CommMonitor::MonitorStats::disableAddrDists |
Disable flag for address distributions.
Definition at line 358 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| bool CommMonitor::MonitorStats::disableBandwidthHists |
Disable flag for the bandwidth histograms.
Definition at line 282 of file comm_monitor.hh.
Referenced by MonitorStats(), updateReqStats(), and updateRespStats().
| bool CommMonitor::MonitorStats::disableBurstLengthHists |
Disable flag for burst length histograms.
Definition at line 273 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| bool CommMonitor::MonitorStats::disableITTDists |
Disable flag for ITT distributions.
Definition at line 312 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| bool CommMonitor::MonitorStats::disableLatencyHists |
Disable flag for latency histograms.
Definition at line 303 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateRespStats().
| bool CommMonitor::MonitorStats::disableOutstandingHists |
Disable flag for outstanding histograms.
Definition at line 328 of file comm_monitor.hh.
Referenced by MonitorStats(), updateReqStats(), and updateRespStats().
| bool CommMonitor::MonitorStats::disableTransactionHists |
Disable flag for transaction histograms.
Definition at line 347 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| 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 320 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| Stats::Distribution CommMonitor::MonitorStats::ittReqReq |
Definition at line 322 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| Stats::Distribution CommMonitor::MonitorStats::ittWriteWrite |
Definition at line 321 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| unsigned int CommMonitor::MonitorStats::outstandingReadReqs |
Definition at line 336 of file comm_monitor.hh.
Referenced by updateReqStats(), and updateRespStats().
| 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 335 of file comm_monitor.hh.
Referenced by MonitorStats().
| unsigned int CommMonitor::MonitorStats::outstandingWriteReqs |
Definition at line 344 of file comm_monitor.hh.
Referenced by updateReqStats(), and updateRespStats().
| 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 343 of file comm_monitor.hh.
Referenced by MonitorStats().
| Stats::SparseHistogram CommMonitor::MonitorStats::readAddrDist |
Histogram of number of read accesses to addresses over time.
Definition at line 370 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| const Addr CommMonitor::MonitorStats::readAddrMask |
Address mask for sources of read accesses to be captured.
Definition at line 361 of file comm_monitor.hh.
Referenced by updateReqStats().
| Stats::Histogram CommMonitor::MonitorStats::readBandwidthHist |
Definition at line 289 of file comm_monitor.hh.
Referenced by MonitorStats().
| Stats::Histogram CommMonitor::MonitorStats::readBurstLengthHist |
Histogram of read burst lengths.
Definition at line 276 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| 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 288 of file comm_monitor.hh.
Referenced by updateRespStats().
| Stats::Histogram CommMonitor::MonitorStats::readLatencyHist |
Histogram of read request-to-response latencies.
Definition at line 306 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateRespStats().
| unsigned int CommMonitor::MonitorStats::readTrans |
Definition at line 351 of file comm_monitor.hh.
Referenced by updateReqStats().
| Stats::Histogram CommMonitor::MonitorStats::readTransHist |
Histogram of number of read transactions per time bin.
Definition at line 350 of file comm_monitor.hh.
Referenced by MonitorStats().
| Tick CommMonitor::MonitorStats::timeOfLastRead |
Definition at line 323 of file comm_monitor.hh.
Referenced by updateReqStats().
| Tick CommMonitor::MonitorStats::timeOfLastReq |
Definition at line 325 of file comm_monitor.hh.
Referenced by updateReqStats().
| Tick CommMonitor::MonitorStats::timeOfLastWrite |
Definition at line 324 of file comm_monitor.hh.
Referenced by updateReqStats().
| Stats::Scalar CommMonitor::MonitorStats::totalReadBytes |
Definition at line 290 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateRespStats().
| Stats::Scalar CommMonitor::MonitorStats::totalWrittenBytes |
Definition at line 299 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| Stats::SparseHistogram CommMonitor::MonitorStats::writeAddrDist |
Histogram of number of write accesses to addresses over time.
Definition at line 376 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| const Addr CommMonitor::MonitorStats::writeAddrMask |
Address mask for sources of write accesses to be captured.
Definition at line 364 of file comm_monitor.hh.
Referenced by updateReqStats().
| Stats::Histogram CommMonitor::MonitorStats::writeBandwidthHist |
Definition at line 298 of file comm_monitor.hh.
Referenced by MonitorStats().
| Stats::Histogram CommMonitor::MonitorStats::writeBurstLengthHist |
Histogram of write burst lengths.
Definition at line 279 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateReqStats().
| Stats::Histogram CommMonitor::MonitorStats::writeLatencyHist |
Histogram of write request-to-response latencies.
Definition at line 309 of file comm_monitor.hh.
Referenced by MonitorStats(), and updateRespStats().
| unsigned int CommMonitor::MonitorStats::writeTrans |
Definition at line 355 of file comm_monitor.hh.
Referenced by updateReqStats().
| Stats::Histogram CommMonitor::MonitorStats::writeTransHist |
Histogram of number of timing write transactions per time bin.
Definition at line 354 of file comm_monitor.hh.
Referenced by MonitorStats().
| 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 297 of file comm_monitor.hh.
Referenced by updateReqStats().