Skip to content

Commit

Permalink
Fix probe name encoding in Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
javierhonduco committed Apr 19, 2018
1 parent 84c8873 commit 1ef82e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _find_usdt_probe(self):
else Probe.tgid
self.usdt = USDT(path=self.library, pid=target)
for probe in self.usdt.enumerate_probes():
if probe.name == self.usdt_name:
if probe.name == self.usdt_name.encode('ascii'):
return # Found it, will enable later
self._bail("unrecognized USDT probe %s" % self.usdt_name)

Expand Down

0 comments on commit 1ef82e2

Please sign in to comment.