Commit ceb90896 authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #896 from brendangregg/tool1

trace: allow tracing of functions containing a dot (golang)
parents a45d872f fdbebeeb
......@@ -76,6 +76,8 @@ class Probe(object):
self.probe_num = Probe.probe_count
self.probe_name = "probe_%s_%d" % \
(self._display_function(), self.probe_num)
if self.probe_name.find(".") > 0: # for golang
self.probe_name = self.probe_name.replace(".", "_DOT_")
def __str__(self):
return "%s:%s:%s FLT=%s ACT=%s/%s" % (self.probe_type,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment