[][src]Function libipt_sys::pt_insn_sync_forward

pub unsafe extern "C" fn pt_insn_sync_forward(
    decoder: *mut pt_insn_decoder
) -> c_int

Synchronize an Intel PT instruction flow decoder.

Search for the next synchronization point in forward or backward direction.

If @decoder has not been synchronized, yet, the search is started at the beginning of the trace buffer in case of forward synchronization and at the end of the trace buffer in case of backward synchronization.

Returns zero or a positive value 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_eos if no further synchronization point is found. Returns -pte_invalid if @decoder is NULL.