[][src]Function libipt_sys::pt_alloc_encoder

pub unsafe extern "C" fn pt_alloc_encoder(
    config: *const pt_config
) -> *mut pt_encoder

Allocate an Intel PT packet encoder.

The encoder will work on the buffer defined in @config, it shall contain raw trace data and remain valid for the lifetime of the encoder.

The encoder starts at the beginning of the trace buffer.