Home | History | Annotate | Download | only in gdb

Lines Matching refs:probe

1 /* Generic SDT probe support for GDB.
43 These methods do not go into the 'class probe' because they do not
44 act on a single probe; instead, they are used to operate on many
45 probes at once, or to provide information about the probe backend
46 itself, instead of a single probe.
48 Each probe backend needs to inherit this class and implement all of
51 ALL_STATIC_PROBE_OPS vector so that the frontend probe interface
52 can use it in the generic probe functions. */
58 for a probe breakpoint. It should return true if it is, or false
61 example, if the option is `-probe', and the LINESPECP is `-probe
67 virtual void get_probes (std::vector<std::unique_ptr<probe>> *probes,
70 /* Return a pointer to a name identifying the probe type. This is
75 /* Return true if the probe can be enabled; false otherwise. */
84 required by the probe backend, the method EMIT_INFO_PROBES_FIELDS
103 updating LINESPECP to skip its "-probe-type " prefix. Return
104 &static_probe_ops_any if LINESPECP matches "-probe ", that is any
105 unspecific probe. Return NULL if LINESPECP is not identified as
106 any known probe type, *LINESPECP is not modified in such case. */
111 /* The probe itself. The class contains generic information about the
112 probe. */
114 class probe
117 /* Default constructor for a probe. */
118 probe (std::string &&name_, std::string &&provider_, CORE_ADDR address_,
125 virtual ~probe ()
128 /* Compute the probe's relocated address. OBJFILE is the objfile
129 in which the probe originated. */
132 /* Return the number of arguments of the probe. This function can
136 /* Return 1 if the probe interface can evaluate the arguments of
137 probe, zero otherwise. See the comments on
142 /* Evaluate the Nth argument from the probe, returning a value
148 /* Compile the Nth argument of the probe to an agent expression.
154 /* Set the semaphore associated with the probe. This function only
155 makes sense if the probe has a concept of semaphore associated to
156 a probe. */
161 /* Clear the semaphore associated with the probe. This function
162 only makes sense if the probe has a concept of semaphore
163 associated to a probe. */
169 the probe type. */
173 fields to be printed for the probe.
187 /* Enable the probe. The semantics of "enabling" a probe depend on
192 /* Disable the probe. The semantics of "disabling" a probe depend
223 /* The name of the probe. */
226 /* The provider of the probe. It generally defaults to the name of
227 the objfile which contains the probe. */
230 /* The address where the probe is inserted, relative to
234 /* The probe's architecture. */
238 /* A bound probe holds a pointer to a probe and a pointer to the
239 probe's defining objfile. This is needed because probes are
249 /* Create and initialize a bound_probe object using PROBE and OBJFILE. */
250 bound_probe (probe *probe_, struct objfile *objfile_)
254 /* The probe. */
255 probe *prob = NULL;
257 /* The objfile in which the probe originated. */
261 /* A helper for linespec that decodes a probe specification. It
270 /* Given a PC, find an associated probe. If a probe is found, return
271 it. If no probe is found, return a bound probe whose fields are
276 /* Search OBJFILE for a probe with the given PROVIDER, NAME. Return a
277 vector of all probes that were found. If no matching probe is found,
280 extern std::vector<probe *> find_probes_in_objfile (struct objfile *objfile,
285 SPOPS. If SPOPS is related to the "any probe" type, then all probe
287 the probe backends to print their `info probe TYPE'. */
299 /* A convenience function that finds a probe at the PC in FRAME and
301 probe at that location, or if the probe does not have enough arguments,
307 /* Return true if the PROVIDER/NAME probe from OBJFILE_NAME needs to be