gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
DefaultDecode< Impl >::DecodeStats Struct Reference
Inheritance diagram for DefaultDecode< Impl >::DecodeStats:
Stats::Group

Public Member Functions

 DecodeStats (O3CPU *cpu)
 
- 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...
 
 Group ()=delete
 
 Group (const Group &)=delete
 
Groupoperator= (const Group &)=delete
 

Public Attributes

Stats::Scalar idleCycles
 Stat for total number of idle cycles. More...
 
Stats::Scalar blockedCycles
 Stat for total number of blocked cycles. More...
 
Stats::Scalar runCycles
 Stat for total number of normal running cycles. More...
 
Stats::Scalar unblockCycles
 Stat for total number of unblocking cycles. More...
 
Stats::Scalar squashCycles
 Stat for total number of squashing cycles. More...
 
Stats::Scalar branchResolved
 Stat for number of times a branch is resolved at decode. More...
 
Stats::Scalar branchMispred
 Stat for number of times a branch mispredict is detected. More...
 
Stats::Scalar controlMispred
 Stat for number of times decode detected a non-control instruction incorrectly predicted as a branch. More...
 
Stats::Scalar decodedInsts
 Stat for total number of decoded instructions. More...
 
Stats::Scalar squashedInsts
 Stat for total number of squashed instructions. More...
 

Detailed Description

template<class Impl>
struct DefaultDecode< Impl >::DecodeStats

Definition at line 295 of file decode.hh.

Constructor & Destructor Documentation

◆ DecodeStats()

template<class Impl >
DefaultDecode< Impl >::DecodeStats::DecodeStats ( O3CPU cpu)

Member Data Documentation

◆ blockedCycles

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::blockedCycles

Stat for total number of blocked cycles.

Definition at line 301 of file decode.hh.

Referenced by DefaultDecode< Impl >::decode(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ branchMispred

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::branchMispred

Stat for number of times a branch mispredict is detected.

Definition at line 311 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ branchResolved

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::branchResolved

Stat for number of times a branch is resolved at decode.

Definition at line 309 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ controlMispred

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::controlMispred

Stat for number of times decode detected a non-control instruction incorrectly predicted as a branch.

Definition at line 315 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ decodedInsts

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::decodedInsts

Stat for total number of decoded instructions.

Definition at line 317 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ idleCycles

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::idleCycles

Stat for total number of idle cycles.

Definition at line 299 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ runCycles

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::runCycles

Stat for total number of normal running cycles.

Definition at line 303 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ squashCycles

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::squashCycles

Stat for total number of squashing cycles.

Definition at line 307 of file decode.hh.

Referenced by DefaultDecode< Impl >::decode(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ squashedInsts

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::squashedInsts

Stat for total number of squashed instructions.

Definition at line 319 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().

◆ unblockCycles

template<class Impl >
Stats::Scalar DefaultDecode< Impl >::DecodeStats::unblockCycles

Stat for total number of unblocking cycles.

Definition at line 305 of file decode.hh.

Referenced by DefaultDecode< Impl >::decodeInsts(), and DefaultDecode< Impl >::DecodeStats::DecodeStats().


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

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