fix string re being used on bytes for Python 3
@@ -621,7 +621,7 @@ class PerfEventArray(ArrayBase):
num_fields = lib.bpf_perf_event_fields(self.bpf.module, self._name)
i = 0
while i < num_fields:
- field = lib.bpf_perf_event_field(self.bpf.module, self._name, i)
+ field = lib.bpf_perf_event_field(self.bpf.module, self._name, i).decode()
m = re.match(r"(.*)#(.*)", field)
field_name = m.group(1)
field_type = m.group(2)
