gem5
|
Stats declarations, all in a struct for convenience. More...
Public Member Functions | |
MonitorStats (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) |
Stats declarations, all in a struct for convenience.
Definition at line 273 of file comm_monitor.hh.
|
inline |
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 387 of file comm_monitor.hh.
void CommMonitor::MonitorStats::updateReqStats | ( | const ProbePoints::PacketInfo & | pkt, |
bool | is_atomic, | ||
bool | expects_response | ||
) |
Definition at line 119 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.
Referenced by CommMonitor::recvAtomic(), and CommMonitor::recvTimingReq().
void CommMonitor::MonitorStats::updateRespStats | ( | const ProbePoints::PacketInfo & | pkt, |
Tick | latency, | ||
bool | is_atomic | ||
) |
Definition at line 186 of file comm_monitor.cc.
References ProbePoints::PacketInfo::cmd, MemCmd::isRead(), MemCmd::isWrite(), and ProbePoints::PacketInfo::size.
Referenced by CommMonitor::recvAtomic(), and CommMonitor::recvTimingResp().
Stats::Formula CommMonitor::MonitorStats::averageReadBW |
Definition at line 294 of file comm_monitor.hh.
Referenced by CommMonitor::regStats().
Stats::Formula CommMonitor::MonitorStats::averageWriteBW |
Definition at line 303 of file comm_monitor.hh.
Referenced by CommMonitor::regStats().
bool CommMonitor::MonitorStats::disableAddrDists |
Disable flag for address distributions.
Definition at line 362 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
bool CommMonitor::MonitorStats::disableBandwidthHists |
Disable flag for the bandwidth histograms.
Definition at line 286 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), CommMonitor::samplePeriodic(), and updateReqStats().
bool CommMonitor::MonitorStats::disableBurstLengthHists |
Disable flag for burst length histograms.
Definition at line 277 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
bool CommMonitor::MonitorStats::disableITTDists |
Disable flag for ITT distributions.
Definition at line 316 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
bool CommMonitor::MonitorStats::disableLatencyHists |
Disable flag for latency histograms.
Definition at line 307 of file comm_monitor.hh.
Referenced by CommMonitor::recvTimingReq(), CommMonitor::recvTimingResp(), and CommMonitor::regStats().
bool CommMonitor::MonitorStats::disableOutstandingHists |
Disable flag for outstanding histograms.
Definition at line 332 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), CommMonitor::samplePeriodic(), and updateReqStats().
bool CommMonitor::MonitorStats::disableTransactionHists |
Disable flag for transaction histograms.
Definition at line 351 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), CommMonitor::samplePeriodic(), 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 324 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
Stats::Distribution CommMonitor::MonitorStats::ittReqReq |
Definition at line 326 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
Stats::Distribution CommMonitor::MonitorStats::ittWriteWrite |
Definition at line 325 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
unsigned int CommMonitor::MonitorStats::outstandingReadReqs |
Definition at line 340 of file comm_monitor.hh.
Referenced by CommMonitor::samplePeriodic(), and updateReqStats().
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 339 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and CommMonitor::samplePeriodic().
unsigned int CommMonitor::MonitorStats::outstandingWriteReqs |
Definition at line 348 of file comm_monitor.hh.
Referenced by CommMonitor::samplePeriodic(), and updateReqStats().
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 347 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and CommMonitor::samplePeriodic().
Stats::SparseHistogram CommMonitor::MonitorStats::readAddrDist |
Histogram of number of read accesses to addresses over time.
Definition at line 374 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
const Addr CommMonitor::MonitorStats::readAddrMask |
Address mask for sources of read accesses to be captured.
Definition at line 365 of file comm_monitor.hh.
Referenced by updateReqStats().
Stats::Histogram CommMonitor::MonitorStats::readBandwidthHist |
Definition at line 293 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and CommMonitor::samplePeriodic().
Stats::Histogram CommMonitor::MonitorStats::readBurstLengthHist |
Histogram of read burst lengths.
Definition at line 280 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), 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 292 of file comm_monitor.hh.
Referenced by CommMonitor::samplePeriodic().
Stats::Histogram CommMonitor::MonitorStats::readLatencyHist |
Histogram of read request-to-response latencies.
Definition at line 310 of file comm_monitor.hh.
Referenced by CommMonitor::regStats().
unsigned int CommMonitor::MonitorStats::readTrans |
Definition at line 355 of file comm_monitor.hh.
Referenced by CommMonitor::samplePeriodic(), and updateReqStats().
Stats::Histogram CommMonitor::MonitorStats::readTransHist |
Histogram of number of read transactions per time bin.
Definition at line 354 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and CommMonitor::samplePeriodic().
Tick CommMonitor::MonitorStats::timeOfLastRead |
Definition at line 327 of file comm_monitor.hh.
Referenced by updateReqStats().
Tick CommMonitor::MonitorStats::timeOfLastReq |
Definition at line 329 of file comm_monitor.hh.
Referenced by updateReqStats().
Tick CommMonitor::MonitorStats::timeOfLastWrite |
Definition at line 328 of file comm_monitor.hh.
Referenced by updateReqStats().
Stats::Scalar CommMonitor::MonitorStats::totalReadBytes |
Definition at line 295 of file comm_monitor.hh.
Referenced by CommMonitor::regStats().
Stats::Scalar CommMonitor::MonitorStats::totalWrittenBytes |
Definition at line 304 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
Stats::SparseHistogram CommMonitor::MonitorStats::writeAddrDist |
Histogram of number of write accesses to addresses over time.
Definition at line 380 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
const Addr CommMonitor::MonitorStats::writeAddrMask |
Address mask for sources of write accesses to be captured.
Definition at line 368 of file comm_monitor.hh.
Referenced by updateReqStats().
Stats::Histogram CommMonitor::MonitorStats::writeBandwidthHist |
Definition at line 302 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and CommMonitor::samplePeriodic().
Stats::Histogram CommMonitor::MonitorStats::writeBurstLengthHist |
Histogram of write burst lengths.
Definition at line 283 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and updateReqStats().
Stats::Histogram CommMonitor::MonitorStats::writeLatencyHist |
Histogram of write request-to-response latencies.
Definition at line 313 of file comm_monitor.hh.
Referenced by CommMonitor::regStats().
unsigned int CommMonitor::MonitorStats::writeTrans |
Definition at line 359 of file comm_monitor.hh.
Referenced by CommMonitor::samplePeriodic(), and updateReqStats().
Stats::Histogram CommMonitor::MonitorStats::writeTransHist |
Histogram of number of timing write transactions per time bin.
Definition at line 358 of file comm_monitor.hh.
Referenced by CommMonitor::regStats(), and CommMonitor::samplePeriodic().
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 301 of file comm_monitor.hh.
Referenced by CommMonitor::samplePeriodic(), and updateReqStats().