Commit fb4ed04d authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1691 from javierhonduco/trace-fix-probe-name-encoding

Fix probe name encoding in Python 3
parents 84c8873a 1ef82e22
......@@ -159,7 +159,7 @@ class Probe(object):
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)
......
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