diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/tracecmd.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/python/tracecmd.py b/python/tracecmd.py index 318887c3..bc926c68 100644 --- a/python/tracecmd.py +++ b/python/tracecmd.py @@ -80,7 +80,7 @@ class Event(object, DictMixin): @cached_property def comm(self): - return pevent_data_comm_from_pid(self._pevent, self.pid) + return tep_data_comm_from_pid(self._pevent, self.pid) @cached_property def cpu(self): @@ -92,7 +92,7 @@ class Event(object, DictMixin): @cached_property def pid(self): - return pevent_data_pid(self._pevent, self._record) + return tep_data_pid(self._pevent, self._record) @cached_property def ts(self): @@ -100,7 +100,7 @@ class Event(object, DictMixin): @cached_property def type(self): - return pevent_data_type(self._pevent, self._record) + return tep_data_type(self._pevent, self._record) def num_field(self, name): f = tep_find_any_field(self._format, name) @@ -203,8 +203,8 @@ class Trace(object): def read_event(self, cpu): rec = tracecmd_read_data(self._handle, cpu) if rec: - type = pevent_data_type(self._pevent, rec) - format = pevent_data_event_from_type(self._pevent, type) + type = tep_data_type(self._pevent, rec) + format = tep_data_event_from_type(self._pevent, type) # rec ownership goes over to Event instance return Event(self._pevent, rec, format) return None @@ -215,8 +215,8 @@ class Trace(object): if isinstance(res, int): return None rec, cpu = res - type = pevent_data_type(self._pevent, rec) - format = pevent_data_event_from_type(self._pevent, type) + type = tep_data_type(self._pevent, rec) + format = tep_data_event_from_type(self._pevent, type) # rec ownership goes over to Event instance return Event(self._pevent, rec, format) @@ -225,16 +225,16 @@ class Trace(object): if isinstance(res, int): return None rec, cpu = res - type = pevent_data_type(self._pevent, rec) - format = pevent_data_event_from_type(self._pevent, type) + type = tep_data_type(self._pevent, rec) + format = tep_data_event_from_type(self._pevent, type) return Event(self._pevent, rec, format) def peek_event(self, cpu): rec = tracecmd_peek_data_ref(self._handle, cpu) if rec is None: return None - type = pevent_data_type(self._pevent, rec) - format = pevent_data_event_from_type(self._pevent, type) + type = tep_data_type(self._pevent, rec) + format = tep_data_event_from_type(self._pevent, type) # rec ownership goes over to Event instance return Event(self._pevent, rec, format) |