gem5  v21.0.1.0
Public Member Functions | Public Attributes | List of all members
SimpleExecContext::ExecContextStats Struct Reference

#include <exec_context.hh>

Inheritance diagram for SimpleExecContext::ExecContextStats:
Stats::Group

Public Member Functions

 ExecContextStats (BaseSimpleCPU *cpu, SimpleThread *thread)
 
- Public Member Functions inherited from Stats::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group. More...
 
virtual ~Group ()
 
virtual void regStats ()
 Callback to set stat parameters. More...
 
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...
 
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

Stats::Scalar numInsts
 
Stats::Scalar numOps
 
Stats::Scalar numIntAluAccesses
 
Stats::Scalar numFpAluAccesses
 
Stats::Scalar numVecAluAccesses
 
Stats::Scalar numCallsReturns
 
Stats::Scalar numCondCtrlInsts
 
Stats::Scalar numIntInsts
 
Stats::Scalar numFpInsts
 
Stats::Scalar numVecInsts
 
Stats::Scalar numIntRegReads
 
Stats::Scalar numIntRegWrites
 
Stats::Scalar numFpRegReads
 
Stats::Scalar numFpRegWrites
 
Stats::Scalar numVecRegReads
 
Stats::Scalar numVecRegWrites
 
Stats::Scalar numVecPredRegReads
 
Stats::Scalar numVecPredRegWrites
 
Stats::Scalar numCCRegReads
 
Stats::Scalar numCCRegWrites
 
Stats::Scalar numMemRefs
 
Stats::Scalar numLoadInsts
 
Stats::Scalar numStoreInsts
 
Stats::Formula numIdleCycles
 
Stats::Formula numBusyCycles
 
Stats::Average notIdleFraction
 
Stats::Formula idleFraction
 
Stats::Scalar icacheStallCycles
 
Stats::Scalar dcacheStallCycles
 
Stats::Vector statExecutedInstType
 
Stats::Scalar numBranches
 
Stats::Scalar numPredictedBranches
 Number of branches predicted as taken. More...
 
Stats::Scalar numBranchMispred
 Number of misprediced branches. More...
 

Detailed Description

Definition at line 82 of file exec_context.hh.

Constructor & Destructor Documentation

◆ ExecContextStats()

SimpleExecContext::ExecContextStats::ExecContextStats ( BaseSimpleCPU cpu,
SimpleThread thread 
)
inline

Member Data Documentation

◆ dcacheStallCycles

Stats::Scalar SimpleExecContext::ExecContextStats::dcacheStallCycles

Definition at line 250 of file exec_context.hh.

Referenced by ExecContextStats().

◆ icacheStallCycles

Stats::Scalar SimpleExecContext::ExecContextStats::icacheStallCycles

Definition at line 247 of file exec_context.hh.

Referenced by ExecContextStats().

◆ idleFraction

Stats::Formula SimpleExecContext::ExecContextStats::idleFraction

Definition at line 244 of file exec_context.hh.

Referenced by ExecContextStats().

◆ notIdleFraction

Stats::Average SimpleExecContext::ExecContextStats::notIdleFraction

Definition at line 243 of file exec_context.hh.

Referenced by ExecContextStats().

◆ numBranches

Stats::Scalar SimpleExecContext::ExecContextStats::numBranches

Total number of branches fetched

Definition at line 254 of file exec_context.hh.

Referenced by ExecContextStats(), and BaseSimpleCPU::postExecute().

◆ numBranchMispred

Stats::Scalar SimpleExecContext::ExecContextStats::numBranchMispred

Number of misprediced branches.

Definition at line 258 of file exec_context.hh.

Referenced by BaseSimpleCPU::advancePC(), and ExecContextStats().

◆ numBusyCycles

Stats::Formula SimpleExecContext::ExecContextStats::numBusyCycles

Definition at line 240 of file exec_context.hh.

Referenced by ExecContextStats().

◆ numCallsReturns

Stats::Scalar SimpleExecContext::ExecContextStats::numCallsReturns

Definition at line 197 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numCCRegReads

Stats::Scalar SimpleExecContext::ExecContextStats::numCCRegReads

Definition at line 228 of file exec_context.hh.

