|
gem5
v22.1.0.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 point_name, ProbeListener &listener) |
| Add a ProbeListener to the ProbePoint named by pointName. More... | |
| bool | removeListener (std::string point_name, 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 | |
| GEM5_CLASS_VAR_USED const 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.
|
inlinevirtual |
| bool gem5::ProbeManager::addListener | ( | std::string | point_name, |
| ProbeListener & | listener | ||
| ) |
Add a ProbeListener to the ProbePoint named by pointName.
If the name doesn't resolve a ProbePoint return false.
| point_name | name of the ProbePoint to add the ProbeListener to. |
| listener | the ProbeListener to add. |
Definition at line 84 of file probe.cc.
References DPRINTFR, gem5::Named::name(), object, gem5::VegaISA::p, and points.
Referenced by gem5::ProbeListener::ProbeListener().
| void gem5::ProbeManager::addPoint | ( | ProbePoint & | point | ) |
Add a ProbePoint to this SimObject ProbeManager.
| point | the ProbePoint to add. |
Definition at line 122 of file probe.cc.
References DPRINTFR, gem5::ProbePoint::getName(), gem5::Named::name(), object, gem5::VegaISA::p, and points.
Referenced by gem5::ProbePoint::ProbePoint().
| bool gem5::ProbeManager::removeListener | ( | std::string | point_name, |
| ProbeListener & | listener | ||
| ) |
Remove a ProbeListener from the ProbePoint named by pointName.
If the name doesn't resolve a ProbePoint return false.
| point_name | the name of the ProbePoint to remove the ProbeListener from. |
| listener | the ProbeListener to remove. |
Definition at line 103 of file probe.cc.
References DPRINTFR, gem5::Named::name(), object, gem5::VegaISA::p, and points.
Referenced by gem5::ProbeListener::~ProbeListener().
|
private |
Required for sensible debug messages.
Definition at line 167 of file probe.hh.
Referenced by addListener(), addPoint(), and removeListener().
|
private |
Vector for name look-up.
Definition at line 169 of file probe.hh.
Referenced by addListener(), addPoint(), and removeListener().