gem5  v20.1.0.0
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...
 
 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 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...
 

Detailed Description

Definition at line 972 of file base.hh.

Constructor & Destructor Documentation

◆ CacheStats()

BaseCache::CacheStats::CacheStats ( BaseCache c)

Definition at line 1990 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 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.

Member Data Documentation

◆ avg_blocked

Stats::Formula BaseCache::CacheStats::avg_blocked

The average number of cycles blocked for each blocked cause.

Definition at line 1020 of file base.hh.

◆ blocked_causes

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().

◆ blocked_cycles

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().

◆ cache

const BaseCache& BaseCache::CacheStats::cache

Definition at line 982 of file base.hh.

◆ cmd

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().

◆ dataExpansions

Stats::Scalar BaseCache::CacheStats::dataExpansions

Number of data expansions.

Definition at line 1067 of file base.hh.

Referenced by BaseCache::updateCompressionData().

◆ demandAccesses

Stats::Formula BaseCache::CacheStats::demandAccesses

The number of demand accesses.

Definition at line 1000 of file base.hh.

◆ demandAvgMissLatency

Stats::Formula BaseCache::CacheStats::demandAvgMissLatency

The average miss latency for demand misses.

Definition at line 1010 of file base.hh.

◆ demandAvgMshrMissLatency

Stats::Formula BaseCache::CacheStats::demandAvgMshrMissLatency

The average latency of a demand MSHR miss.

Definition at line 1056 of file base.hh.

◆ demandHits

Stats::Formula BaseCache::CacheStats::demandHits

Number of hits for demand accesses.

Definition at line 985 of file base.hh.

◆ demandMisses

Stats::Formula BaseCache::CacheStats::demandMisses

Number of misses for demand accesses.

Definition at line 990 of file base.hh.

◆ demandMissLatency

Stats::Formula BaseCache::CacheStats::demandMissLatency

Total number of cycles spent waiting for demand misses.

Definition at line 995 of file base.hh.

◆ demandMissRate

Stats::Formula BaseCache::CacheStats::demandMissRate

The miss rate of all demand accesses.

Definition at line 1005 of file base.hh.

◆ demandMshrHits

Stats::Formula BaseCache::CacheStats::demandMshrHits

Demand misses that hit in the MSHRs.

Definition at line 1030 of file base.hh.

◆ demandMshrMisses

Stats::Formula BaseCache::CacheStats::demandMshrMisses

Demand misses that miss in the MSHRs.

Definition at line 1035 of file base.hh.

◆ demandMshrMissLatency

Stats::Formula BaseCache::CacheStats::demandMshrMissLatency

Total cycle latency of demand MSHR misses.

Definition at line 1043 of file base.hh.

◆ demandMshrMissRate

Stats::Formula BaseCache::CacheStats::demandMshrMissRate

The demand miss rate in the MSHRs.

Definition at line 1051 of file base.hh.

◆ overallAccesses

Stats::Formula BaseCache::CacheStats::overallAccesses

The number of overall accesses.

Definition at line 1002 of file base.hh.

◆ overallAvgMissLatency

Stats::Formula BaseCache::CacheStats::overallAvgMissLatency

The average miss latency for all misses.

Definition at line 1012 of file base.hh.

◆ overallAvgMshrMissLatency

Stats::Formula BaseCache::CacheStats::overallAvgMshrMissLatency

The average overall latency of an MSHR miss.

Definition at line 1058 of file base.hh.

◆ overallAvgMshrUncacheableLatency

Stats::Formula BaseCache::CacheStats::overallAvgMshrUncacheableLatency

The average overall latency of an MSHR miss.

Definition at line 1061 of file base.hh.

◆ overallHits

Stats::Formula BaseCache::CacheStats::overallHits

Number of hit for all accesses.

Definition at line 987 of file base.hh.

◆ overallMisses

Stats::Formula BaseCache::CacheStats::overallMisses

Number of misses for all accesses.

Definition at line 992 of file base.hh.

◆ overallMissLatency

Stats::Formula BaseCache::CacheStats::overallMissLatency

Total number of cycles spent waiting for all misses.

Definition at line 997 of file base.hh.

◆ overallMissRate

Stats::Formula BaseCache::CacheStats::overallMissRate

The miss rate for all accesses.

Definition at line 1007 of file base.hh.

◆ overallMshrHits

Stats::Formula BaseCache::CacheStats::overallMshrHits

Total number of misses that hit in the MSHRs.

Definition at line 1032 of file base.hh.

◆ overallMshrMisses

Stats::Formula BaseCache::CacheStats::overallMshrMisses

Total number of misses that miss in the MSHRs.

Definition at line 1037 of file base.hh.

◆ overallMshrMissLatency

Stats::Formula BaseCache::CacheStats::overallMshrMissLatency

Total cycle latency of overall MSHR misses.

Definition at line 1045 of file base.hh.

◆ overallMshrMissRate

Stats::Formula BaseCache::CacheStats::overallMshrMissRate

The overall miss rate in the MSHRs.

Definition at line 1053 of file base.hh.

◆ overallMshrUncacheable

Stats::Formula BaseCache::CacheStats::overallMshrUncacheable

Total number of misses that miss in the MSHRs.

Definition at line 1040 of file base.hh.

◆ overallMshrUncacheableLatency

Stats::Formula BaseCache::CacheStats::overallMshrUncacheableLatency

Total cycle latency of overall MSHR misses.

Definition at line 1048 of file base.hh.

◆ replacements

Stats::Scalar BaseCache::CacheStats::replacements

Number of replacements of valid blocks.

Definition at line 1064 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 1024 of file base.hh.

Referenced by BaseCache::invalidateBlock().

◆ writebacks

Stats::Vector BaseCache::CacheStats::writebacks

Number of blocks written back per thread.

Definition at line 1027 of file base.hh.

Referenced by BaseCache::writebackBlk().


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

Generated on Wed Sep 30 2020 14:02:21 for gem5 by doxygen 1.8.17