Referenced by ExecContextStats(), and SimpleExecContext::readCCRegOperand().

◆ numCCRegWrites

Stats::Scalar SimpleExecContext::ExecContextStats::numCCRegWrites

Definition at line 229 of file exec_context.hh.

Referenced by ExecContextStats(), and SimpleExecContext::setCCRegOperand().

◆ numCondCtrlInsts

Stats::Scalar SimpleExecContext::ExecContextStats::numCondCtrlInsts

Definition at line 200 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numFpAluAccesses

Stats::Scalar SimpleExecContext::ExecContextStats::numFpAluAccesses

Definition at line 191 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numFpInsts

Stats::Scalar SimpleExecContext::ExecContextStats::numFpInsts

Definition at line 206 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numFpRegReads

Stats::Scalar SimpleExecContext::ExecContextStats::numFpRegReads

Definition at line 216 of file exec_context.hh.

Referenced by SimpleExecContext::readFloatRegOperandBits().

◆ numFpRegWrites

Stats::Scalar SimpleExecContext::ExecContextStats::numFpRegWrites

Definition at line 217 of file exec_context.hh.

Referenced by SimpleExecContext::setFloatRegOperandBits().

◆ numIdleCycles

Stats::Formula SimpleExecContext::ExecContextStats::numIdleCycles

Definition at line 237 of file exec_context.hh.

Referenced by ExecContextStats().

◆ numInsts

Stats::Scalar SimpleExecContext::ExecContextStats::numInsts

Definition at line 184 of file exec_context.hh.

Referenced by BaseSimpleCPU::countInst().

◆ numIntAluAccesses

Stats::Scalar SimpleExecContext::ExecContextStats::numIntAluAccesses

Definition at line 188 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numIntInsts

Stats::Scalar SimpleExecContext::ExecContextStats::numIntInsts

Definition at line 203 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numIntRegReads

Stats::Scalar SimpleExecContext::ExecContextStats::numIntRegReads

◆ numIntRegWrites

Stats::Scalar SimpleExecContext::ExecContextStats::numIntRegWrites

◆ numLoadInsts

Stats::Scalar SimpleExecContext::ExecContextStats::numLoadInsts

Definition at line 233 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numMemRefs

Stats::Scalar SimpleExecContext::ExecContextStats::numMemRefs

Definition at line 232 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numOps

Stats::Scalar SimpleExecContext::ExecContextStats::numOps

Definition at line 185 of file exec_context.hh.

Referenced by BaseSimpleCPU::countInst().

◆ numPredictedBranches

Stats::Scalar SimpleExecContext::ExecContextStats::numPredictedBranches

Number of branches predicted as taken.

Definition at line 256 of file exec_context.hh.

Referenced by ExecContextStats(), and BaseSimpleCPU::preExecute().

◆ numStoreInsts

Stats::Scalar SimpleExecContext::ExecContextStats::numStoreInsts

Definition at line 234 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numVecAluAccesses

Stats::Scalar SimpleExecContext::ExecContextStats::numVecAluAccesses

Definition at line 194 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numVecInsts

Stats::Scalar SimpleExecContext::ExecContextStats::numVecInsts

Definition at line 209 of file exec_context.hh.

Referenced by BaseSimpleCPU::postExecute().

◆ numVecPredRegReads

Stats::Scalar SimpleExecContext::ExecContextStats::numVecPredRegReads
mutable

Definition at line 224 of file exec_context.hh.

Referenced by SimpleExecContext::readVecPredRegOperand().

◆ numVecPredRegWrites

Stats::Scalar SimpleExecContext::ExecContextStats::numVecPredRegWrites

◆ numVecRegReads

Stats::Scalar SimpleExecContext::ExecContextStats::numVecRegReads
mutable

◆ numVecRegWrites

Stats::Scalar SimpleExecContext::ExecContextStats::numVecRegWrites

◆ statExecutedInstType

Stats::Vector SimpleExecContext::ExecContextStats::statExecutedInstType

Definition at line 262 of file exec_context.hh.

Referenced by ExecContextStats(), and BaseSimpleCPU::postExecute().


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

Generated on Tue Jun 22 2021 15:28:44 for gem5 by doxygen 1.8.17