gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::memory::qos::MemCtrl::MemCtrlStats Struct Reference

#include <mem_ctrl.hh>

Inheritance diagram for gem5::memory::qos::MemCtrl::MemCtrlStats:
gem5::statistics::Group

Public Member Functions

 MemCtrlStats (MemCtrl &mc)
 
void regStats () override
 Callback to set stat parameters.
 
- 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 InforesolveStat (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
 
Groupoperator= (const Group &)=delete
 

Public Attributes

const MemCtrlmemCtrl
 
statistics::VectorStandardDeviation avgPriority
 per-requestor average QoS priority
 
statistics::VectorStandardDeviation avgPriorityDistance
 per-requestor average QoS distance between assigned and queued values
 
statistics::Vector priorityMinLatency
 per-priority minimum latency
 
statistics::Vector priorityMaxLatency
 per-priority maximum latency
 
statistics::Scalar numReadWriteTurnArounds
 Count the number of turnarounds READ to WRITE.
 
statistics::Scalar numWriteReadTurnArounds
 Count the number of turnarounds WRITE to READ.
 
statistics::Scalar numStayReadState
 Count the number of times bus staying in READ state.
 
statistics::Scalar numStayWriteState
 Count the number of times bus staying in WRITE state.
 

Detailed Description

Definition at line 144 of file mem_ctrl.hh.

Constructor & Destructor Documentation

◆ MemCtrlStats()

gem5::memory::qos::MemCtrl::MemCtrlStats::MemCtrlStats ( MemCtrl & mc)

Definition at line 287 of file mem_ctrl.cc.

Member Function Documentation

◆ regStats()

void gem5::memory::qos::MemCtrl::MemCtrlStats::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 313 of file mem_ctrl.cc.

References gem5::System::getRequestorName(), gem5::ArmISA::i, gem5::System::maxRequestors(), gem5::Named::name(), gem5::statistics::nonan, gem5::statistics::nozero, gem5::statistics::Group::regStats(), and gem5::memory::qos::MemCtrl::system().

Member Data Documentation

◆ avgPriority

statistics::VectorStandardDeviation gem5::memory::qos::MemCtrl::MemCtrlStats::avgPriority

per-requestor average QoS priority

Definition at line 153 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::logRequest().

◆ avgPriorityDistance

statistics::VectorStandardDeviation gem5::memory::qos::MemCtrl::MemCtrlStats::avgPriorityDistance

per-requestor average QoS distance between assigned and queued values

Definition at line 158 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::logRequest().

◆ memCtrl

const MemCtrl& gem5::memory::qos::MemCtrl::MemCtrlStats::memCtrl

Definition at line 150 of file mem_ctrl.hh.

◆ numReadWriteTurnArounds

statistics::Scalar gem5::memory::qos::MemCtrl::MemCtrlStats::numReadWriteTurnArounds

Count the number of turnarounds READ to WRITE.

Definition at line 165 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::recordTurnaroundStats().

◆ numStayReadState

statistics::Scalar gem5::memory::qos::MemCtrl::MemCtrlStats::numStayReadState

Count the number of times bus staying in READ state.

Definition at line 169 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::recordTurnaroundStats().

◆ numStayWriteState

statistics::Scalar gem5::memory::qos::MemCtrl::MemCtrlStats::numStayWriteState

Count the number of times bus staying in WRITE state.

Definition at line 171 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::recordTurnaroundStats().

◆ numWriteReadTurnArounds

statistics::Scalar gem5::memory::qos::MemCtrl::MemCtrlStats::numWriteReadTurnArounds

Count the number of turnarounds WRITE to READ.

Definition at line 167 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::recordTurnaroundStats().

◆ priorityMaxLatency

statistics::Vector gem5::memory::qos::MemCtrl::MemCtrlStats::priorityMaxLatency

per-priority maximum latency

Definition at line 163 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::logResponse().

◆ priorityMinLatency

statistics::Vector gem5::memory::qos::MemCtrl::MemCtrlStats::priorityMinLatency

per-priority minimum latency

Definition at line 161 of file mem_ctrl.hh.

Referenced by gem5::memory::qos::MemCtrl::logResponse().


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

Generated on Tue Jun 18 2024 16:24:19 for gem5 by doxygen 1.11.0