Home | History | Annotate | Download | only in tools

Lines Matching refs:Probe

20 class Probe(object):
28 for alias, subst in Probe.aliases.items():
108 # argument we needed to probe using $entry(name), and they all
110 # the method entry probe).
147 raise ValueError("error parsing probe '%s': %s" %
151 # Everything after '#' is the probe label, ignore it
155 self._bail("at least the probe type, library, and " +
160 self._bail("probe type must be 'p', 'r', 't', or 'u'" +
204 (self.function, Probe.next_probe_index))
212 # If the user didn't specify an expression to probe, we probe
213 # the retval in a ret probe, or simply the value "1" otherwise.
232 # Do we need to attach an entry probe so that we can collect an
233 # argument that is required for an exit (return) probe?
242 (self.function, Probe.next_probe_index))
245 (self.function, Probe.next_probe_index))
246 Probe.next_probe_index += 1
254 fname = "streq_%d" % Probe.streq_index
255 Probe.streq_index += 1
379 # If any entry arguments are probed in a ret probe, we need
380 # to generate an entry probe to collect them
462 for alias, subst in Probe.aliases.items():
494 # specify an expression to probe
517 Probe specifier syntax:
520 p,r,t,u -- probe at function entry, function exit, kernel
521 tracepoint, or USDT probe
531 label -- the label for this probe in the resulting output
583 relying on the USDT pthread_start probe in process 1337
628 help="probe specifier to capture histogram of " +
632 help="probe specifier to capture count of " +
646 self.probes.append(Probe(self, "freq", specifier))
648 self.probes.append(Probe(self, "hist", histspecifier))
668 for probe in self.probes:
669 bpf_source += probe.generate_text()
671 for text in [probe.usdt_ctx.get_text()
672 for probe in self.probes
673 if probe.usdt_ctx]:
676 usdt_contexts = [probe.usdt_ctx
677 for probe in self.probes if probe.usdt_ctx]
681 for probe in self.probes:
682 probe.attach(self.bpf)
697 for probe in self.probes:
698 probe.display(self.args.top)