|
gem5
v21.0.1.0
|
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners with probe points. More...
#include <probe.hh>
Public Member Functions | |
| ProbeManager (SimObject *obj) | |
| virtual | ~ProbeManager () |
| bool | addListener (std::string pointName, ProbeListener &listener) |
| Add a ProbeListener to the ProbePoint named by pointName. More... | |
| bool | removeListener (std::string pointName, ProbeListener &listener) |
| Remove a ProbeListener from the ProbePoint named by pointName. More... | |
| void | addPoint (ProbePoint &point) |
| Add a ProbePoint to this SimObject ProbeManager. More... | |
Private Attributes | |
| const M5_CLASS_VAR_USED SimObject * | object |
| Required for sensible debug messages. More... | |
| std::vector< ProbePoint * > | points |
| Vector for name look-up. More... | |
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners with probe points.
| bool ProbeManager::addListener | ( | std::string | pointName, |
| ProbeListener & | listener | ||
| ) |
Add a ProbeListener to the ProbePoint named by pointName.
If the name doesn't resolve a ProbePoint return false.
| pointName | the name of the ProbePoint to add the ProbeListener to. |
| listener | the ProbeListener to add. |
Definition at line 78 of file probe.cc.
References DPRINTFR, SimObject::name(), object, MipsISA::p, and points.
Referenced by ProbeListener::ProbeListener().
| void ProbeManager::addPoint | ( | ProbePoint & | point | ) |
Add a ProbePoint to this SimObject ProbeManager.
| point | the ProbePoint to add. |
Definition at line 112 of file probe.cc.
References DPRINTFR, ProbePoint::getName(), SimObject::name(), object, MipsISA::p, and points.
Referenced by ProbePoint::ProbePoint().
| bool ProbeManager::removeListener | ( | std::string | pointName, |
| ProbeListener & | listener | ||
| ) |
Remove a ProbeListener from the ProbePoint named by pointName.
If the name doesn't resolve a ProbePoint return false.
| pointName | the name of the ProbePoint to remove the ProbeListener from. |
| listener | the ProbeListener to remove. |
Definition at line 95 of file probe.cc.
References DPRINTFR, SimObject::name(), object, MipsISA::p, and points.
Referenced by ProbeListener::~ProbeListener().
|
private |
Required for sensible debug messages.
Definition at line 158 of file probe.hh.
Referenced by addListener(), addPoint(), and removeListener().
|
private |
Vector for name look-up.
Definition at line 160 of file probe.hh.
Referenced by addListener(), addPoint(), and removeListener().