|
gem5
v20.1.0.5
|
#include <base.hh>
Public Member Functions | |
| CacheStats (BaseCache &c) | |
| void | regStats () override |
| Callback to set stat parameters. More... | |
| CacheCmdStats & | cmdStats (const PacketPtr p) |
Public Member Functions inherited from Stats::Group | |
| Group (Group *parent, const char *name=nullptr) | |
| Construct a new statistics group. More... | |
| virtual | ~Group () |
| 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... | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
Public Attributes | |
| const BaseCache & | cache |
| Stats::Formula | demandHits |
| Number of hits for demand accesses. More... | |
| Stats::Formula | overallHits |
| Number of hit for all accesses. More... | |
| Stats::Formula | demandMisses |
| Number of misses for demand accesses. More... | |
| Stats::Formula | overallMisses |
| Number of misses for all accesses. More... | |
| Stats::Formula | demandMissLatency |
| Total number of cycles spent waiting for demand misses. More... | |
| Stats::Formula | overallMissLatency |
| Total number of cycles spent waiting for all misses. More... | |
| Stats::Formula | demandAccesses |
| The number of demand accesses. More... | |
| Stats::Formula | overallAccesses |
| The number of overall accesses. More... | |
| Stats::Formula | demandMissRate |
| The miss rate of all demand accesses. More... | |
| Stats::Formula | overallMissRate |
| The miss rate for all accesses. More... | |
| Stats::Formula | demandAvgMissLatency |
| The average miss latency for demand misses. More... | |
| Stats::Formula | overallAvgMissLatency |
| The average miss latency for all misses. More... | |
| Stats::Vector | blocked_cycles |
| The total number of cycles blocked for each blocked cause. More... | |
| Stats::Vector | blocked_causes |
| The number of times this cache blocked for each blocked cause. More... | |
| Stats::Formula | avg_blocked |
| The average number of cycles blocked for each blocked cause. More... | |
| Stats::Scalar | unusedPrefetches |
| The number of times a HW-prefetched block is evicted w/o reference. More... | |
| Stats::Vector | writebacks |
| Number of blocks written back per thread. More... | |
| Stats::Formula | demandMshrHits |
| Demand misses that hit in the MSHRs. More... | |
| Stats::Formula | overallMshrHits |
| Total number of misses that hit in the MSHRs. More... | |
| Stats::Formula | demandMshrMisses |
| Demand misses that miss in the MSHRs. More... | |
| Stats::Formula | overallMshrMisses |
| Total number of misses that miss in the MSHRs. More... | |
| Stats::Formula | overallMshrUncacheable |
| Total number of misses that miss in the MSHRs. More... | |
| Stats::Formula | demandMshrMissLatency |
| Total cycle latency of demand MSHR misses. More... | |
| Stats::Formula | overallMshrMissLatency |
| Total cycle latency of overall MSHR misses. More... | |
| Stats::Formula | overallMshrUncacheableLatency |
| Total cycle latency of overall MSHR misses. More... | |
| Stats::Formula | demandMshrMissRate |
| The demand miss rate in the MSHRs. More... | |
| Stats::Formula | overallMshrMissRate |
| The overall miss rate in the MSHRs. More... | |
| Stats::Formula | demandAvgMshrMissLatency |
| The average latency of a demand MSHR miss. More... | |
| Stats::Formula | overallAvgMshrMissLatency |
| The average overall latency of an MSHR miss. More... | |
| Stats::Formula | overallAvgMshrUncacheableLatency |
| The average overall latency of an MSHR miss. More... | |
| Stats::Scalar | replacements |
| Number of replacements of valid blocks. More... | |
| Stats::Scalar | dataExpansions |
| Number of data expansions. More... | |
| std::vector< std::unique_ptr< CacheCmdStats > > | cmd |
| Per-command statistics. More... | |
| BaseCache::CacheStats::CacheStats | ( | BaseCache & | c | ) |
Definition at line 1990 of file base.cc.
References ArmISA::c, cmd, MemCmd::NUM_MEM_CMDS, and Stats::reset().
|
inline |
Definition at line 978 of file base.hh.
References cmd, and MipsISA::p.
Referenced by BaseCache::getNextQueueEntry(), Cache::handleTimingReqMiss(), BaseCache::handleTimingReqMiss(), BaseCache::incHitCount(), BaseCache::incMissCount(), BaseCache::recvTimingResp(), NoncoherentCache::serviceMSHRTargets(), and Cache::serviceMSHRTargets().
|
overridevirtual |
Callback to set stat parameters.
This callback is typically used for complex stats (e.g., distributions) that need parameters in addition to a name and a description. Stat names and descriptions should typically be set from the constructor usingo from the constructor using the ADD_STAT macro.
Reimplemented from Stats::Group.
Definition at line 2060 of file base.cc.
References BaseCache::Blocked_NoMSHRs, BaseCache::Blocked_NoTargets, System::getRequestorName(), ArmISA::i, System::maxRequestors(), Stats::nonan, Stats::nozero, BaseCache::NUM_BLOCKED_CAUSES, Stats::Group::regStats(), SUM_DEMAND, SUM_NON_DEMAND, BaseCache::system, and Stats::total.
| Stats::Formula BaseCache::CacheStats::avg_blocked |
| Stats::Vector BaseCache::CacheStats::blocked_causes |
The number of times this cache blocked for each blocked cause.
Definition at line 1017 of file base.hh.
Referenced by BaseCache::setBlocked().
| Stats::Vector BaseCache::CacheStats::blocked_cycles |
The total number of cycles blocked for each blocked cause.
Definition at line 1015 of file base.hh.
Referenced by BaseCache::clearBlocked().
| std::vector<std::unique_ptr<CacheCmdStats> > BaseCache::CacheStats::cmd |
Per-command statistics.
Definition at line 1070 of file base.hh.
Referenced by CacheStats(), and cmdStats().
| Stats::Scalar BaseCache::CacheStats::dataExpansions |
Number of data expansions.
Definition at line 1067 of file base.hh.
Referenced by BaseCache::updateCompressionData().
| Stats::Formula BaseCache::CacheStats::demandAccesses |
| Stats::Formula BaseCache::CacheStats::demandAvgMissLatency |
| Stats::Formula BaseCache::CacheStats::demandAvgMshrMissLatency |
| Stats::Formula BaseCache::CacheStats::demandHits |
| Stats::Formula BaseCache::CacheStats::demandMisses |
| Stats::Formula BaseCache::CacheStats::demandMissLatency |
| Stats::Formula BaseCache::CacheStats::demandMissRate |
| Stats::Formula BaseCache::CacheStats::demandMshrHits |
| Stats::Formula BaseCache::CacheStats::demandMshrMisses |
| Stats::Formula BaseCache::CacheStats::demandMshrMissLatency |
| Stats::Formula BaseCache::CacheStats::demandMshrMissRate |
| Stats::Formula BaseCache::CacheStats::overallAccesses |
| Stats::Formula BaseCache::CacheStats::overallAvgMissLatency |
| Stats::Formula BaseCache::CacheStats::overallAvgMshrMissLatency |
| Stats::Formula BaseCache::CacheStats::overallAvgMshrUncacheableLatency |
| Stats::Formula BaseCache::CacheStats::overallHits |
| Stats::Formula BaseCache::CacheStats::overallMisses |
| Stats::Formula BaseCache::CacheStats::overallMissLatency |
| Stats::Formula BaseCache::CacheStats::overallMissRate |
| Stats::Formula BaseCache::CacheStats::overallMshrHits |
| Stats::Formula BaseCache::CacheStats::overallMshrMisses |
| Stats::Formula BaseCache::CacheStats::overallMshrMissLatency |
| Stats::Formula BaseCache::CacheStats::overallMshrMissRate |
| Stats::Formula BaseCache::CacheStats::overallMshrUncacheable |
| Stats::Formula BaseCache::CacheStats::overallMshrUncacheableLatency |
| Stats::Scalar BaseCache::CacheStats::replacements |
Number of replacements of valid blocks.
Definition at line 1064 of file base.hh.
Referenced by BaseCache::handleEvictions().
| Stats::Scalar BaseCache::CacheStats::unusedPrefetches |
The number of times a HW-prefetched block is evicted w/o reference.
Definition at line 1024 of file base.hh.
Referenced by BaseCache::invalidateBlock().
| Stats::Vector BaseCache::CacheStats::writebacks |
Number of blocks written back per thread.
Definition at line 1027 of file base.hh.
Referenced by BaseCache::writebackBlk().