Go to the documentation of this file.
40 #include "debug/ProbeVerbose.hh"
41 #include "params/ProbeListenerObject.hh"
53 manager(params->manager->getProbeManager())
66 : manager(_manager),
name(_name)
77 ProbeListenerObjectParams::create()
85 DPRINTFR(ProbeVerbose,
"Probes: Call to addListener to \"%s\" on %s.\n", pointName,
object->
name());
88 if ((*p)->getName() == pointName) {
89 (*p)->addListener(&listener);
94 DPRINTFR(ProbeVerbose,
"Probes: Call to addListener to \"%s\" on %s failed, no such point.\n", pointName,
object->
name());
102 DPRINTFR(ProbeVerbose,
"Probes: Call to removeListener from \"%s\" on %s.\n", pointName,
object->
name());
103 bool removed =
false;
105 if ((*p)->getName() == pointName) {
106 (*p)->removeListener(&listener);
111 DPRINTFR(ProbeVerbose,
"Probes: Call to removeListener from \"%s\" on %s failed, no such point.\n", pointName,
object->
name());
122 if ((*p)->getName() == point.
getName()) {
123 DPRINTFR(ProbeVerbose,
"Probes: Call to addPoint \"%s\" to %s failed, already added.\n", point.
getName(),
object->
name());
void addPoint(ProbePoint &point)
Add a ProbePoint to this SimObject ProbeManager.
std::string getName() const
ProbeListener(ProbeManager *manager, const std::string &name)
const M5_CLASS_VAR_USED SimObject * object
Required for sensible debug messages.
bool removeListener(std::string pointName, ProbeListener &listener)
Remove a ProbeListener from the ProbePoint named by pointName.
std::vector< ProbeListener * > listeners
ProbeManager *const manager
ProbeListener base class; here to simplify things like containers containing multiple types of ProbeL...
virtual ~ProbeListenerObject()
ProbeListener base class; again used to simplify use of ProbePoints in containers and used as to defi...
This class is a minimal wrapper around SimObject.
bool addListener(std::string pointName, ProbeListener &listener)
Add a ProbeListener to the ProbePoint named by pointName.
const std::string & name()
virtual const std::string name() const
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners...
ProbePoint(ProbeManager *manager, const std::string &name)
ProbeListenerObject(const ProbeListenerObjectParams *params)
std::vector< ProbePoint * > points
Vector for name look-up.
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17