|
gem5 [DEVELOP-FOR-25.0]
|
#include <base.hh>
Public Member Functions | |
| CacheStats (BaseCache &c) | |
| void | regStats () override |
| Callback to set stat parameters. | |
| CacheCmdStats & | cmdStats (const PacketPtr p) |
Public Member Functions inherited from gem5::statistics::Group | |
| Group (Group *parent, const char *name=nullptr) | |
| Construct a new statistics group. | |
| virtual | ~Group () |
| virtual void | resetStats () |
| Callback to reset stats. | |
| virtual void | preDumpStats () |
| Callback before stats are dumped. | |
| void | addStat (statistics::Info *info) |
| Register a stat with this group. | |
| const std::map< std::string, Group * > & | getStatGroups () const |
| Get all child groups associated with this object. | |
| const std::vector< Info * > & | getStats () const |
| Get all stats associated with this object. | |
| void | addStatGroup (const char *name, Group *block) |
| Add a stat block as a child of this block. | |
| const Info * | resolveStat (std::string name) const |
| Resolve a stat by its name within this group. | |
| void | mergeStatGroup (Group *block) |
| Merge the contents (stats & children) of a block to this block. | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
Public Attributes | |
| const BaseCache & | cache |
| statistics::Formula | demandHits |
| Number of hits for demand accesses. | |
| statistics::Formula | overallHits |
| Number of hit for all accesses. | |
| statistics::Formula | demandHitLatency |
| Total number of ticks spent waiting for demand hits. | |
| statistics::Formula | overallHitLatency |
| Total number of ticks spent waiting for all hits. | |
| statistics::Formula | demandMisses |
| Number of misses for demand accesses. | |
| statistics::Formula | overallMisses |
| Number of misses for all accesses. | |
| statistics::Formula | demandMissLatency |
| Total number of ticks spent waiting for demand misses. | |
| statistics::Formula | overallMissLatency |
| Total number of ticks spent waiting for all misses. | |
| statistics::Formula | demandAccesses |
| The number of demand accesses. | |
| statistics::Formula | overallAccesses |
| The number of overall accesses. | |
| statistics::Formula | demandMissRate |
| The miss rate of all demand accesses. | |
| statistics::Formula | overallMissRate |
| The miss rate for all accesses. | |
| statistics::Formula | demandAvgMissLatency |
| The average miss latency for demand misses. | |
| statistics::Formula | overallAvgMissLatency |
| The average miss latency for all misses. | |
| statistics::Vector | blockedCycles |
| The total number of cycles blocked for each blocked cause. | |
| statistics::Vector | blockedCauses |
| The number of times this cache blocked for each blocked cause. | |
| statistics::Formula | avgBlocked |
| The average number of cycles blocked for each blocked cause. | |
| statistics::Vector | writebacks |
| Number of blocks written back per thread. | |
| statistics::Formula | demandMshrHits |
| Demand misses that hit in the MSHRs. | |
| statistics::Formula | overallMshrHits |
| Total number of misses that hit in the MSHRs. | |
| statistics::Formula | demandMshrMisses |
| Demand misses that miss in the MSHRs. | |
| statistics::Formula | overallMshrMisses |
| Total number of misses that miss in the MSHRs. | |
| statistics::Formula | overallMshrUncacheable |
| Total number of misses that miss in the MSHRs. | |
| statistics::Formula | demandMshrMissLatency |
| Total tick latency of demand MSHR misses. | |
| statistics::Formula | overallMshrMissLatency |
| Total tick latency of overall MSHR misses. | |
| statistics::Formula | overallMshrUncacheableLatency |
| Total tick latency of overall MSHR misses. | |
| statistics::Formula | demandMshrMissRate |
| The demand miss rate in the MSHRs. | |
| statistics::Formula | overallMshrMissRate |
| The overall miss rate in the MSHRs. | |
| statistics::Formula | demandAvgMshrMissLatency |
| The average latency of a demand MSHR miss. | |
| statistics::Formula | overallAvgMshrMissLatency |
| The average overall latency of an MSHR miss. | |
| statistics::Formula | overallAvgMshrUncacheableLatency |
| The average overall latency of an MSHR miss. | |
| statistics::Scalar | replacements |
| Number of replacements of valid blocks. | |
| statistics::Scalar | dataExpansions |
| Number of data expansions. | |
| statistics::Scalar | dataContractions |
| Number of data contractions (blocks that had their compression factor improved). | |
| std::vector< std::unique_ptr< CacheCmdStats > > | cmd |
| Per-command statistics. | |
| gem5::BaseCache::CacheStats::CacheStats | ( | BaseCache & | c | ) |
Definition at line 2216 of file base.cc.
References ADD_STAT, avgBlocked, gem5::BaseCache::BaseCache(), blockedCauses, blockedCycles, gem5::ArmISA::c, cache, cmd, dataContractions, dataExpansions, demandAccesses, demandAvgMissLatency, demandAvgMshrMissLatency, demandHitLatency, demandHits, demandMisses, demandMissLatency, demandMissRate, demandMshrHits, demandMshrMisses, demandMshrMissLatency, demandMshrMissRate, gem5::statistics::Group::Group(), gem5::MemCmd::NUM_MEM_CMDS, overallAccesses, overallAvgMissLatency, overallAvgMshrMissLatency, overallAvgMshrUncacheableLatency, overallHitLatency, overallHits, overallMisses, overallMissLatency, overallMissRate, overallMshrHits, overallMshrMisses, overallMshrMissLatency, overallMshrMissRate, overallMshrUncacheable, overallMshrUncacheableLatency, replacements, and writebacks.
|
inline |
Definition at line 1054 of file base.hh.
References cmd, and gem5::MipsISA::p.
|
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 2300 of file base.cc.
References avgBlocked, gem5::BaseCache::Blocked_NoMSHRs, gem5::BaseCache::Blocked_NoTargets, blockedCauses, blockedCycles, cache, cmd, dataContractions, dataExpansions, demandAccesses, demandAvgMissLatency, demandAvgMshrMissLatency, demandHitLatency, demandHits, demandMisses, demandMissLatency, demandMissRate, demandMshrHits, demandMshrMisses, demandMshrMissLatency, demandMshrMissRate, gem5::ArmISA::i, gem5::statistics::nonan, gem5::statistics::nozero, gem5::BaseCache::NUM_BLOCKED_CAUSES, overallAccesses, overallAvgMissLatency, overallAvgMshrMissLatency, overallAvgMshrUncacheableLatency, overallHitLatency, overallHits, overallMisses, overallMissLatency, overallMissRate, overallMshrHits, overallMshrMisses, overallMshrMissLatency, overallMshrMissRate, overallMshrUncacheable, overallMshrUncacheableLatency, gem5::statistics::Group::regStats(), SUM_DEMAND, SUM_NON_DEMAND, gem5::BaseCache::system, gem5::statistics::total, and writebacks.
| statistics::Formula gem5::BaseCache::CacheStats::avgBlocked |
The average number of cycles blocked for each blocked cause.
Definition at line 1100 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Vector gem5::BaseCache::CacheStats::blockedCauses |
The number of times this cache blocked for each blocked cause.
Definition at line 1097 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Vector gem5::BaseCache::CacheStats::blockedCycles |
The total number of cycles blocked for each blocked cause.
Definition at line 1095 of file base.hh.
Referenced by CacheStats(), and regStats().
| const BaseCache& gem5::BaseCache::CacheStats::cache |
Definition at line 1058 of file base.hh.
Referenced by CacheStats(), and regStats().
| std::vector<std::unique_ptr<CacheCmdStats> > gem5::BaseCache::CacheStats::cmd |
Per-command statistics.
Definition at line 1152 of file base.hh.
Referenced by CacheStats(), cmdStats(), and regStats().
| statistics::Scalar gem5::BaseCache::CacheStats::dataContractions |
Number of data contractions (blocks that had their compression factor improved).
Definition at line 1149 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Scalar gem5::BaseCache::CacheStats::dataExpansions |
Number of data expansions.
Definition at line 1143 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandAccesses |
The number of demand accesses.
Definition at line 1080 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandAvgMissLatency |
The average miss latency for demand misses.
Definition at line 1090 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandAvgMshrMissLatency |
The average latency of a demand MSHR miss.
Definition at line 1132 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandHitLatency |
Total number of ticks spent waiting for demand hits.
Definition at line 1065 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandHits |
Number of hits for demand accesses.
Definition at line 1061 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandMisses |
Number of misses for demand accesses.
Definition at line 1070 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandMissLatency |
Total number of ticks spent waiting for demand misses.
Definition at line 1075 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandMissRate |
The miss rate of all demand accesses.
Definition at line 1085 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandMshrHits |
Demand misses that hit in the MSHRs.
Definition at line 1106 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandMshrMisses |
Demand misses that miss in the MSHRs.
Definition at line 1111 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandMshrMissLatency |
Total tick latency of demand MSHR misses.
Definition at line 1119 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::demandMshrMissRate |
The demand miss rate in the MSHRs.
Definition at line 1127 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallAccesses |
The number of overall accesses.
Definition at line 1082 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallAvgMissLatency |
The average miss latency for all misses.
Definition at line 1092 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallAvgMshrMissLatency |
The average overall latency of an MSHR miss.
Definition at line 1134 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallAvgMshrUncacheableLatency |
The average overall latency of an MSHR miss.
Definition at line 1137 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallHitLatency |
Total number of ticks spent waiting for all hits.
Definition at line 1067 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallHits |
Number of hit for all accesses.
Definition at line 1063 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMisses |
Number of misses for all accesses.
Definition at line 1072 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMissLatency |
Total number of ticks spent waiting for all misses.
Definition at line 1077 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMissRate |
The miss rate for all accesses.
Definition at line 1087 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMshrHits |
Total number of misses that hit in the MSHRs.
Definition at line 1108 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMshrMisses |
Total number of misses that miss in the MSHRs.
Definition at line 1113 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMshrMissLatency |
Total tick latency of overall MSHR misses.
Definition at line 1121 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMshrMissRate |
The overall miss rate in the MSHRs.
Definition at line 1129 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMshrUncacheable |
Total number of misses that miss in the MSHRs.
Definition at line 1116 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Formula gem5::BaseCache::CacheStats::overallMshrUncacheableLatency |
Total tick latency of overall MSHR misses.
Definition at line 1124 of file base.hh.
Referenced by CacheStats(), and regStats().
| statistics::Scalar gem5::BaseCache::CacheStats::replacements |
Number of replacements of valid blocks.
Definition at line 1140 of file base.hh.
Referenced by CacheStats().
| statistics::Vector gem5::BaseCache::CacheStats::writebacks |
Number of blocks written back per thread.
Definition at line 1103 of file base.hh.
Referenced by CacheStats(), and regStats().