Home | History | Annotate | Download | only in tools

Lines Matching refs:Probe

29 class Probe(object):
32 """Init a new probe.
34 Init the probe from the pattern provided by the user. The supported
38 func -- probe a kernel function
39 lib:func -- probe a user-space function in the library 'lib'
42 t:cat:event -- probe a kernel tracepoint
43 u:lib:probe -- probe a USDT tracepoint
179 for probe in self.usdt.enumerate_probes():
180 if not self.pid and (probe.bin_path != self.library):
182 if re.match(self.pattern, probe.name):
185 # each attached probe. If we just stick to trace_count,
187 # name when enabling more than one USDT probe.
191 self.usdt.enable_probe(probe.name, new_func)
272 self.probe = Probe(self.args.pattern,
283 print("%s" % self.probe.bpf.ksym(addr, show_offset=True))
285 print("%s" % self.probe.bpf.ksym(addr))
292 print("%s" % self.probe.bpf.sym(addr, pid, show_offset=True))
294 print("%s" % self.probe.bpf.sym(addr, pid))
304 self.probe.load()
305 self.probe.attach()
308 (self.probe.matched, self.args.pattern))
309 b = self.probe.bpf
328 counts = self.probe.bpf["counts"]
329 stack_traces = self.probe.bpf["stack_traces"]