[][src]Function libipt_sys::pt_qry_cond_branch

pub unsafe extern "C" fn pt_qry_cond_branch(
    decoder: *mut pt_query_decoder,
    taken: *mut c_int
) -> c_int

Query whether the next unconditional branch has been taken.

On success, provides 1 (taken) or 0 (not taken) in @taken for the next conditional branch and updates @decoder.

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_bad_query if no conditional branch is found. Returns -pte_eos if decoding reached the end of the Intel PT buffer. Returns -pte_invalid if @decoder or @taken is NULL. Returns -pte_nosync if @decoder is out of sync.