43#include "debug/ProbeVerbose.hh"
59 DPRINTFR(ProbeVerbose,
"Probes: Call to addListener to \"%s\" on %s.\n",
63 if ((*p)->getName() == point_name) {
64 (*p)->addListener(&listener);
69 DPRINTFR(ProbeVerbose,
"Probes: Call to addListener to \"%s\" on "
70 "%s failed, no such point.\n", point_name,
name());
79 DPRINTFR(ProbeVerbose,
"Probes: Call to removeListener from \"%s\" on "
80 "%s.\n", point_name,
name());
83 if ((*p)->getName() == point_name) {
84 (*p)->removeListener(&listener);
89 DPRINTFR(ProbeVerbose,
"Probes: Call to removeListener from \"%s\" "
90 "on %s failed, no such point.\n", point_name,
name());
98 DPRINTFR(ProbeVerbose,
"Probes: Call to addPoint \"%s\" to %s.\n",
102 DPRINTFR(ProbeVerbose,
"Probes: Call to addPoint \"%s\" to %s "
103 "failed, already added.\n", point.
getName(),
name());
113 if (
p->getName() == point_name) {
virtual std::string name() const
ProbeListener base class; here to simplify things like containers containing multiple types of ProbeL...
ProbeManager is a conduit class that lives on each SimObject, and is used to match up probe listeners...
bool addListener(std::string_view point_name, ProbeListener &listener)
Add a ProbeListener to the ProbePoint named by pointName.
void addPoint(ProbePoint &point)
Add a ProbePoint to this SimObject ProbeManager.
bool removeListener(std::string_view point_name, ProbeListener &listener)
Remove a ProbeListener from the ProbePoint named by pointName.
std::vector< ProbePoint * > points
Vector for name look-up.
ProbePoint * getFirstProbePoint(std::string_view point_name) const
ProbePoint base class; again used to simplify use of ProbePoints in containers and used as to define ...
const std::string & getName() const
ProbePoint(ProbeManager *manager, const std::string &name)
Copyright (c) 2024 Arm Limited All rights reserved.