gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::o3::CPU::CPUStats Struct Reference

#include <cpu.hh>

Inheritance diagram for gem5::o3::CPU::CPUStats:
gem5::statistics::Group

Public Member Functions

 CPUStats (CPU *cpu)
 
- 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 timesIdled
 Stat for total number of times the CPU is descheduled. More...
 
statistics::Scalar idleCycles
 Stat for total number of cycles the CPU spends descheduled. More...
 
statistics::Scalar quiesceCycles
 Stat for total number of cycles the CPU spends descheduled due to a quiesce operation or waiting for an interrupt. More...
 
statistics::Vector committedInsts
 Stat for the number of committed instructions per thread. More...
 
statistics::Vector committedOps
 Stat for the number of committed ops (including micro ops) per thread. More...
 
statistics::Formula cpi
 Stat for the CPI per thread. More...
 
statistics::Formula totalCpi
 Stat for the total CPI. More...
 
statistics::Formula ipc
 Stat for the IPC per thread. More...
 
statistics::Formula totalIpc
 Stat for the total IPC. More...
 
statistics::Scalar intRegfileReads
 
statistics::Scalar intRegfileWrites
 
statistics::Scalar fpRegfileReads
 
statistics::Scalar fpRegfileWrites
 
statistics::Scalar vecRegfileReads
 
statistics::Scalar vecRegfileWrites
 
statistics::Scalar vecPredRegfileReads
 
statistics::Scalar vecPredRegfileWrites
 
statistics::Scalar ccRegfileReads
 
statistics::Scalar ccRegfileWrites
 
statistics::Scalar miscRegfileReads
 
statistics::Scalar miscRegfileWrites
 

Detailed Description

Definition at line 663 of file cpu.hh.

Constructor & Destructor Documentation

◆ CPUStats()

gem5::o3::CPU::CPUStats::CPUStats ( CPU cpu)

Member Data Documentation

◆ ccRegfileReads

statistics::Scalar gem5::o3::CPU::CPUStats::ccRegfileReads

Definition at line 701 of file cpu.hh.

Referenced by CPUStats(), gem5::o3::CPU::readArchCCReg(), and gem5::o3::CPU::readCCReg().

◆ ccRegfileWrites

statistics::Scalar gem5::o3::CPU::CPUStats::ccRegfileWrites

Definition at line 702 of file cpu.hh.

Referenced by CPUStats(), gem5::o3::CPU::setArchCCReg(), and gem5::o3::CPU::setCCReg().

◆ committedInsts

statistics::Vector gem5::o3::CPU::CPUStats::committedInsts

Stat for the number of committed instructions per thread.

Definition at line 675 of file cpu.hh.

Referenced by CPUStats(), and gem5::o3::CPU::instDone().

◆ committedOps

statistics::Vector gem5::o3::CPU::CPUStats::committedOps

Stat for the number of committed ops (including micro ops) per thread.

Definition at line 678 of file cpu.hh.

Referenced by CPUStats(), and gem5::o3::CPU::instDone().

◆ cpi

statistics::Formula gem5::o3::CPU::CPUStats::cpi

Stat for the CPI per thread.

Definition at line 680 of file cpu.hh.

Referenced by CPUStats().

◆ fpRegfileReads

statistics::Scalar gem5::o3::CPU::CPUStats::fpRegfileReads

Definition at line 692 of file cpu.hh.

Referenced by CPUStats(), gem5::o3::CPU::readArchFloatReg(), and gem5::o3::CPU::readFloatReg().

◆ fpRegfileWrites

statistics::Scalar gem5::o3::CPU::CPUStats::fpRegfileWrites

Definition at line 693 of file cpu.hh.

Referenced by CPUStats(), gem5::o3::CPU::setArchFloatReg(), and gem5::o3::CPU::setFloatReg().

◆ idleCycles

statistics::Scalar gem5::o3::CPU::CPUStats::idleCycles

Stat for total number of cycles the CPU spends descheduled.

Definition at line 670 of file cpu.hh.

Referenced by CPUStats(), and gem5::o3::CPU::wakeCPU().

◆ intRegfileReads

statistics::Scalar gem5::o3::CPU::CPUStats::intRegfileReads

Definition at line 689 of file cpu.hh.

Referenced by CPUStats(), gem5::o3::CPU::readArchIntReg(), and gem5::o3::CPU::readIntReg().

◆ intRegfileWrites

statistics::Scalar gem5::o3::CPU::CPUStats::intRegfileWrites

Definition at line 690 of file cpu.hh.

Referenced by CPUStats(), gem5::o3::CPU::setArchIntReg(), and gem5::o3::CPU::setIntReg().

◆ ipc

statistics::Formula gem5::o3::CPU::CPUStats::ipc

Stat for the IPC per thread.

Definition at line 684 of file cpu.hh.

Referenced by CPUStats().

◆ miscRegfileReads

statistics::Scalar gem5::o3::CPU::CPUStats::miscRegfileReads

Definition at line 704 of file cpu.hh.

Referenced by CPUStats(), and gem5::o3::CPU::readMiscReg().

◆ miscRegfileWrites

statistics::Scalar gem5::o3::CPU::CPUStats::miscRegfileWrites

Definition at line 705 of file cpu.hh.

Referenced by CPUStats(), and gem5::o3::CPU::setMiscReg().

◆ quiesceCycles

statistics::Scalar gem5::o3::CPU::CPUStats::quiesceCycles

Stat for total number of cycles the CPU spends descheduled due to a quiesce operation or waiting for an interrupt.

Definition at line 673 of file cpu.hh.

Referenced by gem5::o3::CPU::activateContext(), and CPUStats().

◆ timesIdled

statistics::Scalar gem5::o3::CPU::CPUStats::timesIdled

Stat for total number of times the CPU is descheduled.

Definition at line 668 of file cpu.hh.

Referenced by CPUStats(), and gem5::o3::CPU::tick().

◆ totalCpi

statistics::Formula gem5::o3::CPU::CPUStats::totalCpi

Stat for the total CPI.

Definition at line 682 of file cpu.hh.

Referenced by CPUStats().

◆ totalIpc

statistics::Formula gem5::o3::CPU::CPUStats::totalIpc

Stat for the total IPC.

Definition at line 686 of file cpu.hh.

Referenced by CPUStats().

◆ vecPredRegfileReads

statistics::Scalar gem5::o3::CPU::CPUStats::vecPredRegfileReads
mutable

Definition at line 698 of file cpu.hh.

Referenced by CPUStats(), and gem5::o3::CPU::readVecPredReg().

◆ vecPredRegfileWrites

statistics::Scalar gem5::o3::CPU::CPUStats::vecPredRegfileWrites

◆ vecRegfileReads

statistics::Scalar gem5::o3::CPU::CPUStats::vecRegfileReads
mutable

Definition at line 695 of file cpu.hh.

Referenced by CPUStats(), gem5::o3::CPU::readVecElem(), and gem5::o3::CPU::readVecReg().

◆ vecRegfileWrites

statistics::Scalar gem5::o3::CPU::CPUStats::vecRegfileWrites

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

Generated on Tue Sep 21 2021 12:31:42 for gem5 by doxygen 1.8.17