|
gem5
v22.1.0.0
|
Event definition base class. More...
#include <pmu.hh>
Public Member Functions | |
| PMUEvent () | |
| virtual | ~PMUEvent () |
| void | attachEvent (PMU::CounterState *user) |
| attach this event to a given counter More... | |
| void | detachEvent (PMU::CounterState *user) |
| detach this event from a given counter More... | |
| virtual void | increment (const uint64_t val) |
| notify an event increment of val units, all the attached counters' value is incremented by val units. More... | |
| virtual void | enable ()=0 |
| Enable the current event. More... | |
| virtual void | disable ()=0 |
| Disable the current event. More... | |
| virtual void | updateAttachedCounters () |
| Method called immediately before a counter access in order for the associated event to update its state (if required) More... | |
Protected Attributes | |
| std::set< PMU::CounterState * > | userCounters |
| set of counters using this event More... | |
|
inlinevirtual |
| void gem5::ArmISA::PMU::PMUEvent::attachEvent | ( | PMU::CounterState * | user | ) |
attach this event to a given counter
| a | pointer to the counter where to attach this event |
Definition at line 440 of file pmu.cc.
References enable(), updateAttachedCounters(), and userCounters.
| void gem5::ArmISA::PMU::PMUEvent::detachEvent | ( | PMU::CounterState * | user | ) |
detach this event from a given counter
| a | pointer to the counter where to detach this event from |
Definition at line 458 of file pmu.cc.
References gem5::trace::disable().
|
pure virtual |
Disable the current event.
Implemented in gem5::ArmISA::PMU::SWIncrementEvent, and gem5::ArmISA::PMU::RegularEvent.
|
pure virtual |
Enable the current event.
Implemented in gem5::ArmISA::PMU::SWIncrementEvent, and gem5::ArmISA::PMU::RegularEvent.
Referenced by attachEvent().
|
virtual |
notify an event increment of val units, all the attached counters' value is incremented by val units.
| the | quantity by which to increment the attached counter values |
Definition at line 450 of file pmu.cc.
References gem5::X86ISA::val.
|
inlinevirtual |
Method called immediately before a counter access in order for the associated event to update its state (if required)
Definition at line 339 of file pmu.hh.
Referenced by attachEvent().
|
protected |
set of counters using this event
Definition at line 344 of file pmu.hh.
Referenced by attachEvent().