#include <pt2ir.h>
pt2ir_t is a class that can convert PT raw trace to DynamoRIO's IR.
◆ convert()
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.
- Parameters
-
pt_data | The PT raw trace. |
pt_data_size | The size of PT raw trace. |
drir | The drir object. |
- Returns
- pt2ir_convert_status_t. If the conversion is successful, the function returns PT2IR_CONV_SUCCESS. Otherwise, the function returns the corresponding error code.
◆ init()
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.
- Parameters
-
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. |
- Returns
- true if the instance is successfully initialized.
The documentation for this class was generated from the following file:
- /var/cache/acbs/build/acbs.xgmtjgrt/dynamorio/clients/drcachesim/drpt2trace/pt2ir.h