gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
ArmISA::PMU::CounterState Struct Reference

State of a counter within the PMU. More...

#include <pmu.hh>

Inheritance diagram for ArmISA::PMU::CounterState:
Serializable

Public Member Functions

 CounterState ()
 
void serialize (CheckpointOut &cp) const override
 Serialize an object. More...
 
void unserialize (CheckpointIn &cp) override
 Unserialize an object. More...
 
bool add (uint64_t delta)
 Add an event count to the counter and check for overflow. More...
 
- Public Member Functions inherited from Serializable
 Serializable ()
 
virtual ~Serializable ()
 
void serializeSection (CheckpointOut &cp, const char *name) const
 Serialize an object into a new section. More...
 
void serializeSection (CheckpointOut &cp, const std::string &name) const
 
void unserializeSection (CheckpointIn &cp, const char *name)
 Unserialize an a child object. More...
 
void unserializeSection (CheckpointIn &cp, const std::string &name)
 

Public Attributes

EventTypeId eventId
 Counter event ID. More...
 
PMEVTYPER_t filter
 Filtering settings (evtCount is unused) More...
 
uint64_t value
 Current value of the counter. More...
 
bool enabled
 Is the counter enabled? More...
 
bool overflow64
 Is this a 64-bit counter? More...
 
std::vector< ProbeListenerUPtrlisteners
 Probe listeners driving this counter. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Serializable
static const std::string & currentSection ()
 Get the fully-qualified name of the active section. More...
 
static void serializeAll (const std::string &cpt_dir)
 
static void unserializeGlobals (CheckpointIn &cp)
 
- Static Public Attributes inherited from Serializable
static int ckptCount = 0
 
static int ckptMaxCount = 0
 
static int ckptPrevCount = -1
 

Detailed Description

State of a counter within the PMU.

Definition at line 324 of file pmu.hh.

Constructor & Destructor Documentation

ArmISA::PMU::CounterState::CounterState ( )
inline

Definition at line 325 of file pmu.hh.

References listeners.

Member Function Documentation

bool ArmISA::PMU::CounterState::add ( uint64_t  delta)

Add an event count to the counter and check for overflow.

Parameters
deltaNumber of events to add to the counter.
Returns
true on overflow, false otherwise.

Definition at line 572 of file pmu.cc.

References ULL.

Referenced by ArmISA::PMU::handleEvent().

void ArmISA::PMU::CounterState::serialize ( CheckpointOut cp) const
overridevirtual

Serialize an object.

Output an object's state into the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 554 of file pmu.cc.

References enabled, eventId, overflow64, SERIALIZE_SCALAR, and value.

void ArmISA::PMU::CounterState::unserialize ( CheckpointIn cp)
overridevirtual

Unserialize an object.

Read an object's state from the current checkpoint section.

Parameters
cpCheckpoint state

Implements Serializable.

Definition at line 563 of file pmu.cc.

References Stats::enabled(), and UNSERIALIZE_SCALAR.

Member Data Documentation

bool ArmISA::PMU::CounterState::enabled

Is the counter enabled?

Definition at line 354 of file pmu.hh.

Referenced by serialize(), ArmISA::PMU::setMiscReg(), ArmISA::PMU::updateAllCounters(), and ArmISA::PMU::updateCounter().

EventTypeId ArmISA::PMU::CounterState::eventId
PMEVTYPER_t ArmISA::PMU::CounterState::filter

Filtering settings (evtCount is unused)

Definition at line 348 of file pmu.hh.

Referenced by ArmISA::PMU::getCounterTypeRegister(), ArmISA::PMU::isFiltered(), and ArmISA::PMU::setCounterTypeRegister().

std::vector<ProbeListenerUPtr> ArmISA::PMU::CounterState::listeners

Probe listeners driving this counter.

Definition at line 361 of file pmu.hh.

Referenced by CounterState(), and ArmISA::PMU::updateCounter().

bool ArmISA::PMU::CounterState::overflow64

Is this a 64-bit counter?

Definition at line 357 of file pmu.hh.

Referenced by serialize().

uint64_t ArmISA::PMU::CounterState::value

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

Generated on Fri Jun 9 2017 13:04:29 for gem5 by doxygen 1.8.6