[][src]Function libipt_sys::pt_pkt_get_sync_offset

pub unsafe extern "C" fn pt_pkt_get_sync_offset(
    decoder: *const pt_packet_decoder,
    offset: *mut u64
) -> c_int

Get the position of the last synchronization point.

Fills the last synchronization position into @offset.

This is useful when splitting a trace stream for parallel decoding.

Returns zero on success, a negative error code otherwise.

Returns -pte_invalid if @decoder or @offset is NULL. Returns -pte_nosync if @decoder is out of sync.