[][src]Function libipt_sys::pt_pkt_sync_forward

pub unsafe extern "C" fn pt_pkt_sync_forward(
    decoder: *mut pt_packet_decoder
) -> c_int

Synchronize an Intel PT packet 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_eos if no further synchronization point is found. Returns -pte_invalid if @decoder is NULL.