drpttracer_shared.h File Reference

Header for shared structs related to the DynamoRIO Intel PT Tracing Extension. These structs were extracted from drpttracer.h to allow easier sharing with DR clients in cases when we want to avoid pulling in other stuff in drpttracer.h. More...

#include <inttypes.h>

Data Structures

struct  _pt_metadata_t
 

Typedefs

typedef START_PACKED_STRUCTURE struct _pt_metadata_t pt_metadata_t
 

Detailed Description

Header for shared structs related to the DynamoRIO Intel PT Tracing Extension. These structs were extracted from drpttracer.h to allow easier sharing with DR clients in cases when we want to avoid pulling in other stuff in drpttracer.h.

Typedef Documentation

◆ pt_metadata_t

typedef START_PACKED_STRUCTURE struct _pt_metadata_t pt_metadata_t

The type of PT trace's metadata.

Note
drpttracer uses the cpuid instruction to get the cpu_family, cpu_model and cpu_stepping. The cpu_family, cpu_model and cpu_stepping are used to initialize the PT config of pt2ir_t when decoding a PT trace.
drpttracer gets the time_shift, time_mult and time_zero from the opened perf event file's head. The time_shift, time_mult and time_zero are used to initialize the PT sideband config of pt2ir_t when decoding a PT trace.

All fields are little-endian.