Fix probe name encoding in Python 3

parent 84c8873a
...@@ -159,7 +159,7 @@ class Probe(object): ...@@ -159,7 +159,7 @@ class Probe(object):
else Probe.tgid else Probe.tgid
self.usdt = USDT(path=self.library, pid=target) self.usdt = USDT(path=self.library, pid=target)
for probe in self.usdt.enumerate_probes(): 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 return # Found it, will enable later
self._bail("unrecognized USDT probe %s" % self.usdt_name) 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