pub unsafe extern "C" fn pt_evt_next(
decoder: *mut pt_event_decoder,
event: *mut pt_event,
size: usize,
) -> c_intExpand description
Determine the next event.
On success, provides the next event in @event.
The @size argument must be set to sizeof(struct pt_event).
Returns zero or a positive value on success, a negative error code otherwise.
Returns -pte_bad_opc if the packet is unknown. Returns -pte_bad_packet if an unknown packet payload is encountered. Returns -pte_eos if @decoder reached the end of the Intel PT buffer. Returns -pte_invalid if @decoder or @event is NULL. Returns -pte_nosync if @decoder is out of sync.