gem5
v20.1.0.0
|
Model of an ARM PMU version 3. More...
#include <pmu.hh>
Classes | |
struct | CounterState |
State of a counter within the PMU. More... | |
struct | PMUEvent |
Event definition base class. More... | |
struct | RegularEvent |
class | SWIncrementEvent |
Public Member Functions | |
PMU (const ArmPMUParams *p) | |
~PMU () | |
void | addEventProbe (unsigned int id, SimObject *obj, const char *name) |
void | addSoftwareIncrementEvent (unsigned int id) |
void | registerEvent (uint32_t id) |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
void | drainResume () override |
Resume execution after a successful drain. More... | |
void | regProbeListeners () override |
Register probe listeners for this object. More... | |
void | setThreadContext (ThreadContext *tc) override |
void | setMiscReg (int misc_reg, RegVal val) override |
Set a register within the PMU. More... | |
RegVal | readMiscReg (int misc_reg) override |
Read a register within the PMU. More... | |
Public Member Functions inherited from SimObject | |
const Params * | params () const |
SimObject (const Params *_params) | |
virtual | ~SimObject () |
virtual const std::string | name () const |
virtual void | init () |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. More... | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. More... | |
virtual void | regProbePoints () |
Register probe points for this object. More... | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. More... | |
virtual Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) |
Get a port with a given name and index. More... | |
virtual void | startup () |
startup() is the final initialization call before simulation. More... | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. More... | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. More... | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
Public Member Functions inherited from EventManager | |
EventQueue * | eventQueue () const |
void | schedule (Event &event, Tick when) |
void | deschedule (Event &event) |
void | reschedule (Event &event, Tick when, bool always=false) |
void | schedule (Event *event, Tick when) |
void | deschedule (Event *event) |
void | reschedule (Event *event, Tick when, bool always=false) |
void | wakeupEventQueue (Tick when=(Tick) -1) |
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. More... | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
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 Member Functions inherited from Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
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 Member Functions inherited from ArmISA::BaseISADevice | |
BaseISADevice () | |
virtual | ~BaseISADevice () |
virtual void | setISA (ISA *isa) |
Protected Types | |
typedef unsigned int | EventTypeId |
Event type ID. More... | |
Protected Member Functions | |
BitUnion32 (PMCR_t) Bitfield< 0 > e | |
EndBitUnion (PMCR_t) BitUnion32(PMSELR_t) Bitfield< 4 | |
EndBitUnion (PMSELR_t) BitUnion32(PMEVTYPER_t) Bitfield< 15 | |
EndBitUnion (PMEVTYPER_t) typedef unsigned int CounterId | |
Counter ID within the PMU. More... | |
RegVal | readMiscRegInt (int misc_reg) |
void | setControlReg (PMCR_t val) |
PMCR write handling. More... | |
void | resetEventCounts () |
Reset all event counters excluding the cycle counter to zero. More... | |
void | raiseInterrupt () |
Deliver a PMU interrupt to the GIC. More... | |
void | clearInterrupt () |
Clear a PMU interrupt. More... | |
uint64_t | getCounterValue (CounterId id) const |
Get the value of a performance counter. More... | |
void | setCounterValue (CounterId id, uint64_t val) |
Set the value of a performance counter. More... | |
PMEVTYPER_t | getCounterTypeRegister (CounterId id) const |
Get the type and filter settings of a counter (PMEVTYPER) More... | |
void | setCounterTypeRegister (CounterId id, PMEVTYPER_t type) |
Set the type and filter settings of a performance counter (PMEVTYPER) More... | |
void | setOverflowStatus (RegVal new_val) |
Used for writing the Overflow Flag Status Register (SET/CLR) More... | |
PMUEvent * | getEvent (uint64_t eventId) |
Obtain the event of a given id. More... | |
bool | isValidCounter (CounterId id) const |
Is this a valid counter ID? More... | |
CounterState & | getCounter (CounterId id) |
Return the state of a counter. More... | |
const CounterState & | getCounter (CounterId id) const |
Return the state of a counter. More... | |
void | updateCounter (CounterState &ctr) |
Depending on counter configuration, add or remove the probes driving the counter. More... | |
bool | isFiltered (const CounterState &ctr) const |
Check if a counter's settings allow it to be counted. More... | |
void | updateAllCounters () |
Call updateCounter() for each counter in the PMU if the counter's state has changed. More... | |
Protected Member Functions inherited from Drainable | |
Drainable () | |
virtual | ~Drainable () |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
Protected Attributes | |
Bitfield< 1 > | p |
Bitfield< 2 > | c |
Bitfield< 3 > | d |
Bitfield< 4 > | x |
Bitfield< 5 > | dp |
Bitfield< 6 > | lc |
Bitfield< 15, 11 > | n |
Bitfield< 23, 16 > | idcode |
Bitfield< 31, 24 > | imp |
sel | |
evtCount | |
Bitfield< 26 > | m |
Bitfield< 27 > | nsh |
Bitfield< 28 > | nsu |
Bitfield< 29 > | nsk |
Bitfield< 30 > | u |
Bitfield< 31 > | p |
RegVal | reg_pmcnten |
Performance Monitor Count Enable Register. More... | |
PMCR_t | reg_pmcr |
Performance Monitor Control Register. More... | |
PMSELR_t | reg_pmselr |
Performance Monitor Selection Register. More... | |
RegVal | reg_pminten |
Performance Monitor Interrupt Enable Register. More... | |
RegVal | reg_pmovsr |
Performance Monitor Overflow Status Register. More... | |
uint64_t | reg_pmceid0 |
Performance counter ID register. More... | |
uint64_t | reg_pmceid1 |
unsigned | clock_remainder |
Remainder part when the clock counter is divided by 64. More... | |
uint64_t | maximumCounterCount |
The number of regular event counters. More... | |
std::vector< CounterState > | counters |
State of all general-purpose counters supported by PMU. More... | |
CounterState | cycleCounter |
State of the cycle counter. More... | |
const uint64_t | cycleCounterEventId |
The id of the counter hardwired to the cpu cycle counter. More... | |
SWIncrementEvent * | swIncrementEvent |
The event that implements the software increment. More... | |
PMCR_t | reg_pmcr_conf |
Constant (configuration-dependent) part of the PMCR. More... | |
ArmInterruptPin * | interrupt |
Performance monitor interrupt number. More... | |
std::map< EventTypeId, PMUEvent * > | eventMap |
List of event types supported by this PMU. More... | |
Protected Attributes inherited from SimObject | |
const SimObjectParams * | _params |
Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Protected Attributes inherited from ArmISA::BaseISADevice | |
ISA * | isa |
Static Protected Attributes | |
static const CounterId | PMCCNTR = 31 |
Cycle Count Register Number. More... | |
static const RegVal | reg_pmcr_wr_mask = 0x39 |
PMCR write mask when accessed from the guest. More... | |
Additional Inherited Members | |
Public Types inherited from SimObject | |
typedef SimObjectParams | Params |
Static Public Member Functions inherited from SimObject | |
static void | serializeAll (CheckpointOut &cp) |
Serialize all SimObjects in the system. More... | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. More... | |
Static Public Member Functions inherited from Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
Serializes all the SimObjects. More... | |
static void | unserializeGlobals (CheckpointIn &cp) |
Model of an ARM PMU version 3.
This class implements a subset of the ARM PMU v3 specification as described in the ARMv8 reference manual. It supports most of the features of the PMU, however the following features are known to be missing:
The PMU itself does not implement any events, in merely provides an interface for the configuration scripts to hook up probes that drive events. Configuration scripts should call addEventProbe() to configure custom events or high-level methods to configure architected events. The Python implementation of addEventProbe() automatically delays event type registration until after instantiation.
In order to support CPU switching and some combined counters (e.g., memory references synthesized from loads and stores), the PMU allows multiple probes per event type. When creating a system that switches between CPU models that share the same PMU, PMU events for all of the CPU models can be registered with the PMU.
|
protected |
ArmISA::PMU::PMU | ( | const ArmPMUParams * | p | ) |
Definition at line 54 of file pmu.cc.
References cycleCounter, DPRINTF, ArmISA::PMU::CounterState::eventId, fatal, maximumCounterCount, p, reg_pmcr_conf, and warn_if.
void ArmISA::PMU::addEventProbe | ( | unsigned int | id, |
SimObject * | obj, | ||
const char * | name | ||
) |
Definition at line 124 of file pmu.cc.
References DPRINTF, MipsISA::event, eventMap, fatal, ArmISA::id, SimObject::name(), and registerEvent().
void ArmISA::PMU::addSoftwareIncrementEvent | ( | unsigned int | id | ) |
Definition at line 102 of file pmu.cc.
References DPRINTF, eventMap, fatal_if, ArmISA::id, registerEvent(), and swIncrementEvent.
|
protected |
|
protected |
Clear a PMU interrupt.
Definition at line 675 of file pmu.cc.
References ArmInterruptPin::clear(), DPRINTF, interrupt, and warn_once.
Referenced by setOverflowStatus().
|
overridevirtual |
Resume execution after a successful drain.
Reimplemented from Drainable.
Definition at line 166 of file pmu.cc.
References updateAllCounters().
|
protected |
|
protected |
Counter ID within the PMU.
This value is typically used to index into various registers controlling interrupts and overflows. The value normally in the [0, 31] range, where 31 refers to the cycle counter.
|
protected |
|
inlineprotected |
Return the state of a counter.
id | ID of counter within the PMU. |
Definition at line 522 of file pmu.hh.
References counters, cycleCounter, ArmISA::id, isValidCounter(), and PMCCNTR.
Referenced by getCounterTypeRegister(), getCounterValue(), setCounterTypeRegister(), and setCounterValue().
|
inlineprotected |
Return the state of a counter.
id | ID of counter within the PMU. |
Definition at line 534 of file pmu.hh.
References counters, cycleCounter, ArmISA::id, isValidCounter(), and PMCCNTR.
|
protected |
Get the type and filter settings of a counter (PMEVTYPER)
This method implements a read from a PMEVTYPER register. It returns the type value and filter settings of a general purpose performance counter or the cycle counter. Non-existing counters are treated as constant '0'.
id | Counter ID within the PMU. |
Definition at line 611 of file pmu.cc.
References ArmISA::PMU::CounterState::eventId, ArmISA::PMU::CounterState::filter, getCounter(), isValidCounter(), and type.
Referenced by readMiscRegInt().
|
inlineprotected |
Get the value of a performance counter.
This method returns the value of a general purpose performance counter or the fixed-function cycle counter. Non-existing counters are treated as constant '0'.
Definition at line 233 of file pmu.hh.
References getCounter(), ArmISA::PMU::CounterState::getValue(), and isValidCounter().
Referenced by readMiscRegInt().
|
protected |
Obtain the event of a given id.
the | id of the event to obtain |
Definition at line 735 of file pmu.cc.
References eventMap, and warn.
Referenced by regProbeListeners().
|
protected |
Check if a counter's settings allow it to be counted.
ctr | Counter state instance representing this counter. |
Referenced by ArmISA::PMU::CounterState::add().
|
inlineprotected |
Is this a valid counter ID?
id | ID of counter within the PMU. |
Definition at line 511 of file pmu.hh.
References counters, and PMCCNTR.
Referenced by getCounter(), getCounterTypeRegister(), getCounterValue(), setCounterTypeRegister(), and setCounterValue().
|
protected |
Deliver a PMU interrupt to the GIC.
Definition at line 663 of file pmu.cc.
References DPRINTF, interrupt, ArmInterruptPin::raise(), and warn_once.
Referenced by setOverflowStatus().
|
overridevirtual |
Read a register within the PMU.
misc_reg | Register number (see miscregs.hh) |
Implements ArmISA::BaseISADevice.
Definition at line 298 of file pmu.cc.
References DPRINTF, ArmISA::miscRegName, readMiscRegInt(), ArmISA::unflattenMiscReg(), and X86ISA::val.
|
protected |
Definition at line 307 of file pmu.cc.
References cycleCounter, getCounterTypeRegister(), getCounterValue(), ArmISA::PMU::CounterState::getValue(), ArmISA::MISCREG_PMCCFILTR, ArmISA::MISCREG_PMCCFILTR_EL0, ArmISA::MISCREG_PMCCNTR, ArmISA::MISCREG_PMCCNTR_EL0, ArmISA::MISCREG_PMCEID0, ArmISA::MISCREG_PMCEID0_EL0, ArmISA::MISCREG_PMCEID1, ArmISA::MISCREG_PMCEID1_EL0, ArmISA::MISCREG_PMCNTENCLR, ArmISA::MISCREG_PMCNTENCLR_EL0, ArmISA::MISCREG_PMCNTENSET, ArmISA::MISCREG_PMCNTENSET_EL0, ArmISA::MISCREG_PMCR, ArmISA::MISCREG_PMCR_EL0, ArmISA::MISCREG_PMEVCNTR0_EL0, ArmISA::MISCREG_PMEVTYPER0_EL0, ArmISA::MISCREG_PMINTENCLR, ArmISA::MISCREG_PMINTENCLR_EL1, ArmISA::MISCREG_PMINTENSET, ArmISA::MISCREG_PMINTENSET_EL1, ArmISA::MISCREG_PMOVSCLR_EL0, ArmISA::MISCREG_PMOVSR, ArmISA::MISCREG_PMOVSSET, ArmISA::MISCREG_PMOVSSET_EL0, ArmISA::MISCREG_PMSELR, ArmISA::MISCREG_PMSELR_EL0, ArmISA::MISCREG_PMSWINC, ArmISA::MISCREG_PMSWINC_EL0, ArmISA::MISCREG_PMUSERENR, ArmISA::MISCREG_PMUSERENR_EL0, ArmISA::MISCREG_PMXEVCNTR, ArmISA::MISCREG_PMXEVCNTR_EL0, ArmISA::MISCREG_PMXEVTYPER, ArmISA::MISCREG_PMXEVTYPER_EL0, ArmISA::MISCREG_PMXEVTYPER_PMCCFILTR, ArmISA::miscRegName, panic, PMCCNTR, reg_pmceid0, reg_pmceid1, reg_pmcnten, reg_pmcr, reg_pmcr_conf, reg_pmcr_wr_mask, reg_pminten, reg_pmovsr, reg_pmselr, ArmISA::unflattenMiscReg(), and warn.
Referenced by readMiscReg().
void ArmISA::PMU::registerEvent | ( | uint32_t | id | ) |
Definition at line 150 of file pmu.cc.
References ArmISA::id, reg_pmceid0, and reg_pmceid1.
Referenced by addEventProbe(), and addSoftwareIncrementEvent().
|
overridevirtual |
Register probe listeners for this object.
No probe listeners by default, so do nothing in base.
Reimplemented from SimObject.
Definition at line 173 of file pmu.cc.
References ArmISA::PMU::CounterState::attach(), counters, cycleCounter, cycleCounterEventId, ArmISA::PMU::CounterState::enabled, MipsISA::event, getEvent(), MipsISA::index, maximumCounterCount, and panic_if.
|
protected |
Reset all event counters excluding the cycle counter to zero.
Definition at line 591 of file pmu.cc.
References counters.
Referenced by setControlReg().
|
overridevirtual |
Serialize an object.
Output an object's state into the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 687 of file pmu.cc.
References clock_remainder, counters, csprintf(), cycleCounter, DPRINTF, ArmISA::i, reg_pmceid0, reg_pmceid1, reg_pmcnten, reg_pmcr, reg_pminten, reg_pmovsr, reg_pmselr, SERIALIZE_SCALAR, and Serializable::serializeSection().
|
protected |
PMCR write handling.
The PMCR register needs special handling since writing to it changes PMU-global state (e.g., resets all counters).
val | New PMCR value |
Definition at line 397 of file pmu.cc.
References clock_remainder, cycleCounter, DPRINTF, reg_pmcr, reg_pmcr_wr_mask, resetEventCounts(), ArmISA::PMU::CounterState::setValue(), updateAllCounters(), and X86ISA::val.
Referenced by setMiscReg().
|
protected |
Set the type and filter settings of a performance counter (PMEVTYPER)
This method implements a write to a PMEVTYPER register. It sets the type value and filter settings of a general purpose performance counter or the cycle counter. Writes to non-existing counters are ignored. The method automatically updates the probes used by the counter if it is enabled.
id | Counter ID within the PMU. |
type | Performance counter type and filter configuration.. |
Definition at line 625 of file pmu.cc.
References DPRINTF, ArmISA::PMU::CounterState::eventId, ArmISA::PMU::CounterState::filter, getCounter(), isValidCounter(), PMCCNTR, updateCounter(), X86ISA::val, and warn_once.
Referenced by setMiscReg().
|
protected |
Set the value of a performance counter.
This method sets the value of a general purpose performance counter or the fixed-function cycle counter. Writes to non-existing counters are ignored.
Definition at line 598 of file pmu.cc.
References getCounter(), isValidCounter(), ArmISA::PMU::CounterState::setValue(), X86ISA::val, and warn_once.
Referenced by setMiscReg().
|
overridevirtual |
Set a register within the PMU.
misc_reg | Register number (see miscregs.hh) |
val | Value to store |
Implements ArmISA::BaseISADevice.
Definition at line 189 of file pmu.cc.
References cycleCounter, DPRINTF, ArmISA::MISCREG_PMCCFILTR, ArmISA::MISCREG_PMCCFILTR_EL0, ArmISA::MISCREG_PMCCNTR, ArmISA::MISCREG_PMCCNTR_EL0, ArmISA::MISCREG_PMCEID0, ArmISA::MISCREG_PMCEID0_EL0, ArmISA::MISCREG_PMCEID1, ArmISA::MISCREG_PMCEID1_EL0, ArmISA::MISCREG_PMCNTENCLR, ArmISA::MISCREG_PMCNTENCLR_EL0, ArmISA::MISCREG_PMCNTENSET, ArmISA::MISCREG_PMCNTENSET_EL0, ArmISA::MISCREG_PMCR, ArmISA::MISCREG_PMCR_EL0, ArmISA::MISCREG_PMEVCNTR0_EL0, ArmISA::MISCREG_PMEVTYPER0_EL0, ArmISA::MISCREG_PMINTENCLR, ArmISA::MISCREG_PMINTENCLR_EL1, ArmISA::MISCREG_PMINTENSET, ArmISA::MISCREG_PMINTENSET_EL1, ArmISA::MISCREG_PMOVSCLR_EL0, ArmISA::MISCREG_PMOVSR, ArmISA::MISCREG_PMOVSSET, ArmISA::MISCREG_PMOVSSET_EL0, ArmISA::MISCREG_PMSELR, ArmISA::MISCREG_PMSELR_EL0, ArmISA::MISCREG_PMSWINC, ArmISA::MISCREG_PMSWINC_EL0, ArmISA::MISCREG_PMUSERENR, ArmISA::MISCREG_PMUSERENR_EL0, ArmISA::MISCREG_PMXEVCNTR, ArmISA::MISCREG_PMXEVCNTR_EL0, ArmISA::MISCREG_PMXEVTYPER, ArmISA::MISCREG_PMXEVTYPER_EL0, ArmISA::MISCREG_PMXEVTYPER_PMCCFILTR, ArmISA::miscRegName, panic, PMCCNTR, reg_pmcnten, reg_pminten, reg_pmovsr, reg_pmselr, setControlReg(), setCounterTypeRegister(), setCounterValue(), setOverflowStatus(), ArmISA::PMU::CounterState::setValue(), swIncrementEvent, ArmISA::unflattenMiscReg(), updateAllCounters(), X86ISA::val, warn, and ArmISA::PMU::SWIncrementEvent::write().
|
protected |
Used for writing the Overflow Flag Status Register (SET/CLR)
This method implements a write to the PMOVSSET/PMOVSCLR registers. It is capturing change of state in the register bits so that the overflow interrupt can be raised/cleared as a side effect of the write.
new_val | New value of the Overflow Status Register |
Definition at line 649 of file pmu.cc.
References clearInterrupt(), raiseInterrupt(), reg_pminten, and reg_pmovsr.
Referenced by setMiscReg().
|
overridevirtual |
Reimplemented from ArmISA::BaseISADevice.
Definition at line 92 of file pmu.cc.
References ThreadContext::contextId(), DPRINTF, interrupt, and SimObject::params().
|
overridevirtual |
Unserialize an object.
Read an object's state from the current checkpoint section.
cp | Checkpoint state |
Implements Serializable.
Definition at line 707 of file pmu.cc.
References clock_remainder, counters, csprintf(), cycleCounter, DPRINTF, ArmISA::i, paramIn(), reg_pmceid0, reg_pmceid1, reg_pmcnten, reg_pmcr, reg_pminten, reg_pmovsr, reg_pmselr, UNSERIALIZE_OPT_SCALAR, UNSERIALIZE_SCALAR, and Serializable::unserializeSection().
|
protected |
Call updateCounter() for each counter in the PMU if the counter's state has changed.
Definition at line 420 of file pmu.cc.
References counters, cycleCounter, X86ISA::enable, ArmISA::PMU::CounterState::enabled, ArmISA::i, PMCCNTR, reg_pmcnten, reg_pmcr, and updateCounter().
Referenced by drainResume(), setControlReg(), and setMiscReg().
|
protected |
Depending on counter configuration, add or remove the probes driving the counter.
Look at the state of a counter and (re-)attach the probes needed to drive a counter if it is currently active. All probes for the counter are detached if the counter is inactive.
id | ID of counter within the PMU. |
ctr | Reference to the counter's state |
Definition at line 568 of file pmu.cc.
References ArmISA::PMU::CounterState::attach(), ArmISA::PMU::CounterState::detach(), DPRINTF, ArmISA::PMU::CounterState::enabled, ArmISA::PMU::CounterState::eventId, eventMap, ArmISA::PMU::CounterState::getCounterId(), and warn.
Referenced by setCounterTypeRegister(), and updateAllCounters().
|
protected |
Remainder part when the clock counter is divided by 64.
Definition at line 594 of file pmu.hh.
Referenced by serialize(), setControlReg(), and unserialize().
|
protected |
State of all general-purpose counters supported by PMU.
Definition at line 600 of file pmu.hh.
Referenced by getCounter(), isValidCounter(), regProbeListeners(), resetEventCounts(), serialize(), unserialize(), and updateAllCounters().
|
protected |
State of the cycle counter.
Definition at line 603 of file pmu.hh.
Referenced by getCounter(), PMU(), readMiscRegInt(), regProbeListeners(), serialize(), setControlReg(), setMiscReg(), unserialize(), and updateAllCounters().
|
protected |
The id of the counter hardwired to the cpu cycle counter.
Definition at line 606 of file pmu.hh.
Referenced by regProbeListeners().
|
protected |
List of event types supported by this PMU.
Definition at line 624 of file pmu.hh.
Referenced by addEventProbe(), addSoftwareIncrementEvent(), getEvent(), and updateCounter().
|
protected |
Performance monitor interrupt number.
Definition at line 619 of file pmu.hh.
Referenced by clearInterrupt(), raiseInterrupt(), and setThreadContext().
|
protected |
The number of regular event counters.
Definition at line 597 of file pmu.hh.
Referenced by PMU(), and regProbeListeners().
|
staticprotected |
Cycle Count Register Number.
Definition at line 186 of file pmu.hh.
Referenced by getCounter(), isValidCounter(), readMiscRegInt(), setCounterTypeRegister(), setMiscReg(), and updateAllCounters().
|
protected |
Performance counter ID register.
These registers contain a bitmask of available architected counters.
Definition at line 590 of file pmu.hh.
Referenced by readMiscRegInt(), registerEvent(), serialize(), and unserialize().
|
protected |
Definition at line 591 of file pmu.hh.
Referenced by readMiscRegInt(), registerEvent(), serialize(), and unserialize().
|
protected |
Performance Monitor Count Enable Register.
Definition at line 570 of file pmu.hh.
Referenced by readMiscRegInt(), serialize(), setMiscReg(), unserialize(), and updateAllCounters().
|
protected |
Performance Monitor Control Register.
Definition at line 573 of file pmu.hh.
Referenced by readMiscRegInt(), serialize(), setControlReg(), unserialize(), and updateAllCounters().
|
protected |
Constant (configuration-dependent) part of the PMCR.
Definition at line 613 of file pmu.hh.
Referenced by PMU(), and readMiscRegInt().
|
staticprotected |
PMCR write mask when accessed from the guest.
Definition at line 616 of file pmu.hh.
Referenced by readMiscRegInt(), and setControlReg().
|
protected |
Performance Monitor Interrupt Enable Register.
Definition at line 579 of file pmu.hh.
Referenced by readMiscRegInt(), serialize(), setMiscReg(), setOverflowStatus(), and unserialize().
|
protected |
Performance Monitor Overflow Status Register.
Definition at line 582 of file pmu.hh.
Referenced by readMiscRegInt(), serialize(), setMiscReg(), setOverflowStatus(), and unserialize().
|
protected |
Performance Monitor Selection Register.
Definition at line 576 of file pmu.hh.
Referenced by readMiscRegInt(), serialize(), setMiscReg(), and unserialize().
|
protected |
The event that implements the software increment.
Definition at line 609 of file pmu.hh.
Referenced by addSoftwareIncrementEvent(), and setMiscReg().