gem5
|
State of a counter within the PMU. More...
#include <pmu.hh>
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< ProbeListenerUPtr > | listeners |
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 |
|
inline |
bool ArmISA::PMU::CounterState::add | ( | uint64_t | delta | ) |
Add an event count to the counter and check for overflow.
delta | Number of events to add to the counter. |
Definition at line 572 of file pmu.cc.
References ULL.
Referenced by ArmISA::PMU::handleEvent().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 554 of file pmu.cc.
References enabled, eventId, overflow64, SERIALIZE_SCALAR, and value.
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 563 of file pmu.cc.
References Stats::enabled(), and UNSERIALIZE_SCALAR.
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 |
Counter event ID.
Definition at line 345 of file pmu.hh.
Referenced by ArmISA::PMU::getCounterTypeRegister(), ArmISA::PMU::PMU(), serialize(), ArmISA::PMU::setCounterTypeRegister(), and ArmISA::PMU::updateCounter().
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 |
uint64_t ArmISA::PMU::CounterState::value |
Current value of the counter.
Definition at line 351 of file pmu.hh.
Referenced by ArmISA::PMU::getCounterValue(), ArmISA::PMU::readMiscRegInt(), serialize(), ArmISA::PMU::setControlReg(), ArmISA::PMU::setCounterValue(), and ArmISA::PMU::setMiscReg().