gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::BaseCache::CacheStats Struct Reference

#include <base.hh>

Inheritance diagram for gem5::BaseCache::CacheStats:
gem5::statistics::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 gem5::statistics::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 (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

const BaseCachecache
 
statistics::Formula demandHits
 Number of hits for demand accesses. More...
 
statistics::Formula overallHits
 Number of hit for all accesses. More...
 
statistics::Formula demandMisses
 Number of misses for demand accesses. More...
 
statistics::Formula overallMisses
 Number of misses for all accesses. More...
 
statistics::Formula demandMissLatency
 Total number of cycles spent waiting for demand misses. More...
 
statistics::Formula overallMissLatency
 Total number of cycles spent waiting for all misses. More...
 
statistics::Formula demandAccesses
 The number of demand accesses. More...
 
statistics::Formula overallAccesses
 The number of overall accesses. More...
 
statistics::Formula demandMissRate
 The miss rate of all demand accesses. More...
 
statistics::Formula overallMissRate
 The miss rate for all accesses. More...
 
statistics::Formula demandAvgMissLatency
 The average miss latency for demand misses. More...
 
statistics::Formula overallAvgMissLatency
 The average miss latency for all misses. More...
 
statistics::Vector blockedCycles
 The total number of cycles blocked for each blocked cause. More...
 
statistics::Vector blockedCauses
 The number of times this cache blocked for each blocked cause. More...
 
statistics::Formula avgBlocked
 The average number of cycles blocked for each blocked cause. More...
 
statistics::Vector writebacks
 Number of blocks written back per thread. More...
 
statistics::Formula demandMshrHits
 Demand misses that hit in the MSHRs. More...
 
statistics::Formula overallMshrHits
 Total number of misses that hit in the MSHRs. More...
 
statistics::Formula demandMshrMisses
 Demand misses that miss in the MSHRs. More...
 
statistics::Formula overallMshrMisses
 Total number of misses that miss in the MSHRs. More...
 
statistics::Formula overallMshrUncacheable
 Total number of misses that miss in the MSHRs. More...
 
statistics::Formula demandMshrMissLatency
 Total cycle latency of demand MSHR misses. More...
 
statistics::Formula overallMshrMissLatency
 Total cycle latency of overall MSHR misses. More...
 
statistics::Formula overallMshrUncacheableLatency
 Total cycle latency of overall MSHR misses. More...
 
statistics::Formula demandMshrMissRate
 The demand miss rate in the MSHRs. More...
 
statistics::Formula overallMshrMissRate
 The overall miss rate in the MSHRs. More...
 
statistics::Formula demandAvgMshrMissLatency
 The average latency of a demand MSHR miss. More...
 
statistics::Formula overallAvgMshrMissLatency
 The average overall latency of an MSHR miss. More...
 
statistics::Formula overallAvgMshrUncacheableLatency
 The average overall latency of an MSHR miss. More...
 
statistics::Scalar replacements
 Number of replacements of valid blocks. More...
 
statistics::Scalar dataExpansions
 Number of data expansions. More...
 
statistics::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 1037 of file base.hh.

Constructor & Destructor Documentation

◆ CacheStats()

gem5::BaseCache::CacheStats::CacheStats ( BaseCache c)

Definition at line 2111 of file base.cc.

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

Member Function Documentation

◆ cmdStats()

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

◆ regStats()

void gem5::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 gem5::statistics::Group.

Definition at line 2191 of file base.cc.

References gem5::BaseCache::Blocked_NoMSHRs, gem5::BaseCache::Blocked_NoTargets, gem5::System::getRequestorName(), gem5::ArmISA::i, gem5::System::maxRequestors(), gem5::statistics::nonan, gem5::statistics::nozero, gem5::BaseCache::NUM_BLOCKED_CAUSES, gem5::statistics::Group::regStats(), SUM_DEMAND, SUM_NON_DEMAND, gem5::BaseCache::system, and gem5::statistics::total.

Member Data Documentation

◆ avgBlocked

statistics::Formula gem5::BaseCache::CacheStats::avgBlocked

The average number of cycles blocked for each blocked cause.

Definition at line 1085 of file base.hh.

◆ blockedCauses

statistics::Vector gem5::BaseCache::CacheStats::blockedCauses

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

Definition at line 1082 of file base.hh.

Referenced by gem5::BaseCache::setBlocked().

◆ blockedCycles

statistics::Vector gem5::BaseCache::CacheStats::blockedCycles

The total number of cycles blocked for each blocked cause.

Definition at line 1080 of file base.hh.

Referenced by gem5::BaseCache::clearBlocked().

◆ cache

const BaseCache& gem5::BaseCache::CacheStats::cache

Definition at line 1047 of file base.hh.

◆ cmd

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

Per-command statistics.

Definition at line 1137 of file base.hh.

Referenced by CacheStats(), and cmdStats().

◆ dataContractions

statistics::Scalar gem5::BaseCache::CacheStats::dataContractions

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

Definition at line 1134 of file base.hh.

Referenced by gem5::BaseCache::updateCompressionData().

◆ dataExpansions

statistics::Scalar gem5::BaseCache::CacheStats::dataExpansions

Number of data expansions.

Definition at line 1128 of file base.hh.

Referenced by gem5::BaseCache::updateCompressionData().

◆ demandAccesses

statistics::Formula gem5::BaseCache::CacheStats::demandAccesses

The number of demand accesses.

Definition at line 1065 of file base.hh.

◆ demandAvgMissLatency

statistics::Formula gem5::BaseCache::CacheStats::demandAvgMissLatency

The average miss latency for demand misses.

Definition at line 1075 of file base.hh.

◆ demandAvgMshrMissLatency

statistics::Formula gem5::BaseCache::CacheStats::demandAvgMshrMissLatency

The average latency of a demand MSHR miss.

Definition at line 1117 of file base.hh.

◆ demandHits

statistics::Formula gem5::BaseCache::CacheStats::demandHits

Number of hits for demand accesses.

Definition at line 1050 of file base.hh.

◆ demandMisses

statistics::Formula gem5::BaseCache::CacheStats::demandMisses

Number of misses for demand accesses.

Definition at line 1055 of file base.hh.

◆ demandMissLatency

statistics::Formula gem5::BaseCache::CacheStats::demandMissLatency

Total number of cycles spent waiting for demand misses.

Definition at line 1060 of file base.hh.

◆ demandMissRate

statistics::Formula gem5::BaseCache::CacheStats::demandMissRate

The miss rate of all demand accesses.

Definition at line 1070 of file base.hh.

◆ demandMshrHits

statistics::Formula gem5::BaseCache::CacheStats::demandMshrHits

Demand misses that hit in the MSHRs.

Definition at line 1091 of file base.hh.

◆ demandMshrMisses

statistics::Formula gem5::BaseCache::CacheStats::demandMshrMisses

Demand misses that miss in the MSHRs.

Definition at line 1096 of file base.hh.

◆ demandMshrMissLatency

statistics::Formula gem5::BaseCache::CacheStats::demandMshrMissLatency

Total cycle latency of demand MSHR misses.

Definition at line 1104 of file base.hh.

◆ demandMshrMissRate

statistics::Formula gem5::BaseCache::CacheStats::demandMshrMissRate

The demand miss rate in the MSHRs.

Definition at line 1112 of file base.hh.

◆ overallAccesses

statistics::Formula gem5::BaseCache::CacheStats::overallAccesses

The number of overall accesses.

Definition at line 1067 of file base.hh.

◆ overallAvgMissLatency

statistics::Formula gem5::BaseCache::CacheStats::overallAvgMissLatency

The average miss latency for all misses.

Definition at line 1077 of file base.hh.

◆ overallAvgMshrMissLatency

statistics::Formula gem5::BaseCache::CacheStats::overallAvgMshrMissLatency

The average overall latency of an MSHR miss.

Definition at line 1119 of file base.hh.

◆ overallAvgMshrUncacheableLatency

statistics::Formula gem5::BaseCache::CacheStats::overallAvgMshrUncacheableLatency

The average overall latency of an MSHR miss.

Definition at line 1122 of file base.hh.

◆ overallHits

statistics::Formula gem5::BaseCache::CacheStats::overallHits

Number of hit for all accesses.

Definition at line 1052 of file base.hh.

◆ overallMisses

statistics::Formula gem5::BaseCache::CacheStats::overallMisses

Number of misses for all accesses.

Definition at line 1057 of file base.hh.

◆ overallMissLatency

statistics::Formula gem5::BaseCache::CacheStats::overallMissLatency

Total number of cycles spent waiting for all misses.

Definition at line 1062 of file base.hh.

◆ overallMissRate

statistics::Formula gem5::BaseCache::CacheStats::overallMissRate

The miss rate for all accesses.

Definition at line 1072 of file base.hh.

◆ overallMshrHits

statistics::Formula gem5::BaseCache::CacheStats::overallMshrHits

Total number of misses that hit in the MSHRs.

Definition at line 1093 of file base.hh.

◆ overallMshrMisses

statistics::Formula gem5::BaseCache::CacheStats::overallMshrMisses

Total number of misses that miss in the MSHRs.

Definition at line 1098 of file base.hh.

◆ overallMshrMissLatency

statistics::Formula gem5::BaseCache::CacheStats::overallMshrMissLatency

Total cycle latency of overall MSHR misses.

Definition at line 1106 of file base.hh.

◆ overallMshrMissRate

statistics::Formula gem5::BaseCache::CacheStats::overallMshrMissRate

The overall miss rate in the MSHRs.

Definition at line 1114 of file base.hh.

◆ overallMshrUncacheable

statistics::Formula gem5::BaseCache::CacheStats::overallMshrUncacheable

Total number of misses that miss in the MSHRs.

Definition at line 1101 of file base.hh.

◆ overallMshrUncacheableLatency

statistics::Formula gem5::BaseCache::CacheStats::overallMshrUncacheableLatency

Total cycle latency of overall MSHR misses.

Definition at line 1109 of file base.hh.

◆ replacements

statistics::Scalar gem5::BaseCache::CacheStats::replacements

Number of replacements of valid blocks.

Definition at line 1125 of file base.hh.

Referenced by gem5::BaseCache::handleEvictions().

◆ writebacks

statistics::Vector gem5::BaseCache::CacheStats::writebacks

Number of blocks written back per thread.

Definition at line 1088 of file base.hh.

Referenced by gem5::BaseCache::writebackBlk().


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

Generated on Tue Sep 21 2021 12:27:19 for gem5 by doxygen 1.8.17