gem5
v20.1.0.0
|
#include <fetch.hh>
Public Member Functions | |
FetchStatGroup (O3CPU *cpu, DefaultFetch *fetch) | |
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 Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Attributes | |
Stats::Scalar | icacheStallCycles |
Stat for total number of cycles stalled due to an icache miss. More... | |
Stats::Scalar | insts |
Stat for total number of fetched instructions. More... | |
Stats::Scalar | branches |
Total number of fetched branches. More... | |
Stats::Scalar | predictedBranches |
Stat for total number of predicted branches. More... | |
Stats::Scalar | cycles |
Stat for total number of cycles spent fetching. More... | |
Stats::Scalar | squashCycles |
Stat for total number of cycles spent squashing. More... | |
Stats::Scalar | tlbCycles |
Stat for total number of cycles spent waiting for translation. More... | |
Stats::Scalar | idleCycles |
Stat for total number of cycles spent blocked due to other stages in the pipeline. More... | |
Stats::Scalar | blockedCycles |
Total number of cycles spent blocked. More... | |
Stats::Scalar | miscStallCycles |
Total number of cycles spent in any other state. More... | |
Stats::Scalar | pendingDrainCycles |
Total number of cycles spent in waiting for drains. More... | |
Stats::Scalar | noActiveThreadStallCycles |
Total number of stall cycles caused by no active threads to run. More... | |
Stats::Scalar | pendingTrapStallCycles |
Total number of stall cycles caused by pending traps. More... | |
Stats::Scalar | pendingQuiesceStallCycles |
Total number of stall cycles caused by pending quiesce instructions. More... | |
Stats::Scalar | icacheWaitRetryStallCycles |
Total number of stall cycles caused by I-cache wait retrys. More... | |
Stats::Scalar | cacheLines |
Stat for total number of fetched cache lines. More... | |
Stats::Scalar | icacheSquashes |
Total number of outstanding icache accesses that were dropped due to a squash. More... | |
Stats::Scalar | tlbSquashes |
Total number of outstanding tlb accesses that were dropped due to a squash. More... | |
Stats::Distribution | nisnDist |
Distribution of number of instructions fetched each cycle. More... | |
Stats::Formula | idleRate |
Rate of how often fetch was idle. More... | |
Stats::Formula | branchRate |
Number of branch fetches per cycle. More... | |
Stats::Formula | rate |
Number of instruction fetched per cycle. More... | |
DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup | ( | O3CPU * | cpu, |
DefaultFetch * | fetch | ||
) |
Definition at line 167 of file fetch_impl.hh.
References DefaultFetch< Impl >::FetchStatGroup::blockedCycles, DefaultFetch< Impl >::FetchStatGroup::branches, DefaultFetch< Impl >::FetchStatGroup::branchRate, DefaultFetch< Impl >::FetchStatGroup::cacheLines, DefaultFetch< Impl >::FetchStatGroup::cycles, DefaultFetch< Impl >::fetch(), Stats::DataWrap< Derived, InfoProxyType >::flags(), DefaultFetch< Impl >::FetchStatGroup::icacheSquashes, DefaultFetch< Impl >::FetchStatGroup::icacheStallCycles, DefaultFetch< Impl >::FetchStatGroup::icacheWaitRetryStallCycles, DefaultFetch< Impl >::FetchStatGroup::idleCycles, DefaultFetch< Impl >::FetchStatGroup::idleRate, Stats::Distribution::init(), DefaultFetch< Impl >::FetchStatGroup::insts, DefaultFetch< Impl >::FetchStatGroup::miscStallCycles, DefaultFetch< Impl >::FetchStatGroup::nisnDist, DefaultFetch< Impl >::FetchStatGroup::noActiveThreadStallCycles, Stats::pdf, DefaultFetch< Impl >::FetchStatGroup::pendingDrainCycles, DefaultFetch< Impl >::FetchStatGroup::pendingQuiesceStallCycles, DefaultFetch< Impl >::FetchStatGroup::pendingTrapStallCycles, DefaultFetch< Impl >::FetchStatGroup::predictedBranches, Stats::DataWrap< Derived, InfoProxyType >::prereq(), DefaultFetch< Impl >::FetchStatGroup::rate, DefaultFetch< Impl >::FetchStatGroup::squashCycles, DefaultFetch< Impl >::FetchStatGroup::tlbCycles, DefaultFetch< Impl >::FetchStatGroup::tlbSquashes, and Stats::total.
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::blockedCycles |
Total number of cycles spent blocked.
Definition at line 574 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::branches |
Total number of fetched branches.
Definition at line 559 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::lookupAndUpdateNextPC().
Stats::Formula DefaultFetch< Impl >::FetchStatGroup::branchRate |
Number of branch fetches per cycle.
Definition at line 603 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::cacheLines |
Stat for total number of fetched cache lines.
Definition at line 589 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::finishTranslation().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::cycles |
Stat for total number of cycles spent fetching.
Definition at line 563 of file fetch.hh.
Referenced by DefaultFetch< Impl >::fetch(), and DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::icacheSquashes |
Total number of outstanding icache accesses that were dropped due to a squash.
Definition at line 593 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::processCacheCompletion().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::icacheStallCycles |
Stat for total number of cycles stalled due to an icache miss.
Definition at line 555 of file fetch.hh.
Referenced by DefaultFetch< Impl >::fetch(), DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::icacheWaitRetryStallCycles |
Total number of stall cycles caused by I-cache wait retrys.
Definition at line 587 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::idleCycles |
Stat for total number of cycles spent blocked due to other stages in the pipeline.
Definition at line 572 of file fetch.hh.
Referenced by DefaultFetch< Impl >::fetch(), and DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup().
Stats::Formula DefaultFetch< Impl >::FetchStatGroup::idleRate |
Rate of how often fetch was idle.
Definition at line 601 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::insts |
Stat for total number of fetched instructions.
Definition at line 557 of file fetch.hh.
Referenced by DefaultFetch< Impl >::fetch(), and DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::miscStallCycles |
Total number of cycles spent in any other state.
Definition at line 576 of file fetch.hh.
Referenced by DefaultFetch< Impl >::fetch(), and DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup().
Stats::Distribution DefaultFetch< Impl >::FetchStatGroup::nisnDist |
Distribution of number of instructions fetched each cycle.
Definition at line 599 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::tick().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::noActiveThreadStallCycles |
Total number of stall cycles caused by no active threads to run.
Definition at line 580 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::pendingDrainCycles |
Total number of cycles spent in waiting for drains.
Definition at line 578 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::pendingQuiesceStallCycles |
Total number of stall cycles caused by pending quiesce instructions.
Definition at line 585 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::pendingTrapStallCycles |
Total number of stall cycles caused by pending traps.
Definition at line 582 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::predictedBranches |
Stat for total number of predicted branches.
Definition at line 561 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::lookupAndUpdateNextPC().
Stats::Formula DefaultFetch< Impl >::FetchStatGroup::rate |
Number of instruction fetched per cycle.
Definition at line 605 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::squashCycles |
Stat for total number of cycles spent squashing.
Definition at line 565 of file fetch.hh.
Referenced by DefaultFetch< Impl >::doSquash(), DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::tlbCycles |
Stat for total number of cycles spent waiting for translation.
Definition at line 567 of file fetch.hh.
Referenced by DefaultFetch< Impl >::fetch(), DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::profileStall().
Stats::Scalar DefaultFetch< Impl >::FetchStatGroup::tlbSquashes |
Total number of outstanding tlb accesses that were dropped due to a squash.
Definition at line 597 of file fetch.hh.
Referenced by DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), and DefaultFetch< Impl >::finishTranslation().