Commit fdbebeeb authored by Brendan Gregg's avatar Brendan Gregg

trace: allow tracing of functions containing a dot (golang)

parent 5fe89aa4
...@@ -76,6 +76,8 @@ class Probe(object): ...@@ -76,6 +76,8 @@ class Probe(object):
self.probe_num = Probe.probe_count self.probe_num = Probe.probe_count
self.probe_name = "probe_%s_%d" % \ self.probe_name = "probe_%s_%d" % \
(self._display_function(), self.probe_num) (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): def __str__(self):
return "%s:%s:%s FLT=%s ACT=%s/%s" % (self.probe_type, 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