gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::ArmISA::PMU::RegularEvent Struct Reference

#include <pmu.hh>

Inheritance diagram for gem5::ArmISA::PMU::RegularEvent:
gem5::ArmISA::PMU::PMUEvent

Classes

struct  CacheProbe
struct  RegularProbe

Public Types

typedef std::pair< SimObject *, std::string > EventTypeEntry

Public Member Functions

void addMicroarchitectureProbe (SimObject *object, std::string name)
Public Member Functions inherited from gem5::ArmISA::PMU::PMUEvent
 PMUEvent (EventTypeId _id, Stats *pmu_stats)
 PMUEvent constructor.
virtual ~PMUEvent ()
void attachEvent (PMU::CounterState *user)
 attach this event to a given counter
void detachEvent (PMU::CounterState *user)
 detach this event from a given counter
virtual void increment (const uint64_t val)
 notify an event increment of val units, all the attached counters' value is incremented by val units.
virtual void updateAttachedCounters ()
 Method called immediately before a counter access in order for the associated event to update its state (if required)

Protected Member Functions

void enable () override
 Enable the current event.
void disable () override
 Disable the current event.
 PMUEvent (EventTypeId _id, Stats *pmu_stats)
 PMUEvent constructor.

Protected Attributes

std::set< EventTypeEntrymicroArchitectureEventSet
 The set of events driving the event value.
std::vector< ProbeListenerPtr<> > attachedProbePointList
 Set of probe listeners tapping onto each of the input micro-arch events which compose this pmu event.
Protected Attributes inherited from gem5::ArmISA::PMU::PMUEvent
const EventTypeId id
 ID of this event.
Stats *const pmuStats
 True is event is reported as a stat.
std::set< PMU::CounterState * > userCounters
 set of counters using this event

Detailed Description

Definition at line 358 of file pmu.hh.

Member Typedef Documentation

◆ EventTypeEntry

Definition at line 360 of file pmu.hh.

Member Function Documentation

◆ addMicroarchitectureProbe()

void gem5::ArmISA::PMU::RegularEvent::addMicroarchitectureProbe ( SimObject * object,
std::string name )
inline

◆ disable()

void gem5::ArmISA::PMU::RegularEvent::disable ( )
overrideprotectedvirtual

Disable the current event.

Implements gem5::ArmISA::PMU::PMUEvent.

Definition at line 543 of file pmu.cc.

References attachedProbePointList.

◆ enable()

void gem5::ArmISA::PMU::RegularEvent::enable ( )
overrideprotectedvirtual

◆ PMUEvent()

gem5::ArmISA::PMU::PMUEvent::PMUEvent ( EventTypeId _id,
Stats * pmu_stats )
inlineprotected

PMUEvent constructor.

Parameters
idevent_id associated with the PMU event
pmu_statspointer to PMU stats if there is a gem5 stat associated with this event. nullptr otherwise

Definition at line 301 of file pmu.hh.

Member Data Documentation

◆ attachedProbePointList

std::vector<ProbeListenerPtr<> > gem5::ArmISA::PMU::RegularEvent::attachedProbePointList
protected

Set of probe listeners tapping onto each of the input micro-arch events which compose this pmu event.

Definition at line 409 of file pmu.hh.

Referenced by disable(), and enable().

◆ microArchitectureEventSet

std::set<EventTypeEntry> gem5::ArmISA::PMU::RegularEvent::microArchitectureEventSet
protected

The set of events driving the event value.

Definition at line 404 of file pmu.hh.

Referenced by addMicroarchitectureProbe(), and enable().


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

Generated on Sat Oct 18 2025 08:06:57 for gem5 by doxygen 1.14.0