1PT_ENC_GET_OFFSET(3)                                      PT_ENC_GET_OFFSET(3)
2
3
4

NAME

6       pt_enc_get_offset,  pt_enc_sync_set  -  get/set  an  Intel(R) Processor
7       Trace packet encoder's current trace buffer offset
8

SYNOPSIS

10       #include <intel-pt.h>
11       int pt_enc_get_offset(const struct pt_packet_encoder *encoder,
12                             uint64_t *offset);
13       int pt_enc_sync_set(const struct pt_packet_encoder *encoder,
14                           uint64_t offset);
15
16       Link with -lipt.
17

DESCRIPTION

19       pt_enc_get_offset() provides encoder's current position  as  offset  in
20       bytes  from the beginning of encoder's trace buffer in the unsigned in‐
21       teger variable pointed to by offset.
22
23       pt_enc_sync_set() sets encoder's current position to offset bytes  from
24       the beginning of its trace buffer.
25

RETURN VALUE

27       Both  functions return zero on success or a negative pt_error_code enu‐
28       meration constant in case of an error.
29

ERRORS

31       pte_invalid
32              The encoder or offset (for pt_enc_sync_set()) argument is NULL.
33
34       pte_eos
35              The offset argument is too big and the resulting position  would
36              be outside of encoder's trace buffer (pt_enc_sync_set() only).
37

SEE ALSO

39       pt_enc_alloc_encoder(3), pt_enc_free_encoder(3), pt_enc_next(3)
40
41
42
43                                                          PT_ENC_GET_OFFSET(3)
Impressum