diff --git a/libs/utils/trace.py b/libs/utils/trace.py index e6c059374d479c64a18d5c62c15964a3e0406f00..77ef843d26d17ed743654f6093dba48e55742b4a 100644 --- a/libs/utils/trace.py +++ b/libs/utils/trace.py @@ -230,7 +230,9 @@ class Trace(object): else: window_kw['abs_window'] = window - self.ftrace = trace_class(path, scope="custom", events=self.events, + # Make sure event names are not unicode strings + events = [e.encode('ascii') for e in self.events] + self.ftrace = trace_class(path, scope="custom", events=events, normalize_time=self.normalize_time, **window_kw) # Load Functions profiling data