[][src]Function libipt_sys::pt_qry_sync_forward

pub unsafe extern "C" fn pt_qry_sync_forward(
    decoder: *mut pt_query_decoder,
    ip: *mut u64
) -> c_int

Synchronize an Intel PT query 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.

If @ip is not NULL, set it to last ip.

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