gem5
v20.1.0.0
|
ProbePointArg generates a point for the class of Arg. More...
#include <thermal_domain.hh>
Public Member Functions | |
ProbePointArg (ProbeManager *manager, std::string name) | |
void | addListener (ProbeListener *l) |
adds a ProbeListener to this ProbePoints notify list. More... | |
void | removeListener (ProbeListener *l) |
remove a ProbeListener from this ProbePoints notify list. More... | |
void | notify (const Arg &arg) |
called at the ProbePoint call site, passes arg to each listener. More... | |
Private Attributes | |
std::vector< ProbeListenerArgBase< Arg > * > | listeners |
The attached listeners. More... | |
ProbePointArg generates a point for the class of Arg.
As ProbePointArgs talk directly to ProbeListenerArgs of the same type, we can store the vector of ProbeListeners as their Arg type (and not as base type).
Methods are provided to addListener, removeListener and notify.
Definition at line 50 of file thermal_domain.hh.
|
inline |
|
inline |
adds a ProbeListener to this ProbePoints notify list.
l | the ProbeListener to add to the notify list. |
|
inline |
called at the ProbePoint call site, passes arg to each listener.
arg | the argument to pass to each listener. |
Definition at line 286 of file probe.hh.
Referenced by DefaultCommit< Impl >::commitInsts(), ThermalDomain::emitUpdate(), DefaultFetch< Impl >::fetch(), DefaultFetch< Impl >::finishTranslation(), DefaultFetch< Impl >::recvReqRetry(), DefaultRename< Impl >::renameInsts(), DefaultCommit< Impl >::tick(), and BaseCPU::updateCycleCounters().
|
inline |
remove a ProbeListener from this ProbePoints notify list.
l | the ProbeListener to remove from the notify list. |
|
private |
The attached listeners.
Definition at line 252 of file probe.hh.
Referenced by ProbePointArg< RequestPtr >::addListener(), ProbePointArg< RequestPtr >::notify(), and ProbePointArg< RequestPtr >::removeListener().