Skip to content

Commit

Permalink
trace: allow tracing of functions containing a dot (golang)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Jan 11, 2017
1 parent 5fe89aa commit fdbebee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def __init__(self, probe, string_size, kernel_stack, user_stack):
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,
Expand Down

0 comments on commit fdbebee

Please sign in to comment.