% PT_INSN_GET_OFFSET(3)
pt_insn_get_offset, pt_insn_get_sync_offset - get an Intel(R) Processor Trace instruction flow decoder's current/synchronization trace buffer offset
#include <intel-pt.h> |
---|
int pt_insn_get_offset(struct pt_insn_decoder *decoder, |
uint64_t *offset); |
int pt_insn_get_sync_offset(struct pt_insn_decoder *decoder, |
uint64_t *offset); |
Link with -lipt.
pt_insn_get_offset() provides decoder's current position as offset in bytes from the beginning of decoder's trace buffer in the unsigned integer variable pointed to by offset.
pt_insn_get_sync_offset() provides decoder's last synchronization point as offset in bytes from the beginning of decoder's trace buffer in the unsigned integer variable pointed to by offset.
Both functions return zero on success or a negative pt_error_code enumeration constant in case of an error.
pt_insn_alloc_decoder(3), pt_insn_free_decoder(3), pt_insn_sync_forward(3), pt_insn_sync_backward(3), pt_insn_sync_set(3), pt_insn_get_config(3), pt_insn_time(3), pt_insn_core_bus_ratio(3), pt_insn_next(3)