DisassemblyInstance Class Reference#
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
|
#include "rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/disassembly.hpp"
Public Member Functions | |
DisassemblyInstance (const char *codeobj_data, uint64_t codeobj_size) | |
~DisassemblyInstance () | |
std::pair< std::string, unsigned long > | ReadInstruction (uint64_t faddr) |
std::map< uint64_t, SymbolInfo > & | GetKernelMap () |
std::optional< uint64_t > | va2fo (uint64_t va) |
Static Public Member Functions | |
static amd_comgr_status_t | symbol_callback (amd_comgr_symbol_t symbol, void *user_data) |
static uint64_t | memory_callback (uint64_t from, char *to, uint64_t size, void *user_data) |
static void | inst_callback (const char *instruction, void *user_data) |
Data Fields | |
std::vector< char > | buffer |
std::string | last_instruction |
amd_comgr_disassembly_info_t | info |
amd_comgr_data_t | data |
std::map< uint64_t, SymbolInfo > | symbol_map |
Detailed Description
Definition at line 190 of file disassembly.hpp.
Constructor & Destructor Documentation
◆ DisassemblyInstance()
|
inline |
Definition at line 193 of file disassembly.hpp.
References THROW_COMGR.
◆ ~DisassemblyInstance()
|
inline |
Definition at line 213 of file disassembly.hpp.
Member Function Documentation
◆ GetKernelMap()
|
inline |
Definition at line 229 of file disassembly.hpp.
References THROW_COMGR.
◆ inst_callback()
|
inlinestatic |
Definition at line 274 of file disassembly.hpp.
References last_instruction.
◆ memory_callback()
|
inlinestatic |
Definition at line 264 of file disassembly.hpp.
References buffer.
◆ ReadInstruction()
|
inline |
Definition at line 219 of file disassembly.hpp.
References THROW_COMGR.
◆ symbol_callback()
|
inlinestatic |
Definition at line 237 of file disassembly.hpp.
References RETURN_COMGR, symbol_map, and va2fo().
◆ va2fo()
|
inline |
Definition at line 285 of file disassembly.hpp.
References CHECK_VA2FO.
Referenced by symbol_callback().
Field Documentation
◆ buffer
std::vector<char> rocprofiler::codeobj::disassembly::DisassemblyInstance::buffer |
Definition at line 327 of file disassembly.hpp.
Referenced by memory_callback().
◆ data
amd_comgr_data_t rocprofiler::codeobj::disassembly::DisassemblyInstance::data |
Definition at line 330 of file disassembly.hpp.
◆ info
amd_comgr_disassembly_info_t rocprofiler::codeobj::disassembly::DisassemblyInstance::info |
Definition at line 329 of file disassembly.hpp.
◆ last_instruction
std::string rocprofiler::codeobj::disassembly::DisassemblyInstance::last_instruction |
Definition at line 328 of file disassembly.hpp.
Referenced by inst_callback().
◆ symbol_map
std::map<uint64_t, SymbolInfo> rocprofiler::codeobj::disassembly::DisassemblyInstance::symbol_map |
Definition at line 331 of file disassembly.hpp.
Referenced by symbol_callback().
The documentation for this class was generated from the following file:
- rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/disassembly.hpp
Generated by 1.9.8