[][src]Function libipt_sys::pt_qry_event

pub unsafe extern "C" fn pt_qry_event(
    decoder: *mut pt_query_decoder,
    event: *mut pt_event,
    size: usize
) -> c_int

Query the next pending event.

On success, provides the next event @event and updates @decoder.

The @size argument must be set to sizeof(struct pt_event).

Returns a non-negative pt_status_flag bit-vector on success, a negative error code otherwise.

Returns -pte_bad_opc if an unknown packet is encountered. Returns -pte_bad_packet if an unknown packet payload is encountered. Returns -pte_bad_query if no event is found. Returns -pte_eos if decoding reached the end of the Intel PT buffer. Returns -pte_invalid if @decoder or @event is NULL. Returns -pte_invalid if @size is too small. Returns -pte_nosync if @decoder is out of sync.