pt_alloc_encoder

Function pt_alloc_encoder 

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

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.