gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::branch_prediction::BPredUnit::BPredUnitStats Struct Reference
Inheritance diagram for gem5::branch_prediction::BPredUnit::BPredUnitStats:
gem5::statistics::Group

Public Member Functions

 BPredUnitStats (statistics::Group *parent)
 
- 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 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 (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

statistics::Scalar lookups
 Stat for number of BP lookups. More...
 
statistics::Scalar condPredicted
 Stat for number of conditional branches predicted. More...
 
statistics::Scalar condIncorrect
 Stat for number of conditional branches predicted incorrectly. More...
 
statistics::Scalar BTBLookups
 Stat for number of BTB lookups. More...
 
statistics::Scalar BTBHits
 Stat for number of BTB hits. More...
 
statistics::Formula BTBHitRatio
 Stat for the ratio between BTB hits and BTB lookups. More...
 
statistics::Scalar RASUsed
 Stat for number of times the RAS is used to get a target. More...
 
statistics::Scalar RASIncorrect
 Stat for number of times the RAS is incorrect. More...
 
statistics::Scalar indirectLookups
 Stat for the number of indirect target lookups. More...
 
statistics::Scalar indirectHits
 Stat for the number of indirect target hits. More...
 
statistics::Scalar indirectMisses
 Stat for the number of indirect target misses. More...
 
statistics::Scalar indirectMispredicted
 Stat for the number of indirect target mispredictions. More...
 

Detailed Description

Definition at line 287 of file bpred_unit.hh.

Constructor & Destructor Documentation

◆ BPredUnitStats()

gem5::branch_prediction::BPredUnit::BPredUnitStats::BPredUnitStats ( statistics::Group parent)

Member Data Documentation

◆ BTBHitRatio

statistics::Formula gem5::branch_prediction::BPredUnit::BPredUnitStats::BTBHitRatio

Stat for the ratio between BTB hits and BTB lookups.

Definition at line 302 of file bpred_unit.hh.

Referenced by BPredUnitStats().

◆ BTBHits

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::BTBHits

Stat for number of BTB hits.

Definition at line 300 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().

◆ BTBLookups

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::BTBLookups

Stat for number of BTB lookups.

Definition at line 298 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().

◆ condIncorrect

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::condIncorrect

Stat for number of conditional branches predicted incorrectly.

Definition at line 296 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::squash().

◆ condPredicted

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::condPredicted

Stat for number of conditional branches predicted.

Definition at line 294 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().

◆ indirectHits

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::indirectHits

Stat for the number of indirect target hits.

Definition at line 311 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().

◆ indirectLookups

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::indirectLookups

Stat for the number of indirect target lookups.

Definition at line 309 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().

◆ indirectMispredicted

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::indirectMispredicted

Stat for the number of indirect target mispredictions.

Definition at line 315 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::squash().

◆ indirectMisses

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::indirectMisses

Stat for the number of indirect target misses.

Definition at line 313 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().

◆ lookups

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::lookups

Stat for number of BP lookups.

Definition at line 292 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().

◆ RASIncorrect

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::RASIncorrect

Stat for number of times the RAS is incorrect.

Definition at line 306 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::squash().

◆ RASUsed

statistics::Scalar gem5::branch_prediction::BPredUnit::BPredUnitStats::RASUsed

Stat for number of times the RAS is used to get a target.

Definition at line 304 of file bpred_unit.hh.

Referenced by gem5::branch_prediction::BPredUnit::predict().


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

Generated on Tue Sep 21 2021 12:28:46 for gem5 by doxygen 1.8.17