--- title: "dynamorio::drmemtrace::pt2ir_t Class Reference" layout: default permalink: /classdynamorio_1_1drmemtrace_1_1pt2ir__t.html ---
DynamoRIO
|
#include <pt2ir.h>
Public Member Functions | |
bool | init (IN pt2ir_config_t &pt2ir_config, IN int verbosity=0) |
pt2ir_convert_status_t | convert (IN const uint8_t *pt_data, IN size_t pt_data_size, INOUT drir_t &drir) |
pt2ir_t is a class that can convert PT raw trace to DynamoRIO's IR.
pt2ir_convert_status_t dynamorio::drmemtrace::pt2ir_t::convert | ( | IN const uint8_t * | pt_data, |
IN size_t | pt_data_size, | ||
INOUT drir_t & | drir ) |
The convert function performs two processes: (1) decode the PT raw trace into libipt's IR format pt_insn; (2) convert pt_insn into the DynamoRIO's IR format instr_t and append it to ilist inside the drir object.
pt_data | The PT raw trace. |
pt_data_size | The size of PT raw trace. |
drir | The drir object. |
bool dynamorio::drmemtrace::pt2ir_t::init | ( | IN pt2ir_config_t & | pt2ir_config, |
IN int | verbosity = 0 ) |
Initialize the PT instruction decoder and the sideband session.
pt2ir_config | The configuration of PT raw trace. |
verbosity | The verbosity level for notifications. If set to 0, only error logs are printed. If set to 1, all logs are printed. Default value is 0. |