DynamoRIO
dynamorio::drmemtrace::pt2ir_config_t Struct Reference

#include <pt2ir.h>

Public Member Functions

bool init_with_metadata (DR_PARAM_IN const void *metadata_buffer)
 
bool init_with_metadata (DR_PARAM_IN const void *metadata_buffer)
 

Data Fields

pt_config_t pt_config
 
uint64_t pt_raw_buffer_size
 
std::string elf_file_path
 
uint64_t elf_base
 
pt_sb_config_t sb_config
 
std::string sb_primary_file_path
 
std::vector< std::string > sb_secondary_file_path_list
 
std::string sb_kcore_path
 

Detailed Description

The struct pt2ir_config_t contains configuration details for one or multiple PT traces and is utilized by drpt2trace and raw2trace to generate a pt2ir_t instance.

Member Function Documentation

◆ init_with_metadata() [1/2]

bool dynamorio::drmemtrace::pt2ir_config_t::init_with_metadata ( DR_PARAM_IN const void *  metadata_buffer)
inline

Return true if the config is successfully initialized. This function is used to parse the metadata of the PT raw trace.

◆ init_with_metadata() [2/2]

bool dynamorio::drmemtrace::pt2ir_config_t::init_with_metadata ( DR_PARAM_IN const void *  metadata_buffer)
inline

Return true if the config is successfully initialized. This function is used to parse the metadata of the PT raw trace.

Field Documentation

◆ elf_base

uint64_t dynamorio::drmemtrace::pt2ir_config_t::elf_base

The runtime load address of the elf file.

◆ elf_file_path

std::string dynamorio::drmemtrace::pt2ir_config_t::elf_file_path

The elf file path.

◆ pt_config

pt_config_t dynamorio::drmemtrace::pt2ir_config_t::pt_config

The libipt config of PT raw trace.

◆ pt_raw_buffer_size

uint64_t dynamorio::drmemtrace::pt2ir_config_t::pt_raw_buffer_size

The raw buffer size of PT decoder.

◆ sb_config

pt_sb_config_t dynamorio::drmemtrace::pt2ir_config_t::sb_config

The libipt-sb config of PT raw trace.

◆ sb_kcore_path

std::string dynamorio::drmemtrace::pt2ir_config_t::sb_kcore_path

The kernel dump file path refers to the location where the kernel dump file is stored. This file is utilized by the sideband decoder for decoding the kernel PT raw trace.

◆ sb_primary_file_path

std::string dynamorio::drmemtrace::pt2ir_config_t::sb_primary_file_path

The primary sideband file path. A primary sideband file contains perf event records for the traced CPU.

◆ sb_secondary_file_path_list

std::vector< std::string > dynamorio::drmemtrace::pt2ir_config_t::sb_secondary_file_path_list

The secondary sideband file paths of PT raw trace. A secondary sideband file contains perf event records for other CPUs on the system.


The documentation for this struct was generated from the following file:
  • /home/runner/work/dynamorio/dynamorio/build_release-64/clients/include/drmemtrace/pt2ir.h