[][src]Function libipt_sys::pt_enc_sync_set

pub unsafe extern "C" fn pt_enc_sync_set(
    encoder: *mut pt_encoder,
    offset: u64
) -> c_int

Hard set synchronization point of an Intel PT packet encoder.

Synchronize @encoder to @offset within the trace buffer.

Returns zero on success, a negative error code otherwise.

Returns -pte_eos if the given offset is behind the end of the trace buffer. Returns -pte_invalid if @encoder is NULL.