gem5 [DEVELOP-FOR-25.1]
Loading...
Searching...
No Matches
gem5::o3::BAC::BACStats Struct Reference

#include <bac.hh>

Inheritance diagram for gem5::o3::BAC::BACStats:
gem5::statistics::Group

Public Member Functions

 BACStats (CPU *cpu, BAC *bac)
Public Member Functions inherited from gem5::statistics::Group
 Group (Group *parent, const char *name=nullptr)
 Construct a new statistics group.
virtual ~Group ()
virtual void regStats ()
 Callback to set stat parameters.
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

statistics::Vector status
 Stat for total number of cycles spent in each BAC state.
statistics::Scalar fetchTargets
 Stat for total number fetch targets created.
statistics::Scalar branches
 Total number of branches detected.
statistics::Scalar predTakenBranches
 Total number of branches predicted taken.
statistics::Scalar branchesNotLastuOp
 Total number of fetched branches.
statistics::Scalar branchMisspredict
 Stat for total number of misspredicted instructions.
statistics::Scalar noBranchMisspredict
statistics::Scalar squashBranchDecode
 Stat for the number of squashes from decode and commit.
statistics::Scalar squashBranchCommit
statistics::Vector preDecUpdate
 Number of post updates.
statistics::Vector noHistByType
 Number of branches undetected by the BPU.
statistics::Scalar typeMissmatch
 Stat for the two corner cases.
statistics::Scalar multiBranchInst
statistics::Distribution ftSizeDist
 Distribution of number of bytes per fetch target.
statistics::Distribution ftNumber

Static Public Attributes

static std::string statusStrings [ThreadStatusMax]

Detailed Description

Definition at line 427 of file bac.hh.

Constructor & Destructor Documentation

◆ BACStats()

Member Data Documentation

◆ branches

statistics::Scalar gem5::o3::BAC::BACStats::branches

Total number of branches detected.

Definition at line 439 of file bac.hh.

Referenced by BACStats().

◆ branchesNotLastuOp

statistics::Scalar gem5::o3::BAC::BACStats::branchesNotLastuOp

Total number of fetched branches.

Definition at line 443 of file bac.hh.

Referenced by BACStats().

◆ branchMisspredict

statistics::Scalar gem5::o3::BAC::BACStats::branchMisspredict

Stat for total number of misspredicted instructions.

Definition at line 446 of file bac.hh.

Referenced by BACStats().

◆ fetchTargets

statistics::Scalar gem5::o3::BAC::BACStats::fetchTargets

Stat for total number fetch targets created.

Definition at line 437 of file bac.hh.

Referenced by BACStats().

◆ ftNumber

statistics::Distribution gem5::o3::BAC::BACStats::ftNumber

Definition at line 464 of file bac.hh.

Referenced by BACStats().

◆ ftSizeDist

statistics::Distribution gem5::o3::BAC::BACStats::ftSizeDist

Distribution of number of bytes per fetch target.

Definition at line 463 of file bac.hh.

Referenced by BACStats().

◆ multiBranchInst

statistics::Scalar gem5::o3::BAC::BACStats::multiBranchInst

Definition at line 460 of file bac.hh.

Referenced by BACStats().

◆ noBranchMisspredict

statistics::Scalar gem5::o3::BAC::BACStats::noBranchMisspredict

Definition at line 447 of file bac.hh.

Referenced by BACStats().

◆ noHistByType

statistics::Vector gem5::o3::BAC::BACStats::noHistByType

Number of branches undetected by the BPU.

Definition at line 456 of file bac.hh.

Referenced by BACStats().

◆ preDecUpdate

statistics::Vector gem5::o3::BAC::BACStats::preDecUpdate

Number of post updates.

Definition at line 454 of file bac.hh.

Referenced by BACStats().

◆ predTakenBranches

statistics::Scalar gem5::o3::BAC::BACStats::predTakenBranches

Total number of branches predicted taken.

Definition at line 441 of file bac.hh.

Referenced by BACStats().

◆ squashBranchCommit

statistics::Scalar gem5::o3::BAC::BACStats::squashBranchCommit

Definition at line 451 of file bac.hh.

Referenced by BACStats().

◆ squashBranchDecode

statistics::Scalar gem5::o3::BAC::BACStats::squashBranchDecode

Stat for the number of squashes from decode and commit.

Definition at line 450 of file bac.hh.

Referenced by BACStats().

◆ status

statistics::Vector gem5::o3::BAC::BACStats::status

Stat for total number of cycles spent in each BAC state.

Definition at line 434 of file bac.hh.

Referenced by BACStats().

◆ statusStrings

std::string gem5::o3::BAC::BACStats::statusStrings
static
Initial value:
= {
"Idle",
"Running",
"Squashing",
"Blocked",
"FTQFull",
"FTQLocked",
}

Definition at line 429 of file bac.hh.

Referenced by BACStats().

◆ typeMissmatch

statistics::Scalar gem5::o3::BAC::BACStats::typeMissmatch

Stat for the two corner cases.

Definition at line 459 of file bac.hh.

Referenced by BACStats().


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

Generated on Mon Oct 27 2025 04:13:20 for gem5 by doxygen 1.14.0