CodeobjAddressTranslate Class Reference#
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
|
Translates virtual addresses to elf file offsets. More...
#include "rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/code_printing.hpp"
Public Member Functions | |
CodeobjAddressTranslate ()=default | |
~CodeobjAddressTranslate () override=default | |
virtual void | addDecoder (const char *filepath, marker_id_t id, uint64_t load_addr, uint64_t memsize) override |
virtual void | addDecoder (const void *data, unsigned long memory_size, marker_id_t id, uint64_t load_addr, uint64_t memsize) override |
virtual bool | removeDecoder (marker_id_t id, uint64_t load_addr) |
std::unique_ptr< Instruction > | get (uint64_t vaddr) |
std::unique_ptr< Instruction > | get (marker_id_t id, uint64_t offset) |
const char * | getSymbolName (uint64_t vaddr) |
std::map< uint64_t, SymbolInfo > | getSymbolMap () const |
std::map< uint64_t, SymbolInfo > | getSymbolMap (marker_id_t id) const |
virtual bool | removeDecoderbyId (marker_id_t id) |
const char * | getSymbolName (marker_id_t id, uint64_t offset) |
Protected Attributes | |
std::unordered_map< marker_id_t, std::shared_ptr< LoadedCodeobjDecoder > > | decoders {} |
Detailed Description
Translates virtual addresses to elf file offsets.
Definition at line 335 of file code_printing.hpp.
Constructor & Destructor Documentation
◆ CodeobjAddressTranslate()
|
default |
◆ ~CodeobjAddressTranslate()
|
overridedefault |
Member Function Documentation
◆ addDecoder() [1/2]
|
inlineoverridevirtual |
Reimplemented from rocprofiler::codeobj::disassembly::CodeobjMap.
Definition at line 343 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::addDecoder(), and rocprofiler::codeobj::disassembly::CodeobjMap::decoders.
◆ addDecoder() [2/2]
|
inlineoverridevirtual |
Reimplemented from rocprofiler::codeobj::disassembly::CodeobjMap.
Definition at line 353 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::addDecoder(), and rocprofiler::codeobj::disassembly::CodeobjMap::decoders.
◆ get() [1/2]
|
inline |
Definition at line 375 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::get(), and get().
◆ get() [2/2]
|
inline |
Definition at line 369 of file code_printing.hpp.
References rocprofiler::codeobj::segment::CodeobjTableTranslator::find_codeobj_in_range(), and rocprofiler::codeobj::disassembly::CodeobjMap::get().
Referenced by get().
◆ getSymbolMap() [1/2]
|
inline |
Definition at line 393 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::decoders.
◆ getSymbolMap() [2/2]
|
inline |
Definition at line 407 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::decoders.
◆ getSymbolName() [1/2]
|
inlineinherited |
Definition at line 316 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::decoders.
◆ getSymbolName() [2/2]
|
inline |
Definition at line 383 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::decoders.
◆ removeDecoder()
|
inlinevirtual |
Definition at line 364 of file code_printing.hpp.
References rocprofiler::codeobj::segment::CodeobjTableTranslator::remove(), and rocprofiler::codeobj::disassembly::CodeobjMap::removeDecoderbyId().
◆ removeDecoderbyId()
|
inlinevirtualinherited |
Definition at line 301 of file code_printing.hpp.
References rocprofiler::codeobj::disassembly::CodeobjMap::decoders.
Referenced by removeDecoder().
Field Documentation
◆ decoders
|
protectedinherited |
Definition at line 329 of file code_printing.hpp.
Referenced by rocprofiler::codeobj::disassembly::CodeobjMap::addDecoder(), addDecoder(), rocprofiler::codeobj::disassembly::CodeobjMap::addDecoder(), addDecoder(), rocprofiler::codeobj::disassembly::CodeobjMap::get(), getSymbolMap(), getSymbolMap(), rocprofiler::codeobj::disassembly::CodeobjMap::getSymbolName(), getSymbolName(), and rocprofiler::codeobj::disassembly::CodeobjMap::removeDecoderbyId().
The documentation for this class was generated from the following file:
- rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/code_printing.hpp
Generated by 1.9.8