|
gem5 [DEVELOP-FOR-25.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 (const std::string &obj_name) | |
| virtual | ~ProbeManager () |
| bool | addListener (std::string_view point_name, ProbeListener &listener) |
| Add a ProbeListener to the ProbePoint named by pointName. | |
| bool | removeListener (std::string_view point_name, ProbeListener &listener) |
| Remove a ProbeListener from the ProbePoint named by pointName. | |
| void | addPoint (ProbePoint &point) |
| Add a ProbePoint to this SimObject ProbeManager. | |
| ProbePoint * | getFirstProbePoint (std::string_view point_name) const |
| template<typename Listener, typename... Args> | |
| ProbeListenerPtr< Listener > | connect (Args &&...args) |
Public Member Functions inherited from gem5::Named | |
| Named (std::string_view name_) | |
| virtual | ~Named ()=default |
| virtual std::string | name () const |
Private Attributes | |
| std::vector< ProbePoint * > | points |
| Vector for name look-up. | |
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners with probe points.
|
inline |
Definition at line 168 of file probe.hh.
References gem5::Named::Named().
|
inlinevirtual |
| bool gem5::ProbeManager::addListener | ( | std::string_view | 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 57 of file probe.cc.
References DPRINTFR, gem5::Named::name(), gem5::MipsISA::p, and points.
Referenced by connect().
| void gem5::ProbeManager::addPoint | ( | ProbePoint & | point | ) |
Add a ProbePoint to this SimObject ProbeManager.
| point | the ProbePoint to add. |
Definition at line 96 of file probe.cc.
References DPRINTFR, getFirstProbePoint(), gem5::ProbePoint::getName(), gem5::Named::name(), and points.
Referenced by gem5::ProbePoint::ProbePoint().
|
inline |
Definition at line 198 of file probe.hh.
References addListener().
Referenced by gem5::prefetch::Base::addEventProbe(), gem5::prefetch::PIF::addEventProbeRetiredInsts(), gem5::ArmISA::PMU::RegularEvent::enable(), and gem5::BaseMemProbe::regProbeListeners().
| ProbePoint * gem5::ProbeManager::getFirstProbePoint | ( | std::string_view | point_name | ) | const |
Definition at line 110 of file probe.cc.
References gem5::MipsISA::p, and points.
Referenced by addPoint(), and gem5::ArmISA::PMU::RegularEvent::enable().
| bool gem5::ProbeManager::removeListener | ( | std::string_view | 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 76 of file probe.cc.
References DPRINTFR, gem5::Named::name(), gem5::MipsISA::p, and points.
|
private |
Vector for name look-up.
Definition at line 165 of file probe.hh.
Referenced by addListener(), addPoint(), getFirstProbePoint(), and removeListener().