gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ArmISA::PMU::EventType Struct Reference

Event type configuration. More...

#include <pmu.hh>

Public Member Functions

 EventType (SimObject *_obj, const std::string &_name)
 
std::unique_ptr< ProbeListenercreate (PMU &pmu, CounterId cid) const
 Create and attach a probe used to drive this event. More...
 

Public Attributes

SimObject *const obj
 SimObject being measured by this probe. More...
 
const std::string name
 Probe name within obj. More...
 

Private Member Functions

 EventType ()
 

Detailed Description

Event type configuration.

The main purpose of this class is to describe how a PMU event type is sampled. It is implemented as a probe factory that returns a probe attached to the object the event is mointoring.

Definition at line 290 of file pmu.hh.

Constructor & Destructor Documentation

ArmISA::PMU::EventType::EventType ( SimObject _obj,
const std::string &  _name 
)
inline
Parameters
_objTarget SimObject
_nameProbe name

Definition at line 295 of file pmu.hh.

ArmISA::PMU::EventType::EventType ( )
private

Member Function Documentation

std::unique_ptr<ProbeListener> ArmISA::PMU::EventType::create ( PMU pmu,
CounterId  cid 
) const
inline

Create and attach a probe used to drive this event.

Parameters
pmuPMU owning the probe.
CounterIDcounter ID within the PMU.
Returns
Pointer to a probe listener.

Definition at line 305 of file pmu.hh.

References SimObject::getProbeManager(), and name.

Referenced by ArmISA::PMU::updateCounter().

Member Data Documentation

const std::string ArmISA::PMU::EventType::name

Probe name within obj.

Definition at line 316 of file pmu.hh.

Referenced by create(), and ArmISA::PMU::updateCounter().

SimObject* const ArmISA::PMU::EventType::obj

SimObject being measured by this probe.

Definition at line 314 of file pmu.hh.

Referenced by ArmISA::PMU::updateCounter().


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

Generated on Fri Jun 9 2017 13:04:29 for gem5 by doxygen 1.8.6