gem5  v21.0.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
BaseCache::CacheStats Struct Reference

#include <base.hh>

Inheritance diagram for BaseCache::CacheStats:
Stats::Group

Public Member Functions

 CacheStats (BaseCache &c)
 
void regStats () override
 Callback to set stat parameters. More...
 
CacheCmdStatscmdStats (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 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

const BaseCachecache
 
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 blockedCycles
 The total number of cycles blocked for each blocked cause. More...
 
Stats::Vector blockedCauses
 The number of times this cache blocked for each blocked cause. More...
 
Stats::Formula avgBlocked
 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...
 
Stats::Scalar dataContractions
 Number of data contractions (blocks that had their compression factor improved). More...
 
std::vector< std::unique_ptr< CacheCmdStats > > cmd
 Per-command statistics. More...
 

Detailed Description

Definition at line 1029 of file base.hh.

Constructor & Destructor Documentation

◆ CacheStats()

BaseCache::CacheStats::CacheStats ( BaseCache c)

Definition at line 2090 of file base.cc.

References ArmISA::c, cmd, MemCmd::NUM_MEM_CMDS, and Stats::reset().

Member Function Documentation

◆ cmdStats()

CacheCmdStats& BaseCache::CacheStats::cmdStats ( const PacketPtr  p)
inline

◆ regStats()

void BaseCache::CacheStats::regStats ( )
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 2156 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.

Member Data Documentation

◆ avgBlocked

Stats::Formula BaseCache::CacheStats::avgBlocked

The average number of cycles blocked for each blocked cause.

Definition at line 1077 of file base.hh.

◆ blockedCauses

Stats::Vector BaseCache::CacheStats::blockedCauses

The number of times this cache blocked for each blocked cause.

Definition at line 1074 of file base.hh.

Referenced by BaseCache::setBlocked().

◆ blockedCycles

Stats::Vector BaseCache::CacheStats::blockedCycles

The total number of cycles blocked for each blocked cause.

Definition at line 1072 of file base.hh.

Referenced by BaseCache::clearBlocked().

◆ cache

const BaseCache& BaseCache::CacheStats::cache

Definition at line 1039 of file base.hh.

◆ cmd

std::vector<std::unique_ptr<CacheCmdStats> > BaseCache::CacheStats::cmd

Per-command statistics.

Definition at line 1133 of file base.hh.

Referenced by CacheStats(), and cmdStats().

◆ dataContractions

Stats::Scalar BaseCache::CacheStats::dataContractions

Number of data contractions (blocks that had their compression factor improved).

Definition at line 1130 of file base.hh.

Referenced by BaseCache::updateCompressionData().

◆ dataExpansions

Stats::Scalar BaseCache::CacheStats::dataExpansions

Number of data expansions.

Definition at line 1124 of file base.hh.

Referenced by BaseCache::updateCompressionData().

◆ demandAccesses

Stats::Formula BaseCache::CacheStats::demandAccesses

The number of demand accesses.

Definition at line 1057 of file base.hh.

◆ demandAvgMissLatency

Stats::Formula BaseCache::CacheStats::demandAvgMissLatency

The average miss latency for demand misses.

Definition at line 1067 of file base.hh.

◆ demandAvgMshrMissLatency

Stats::Formula BaseCache::CacheStats::demandAvgMshrMissLatency

The average latency of a demand MSHR miss.

Definition at line 1113 of file base.hh.

◆ demandHits

Stats::Formula BaseCache::CacheStats::demandHits

Number of hits for demand accesses.

Definition at line 1042 of file base.hh.

◆ demandMisses

Stats::Formula BaseCache::CacheStats::demandMisses

Number of misses for demand accesses.

Definition at line 1047 of file base.hh.

◆ demandMissLatency

Stats::Formula BaseCache::CacheStats::demandMissLatency

Total number of cycles spent waiting for demand misses.

Definition at line 1052 of file base.hh.

◆ demandMissRate

Stats::Formula BaseCache::CacheStats::demandMissRate

The miss rate of all demand accesses.

Definition at line 1062 of file base.hh.

◆ demandMshrHits

Stats::Formula BaseCache::CacheStats::demandMshrHits

Demand misses that hit in the MSHRs.

Definition at line 1087 of file base.hh.

◆ demandMshrMisses

Stats::Formula BaseCache::CacheStats::demandMshrMisses

Demand misses that miss in the MSHRs.

Definition at line 1092 of file base.hh.

◆ demandMshrMissLatency

Stats::Formula BaseCache::CacheStats::demandMshrMissLatency

Total cycle latency of demand MSHR misses.

Definition at line 1100 of file base.hh.

◆ demandMshrMissRate

Stats::Formula BaseCache::CacheStats::demandMshrMissRate

The demand miss rate in the MSHRs.

Definition at line 1108 of file base.hh.

◆ overallAccesses

Stats::Formula BaseCache::CacheStats::overallAccesses

The number of overall accesses.

Definition at line 1059 of file base.hh.

◆ overallAvgMissLatency

Stats::Formula BaseCache::CacheStats::overallAvgMissLatency

The average miss latency for all misses.

Definition at line 1069 of file base.hh.

◆ overallAvgMshrMissLatency

Stats::Formula BaseCache::CacheStats::overallAvgMshrMissLatency

The average overall latency of an MSHR miss.

Definition at line 1115 of file base.hh.

◆ overallAvgMshrUncacheableLatency

Stats::Formula BaseCache::CacheStats::overallAvgMshrUncacheableLatency

The average overall latency of an MSHR miss.

Definition at line 1118 of file base.hh.

◆ overallHits

Stats::Formula BaseCache::CacheStats::overallHits

Number of hit for all accesses.

Definition at line 1044 of file base.hh.

◆ overallMisses

Stats::Formula BaseCache::CacheStats::overallMisses

Number of misses for all accesses.

Definition at line 1049 of file base.hh.

◆ overallMissLatency

Stats::Formula BaseCache::CacheStats::overallMissLatency

Total number of cycles spent waiting for all misses.

Definition at line 1054 of file base.hh.

◆ overallMissRate

Stats::Formula BaseCache::CacheStats::overallMissRate

The miss rate for all accesses.

Definition at line 1064 of file base.hh.

◆ overallMshrHits

Stats::Formula BaseCache::CacheStats::overallMshrHits

Total number of misses that hit in the MSHRs.

Definition at line 1089 of file base.hh.

◆ overallMshrMisses

Stats::Formula BaseCache::CacheStats::overallMshrMisses

Total number of misses that miss in the MSHRs.

Definition at line 1094 of file base.hh.

◆ overallMshrMissLatency

Stats::Formula BaseCache::CacheStats::overallMshrMissLatency

Total cycle latency of overall MSHR misses.

Definition at line 1102 of file base.hh.

◆ overallMshrMissRate

Stats::Formula BaseCache::CacheStats::overallMshrMissRate

The overall miss rate in the MSHRs.

Definition at line 1110 of file base.hh.

◆ overallMshrUncacheable

Stats::Formula BaseCache::CacheStats::overallMshrUncacheable

Total number of misses that miss in the MSHRs.

Definition at line 1097 of file base.hh.

◆ overallMshrUncacheableLatency

Stats::Formula BaseCache::CacheStats::overallMshrUncacheableLatency

Total cycle latency of overall MSHR misses.

Definition at line 1105 of file base.hh.

◆ replacements

Stats::Scalar BaseCache::CacheStats::replacements

Number of replacements of valid blocks.

Definition at line 1121 of file base.hh.

Referenced by BaseCache::handleEvictions().

◆ unusedPrefetches

Stats::Scalar BaseCache::CacheStats::unusedPrefetches

The number of times a HW-prefetched block is evicted w/o reference.

Definition at line 1081 of file base.hh.

Referenced by BaseCache::invalidateBlock().

◆ writebacks

Stats::Vector BaseCache::CacheStats::writebacks

Number of blocks written back per thread.

Definition at line 1084 of file base.hh.

Referenced by BaseCache::writebackBlk().


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

Generated on Tue Jun 22 2021 15:28:35 for gem5 by doxygen 1.8.17