gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::ArmISA::PMU::SWIncrementEvent Class Reference

#include <pmu.hh>

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

Public Member Functions

void write (uint64_t val)
 write on the sw increment register inducing an increment of the counters with this event selected according to the bitfield written.
 PMUEvent (EventTypeId _id, Stats *pmu_stats)
 PMUEvent constructor.
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)

Private Member Functions

void enable () override
 Enable the current event.
void disable () override
 Disable the current event.

Additional Inherited Members

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 418 of file pmu.hh.

Member Function Documentation

◆ disable()

void gem5::ArmISA::PMU::SWIncrementEvent::disable ( )
inlineoverrideprivatevirtual

Disable the current event.

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

Definition at line 421 of file pmu.hh.

◆ enable()

void gem5::ArmISA::PMU::SWIncrementEvent::enable ( )
inlineoverrideprivatevirtual

Enable the current event.

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

Definition at line 420 of file pmu.hh.

◆ PMUEvent()

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

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.

◆ write()

void gem5::ArmISA::PMU::SWIncrementEvent::write ( uint64_t val)

write on the sw increment register inducing an increment of the counters with this event selected according to the bitfield written.

Parameters
thebitfield selecting the counters to increment.

Definition at line 865 of file pmu.cc.

References gem5::ArmISA::PMU::PMUEvent::userCounters, and gem5::X86ISA::val.


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

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