gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
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. More...
 
- 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 MemCtrlmemCtrl
 
statistics::VectorStandardDeviation avgPriority
 per-requestor average QoS priority More...
 
statistics::VectorStandardDeviation avgPriorityDistance
 per-requestor average QoS distance between assigned and queued values More...
 
statistics::Vector priorityMinLatency
 per-priority minimum latency More...
 
statistics::Vector priorityMaxLatency
 per-priority maximum latency More...
 
statistics::Scalar numReadWriteTurnArounds
 Count the number of turnarounds READ to WRITE. More...
 
statistics::Scalar numWriteReadTurnArounds
 Count the number of turnarounds WRITE to READ. More...
 
statistics::Scalar numStayReadState
 Count the number of times bus staying in READ state. More...
 
statistics::Scalar numStayWriteState
 Count the number of times bus staying in WRITE state. More...
 

Detailed Description

Definition at line 145 of file mem_ctrl.hh.

Constructor & Destructor Documentation

◆ MemCtrlStats()

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

Definition at line 288 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 314 of file mem_ctrl.cc.

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

Member Data Documentation

◆ avgPriority

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

per-requestor average QoS priority

Definition at line 154 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 159 of file mem_ctrl.hh.

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

◆ memCtrl

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

Definition at line 151 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 166 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 170 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 172 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 168 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 164 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 162 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 Sep 21 2021 12:31:29 for gem5 by doxygen 1.8.17