PT_ENC_GET_CONFIG(3)

NAME
pt_enc_get_config, pt_pkt_get_config, pt_evt_get_config, pt_qry_get_config, pt_insn_get_config, pt_blk_get_config - get an Intel(R) Processor Trace encoder/decoder’s configuration

SYNOPSIS

#include <intel-pt.h>
const struct pt_config *
pt_enc_get_config(const struct pt_encoder *encoder);
const struct pt_config *
pt_pkt_get_config(const struct pt_packet_decoder *decoder);
const struct pt_config *
pt_evt_get_config(const struct pt_event_decoder *decoder);
const struct pt_config *
pt_qry_get_config(const struct pt_query_decoder *decoder);
const struct pt_config *
pt_insn_get_config(const struct pt_insn_decoder *decoder);
const struct pt_config *
pt_blk_get_config(const struct pt_block_decoder *decoder);

Link with -lipt.

DESCRIPTION
These functions return a pointer to their argument’s configuration. The returned configuration object must not be freed. It is valid as long as their argument is not freed.

RETURN VALUE
These functions returns a pointer to a pt_config object. The returned pointer is NULL if their argument is NULL.

SEE ALSO
pt_config(3), pt_alloc_encoder(3), pt_pkt_alloc_decoder(3), pt_evt_alloc_decoder(3), pt_qry_alloc_decoder(3), pt_insn_alloc_decoder(3), pt_blk_alloc_decoder**(3)