diff options
Diffstat (limited to 'tracecmd.py')
-rw-r--r-- | tracecmd.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tracecmd.py b/tracecmd.py index 75a639d..39e7043 100644 --- a/tracecmd.py +++ b/tracecmd.py | |||
@@ -213,7 +213,13 @@ class Trace(object): | |||
213 | return Event(self._pevent, rec, format) | 213 | return Event(self._pevent, rec, format) |
214 | 214 | ||
215 | def peek_event(self, cpu): | 215 | def peek_event(self, cpu): |
216 | pass | 216 | rec = tracecmd_peek_data_ref(self._handle, cpu) |
217 | if rec is None: | ||
218 | return None | ||
219 | type = pevent_data_type(self._pevent, rec) | ||
220 | format = pevent_data_event_from_type(self._pevent, type) | ||
221 | # rec ownership goes over to Event instance | ||
222 | return Event(self._pevent, rec, format) | ||
217 | 223 | ||
218 | 224 | ||
219 | # Basic builtin test, execute module directly | 225 | # Basic builtin test, execute module directly |