CodeobjMap Class Reference#
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
|
Maps ID and offsets into instructions. More...
#include "rocprofiler-sdk/cxx/codeobj/code_printing.hpp"


Public Member Functions | |
CodeobjMap ()=default | |
virtual | ~CodeobjMap ()=default |
virtual void | addDecoder (const char *filepath, marker_id_t id, uint64_t load_addr, uint64_t memsize) |
virtual void | addDecoder (const void *data, unsigned long memory_size, marker_id_t id, uint64_t load_addr, uint64_t memsize) |
virtual bool | removeDecoderbyId (marker_id_t id) |
std::unique_ptr< Instruction > | get (marker_id_t id, uint64_t offset) |
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
Maps ID and offsets into instructions.
Definition at line 281 of file code_printing.hpp.
Constructor & Destructor Documentation
◆ CodeobjMap()
|
default |
◆ ~CodeobjMap()
|
virtualdefault |
Member Function Documentation
◆ addDecoder() [1/2]
|
inlinevirtual |
Reimplemented in rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate.
Definition at line 287 of file code_printing.hpp.
References decoders.
Referenced by rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::addDecoder(), and rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::addDecoder().

◆ addDecoder() [2/2]
|
inlinevirtual |
Reimplemented in rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate.
Definition at line 295 of file code_printing.hpp.
References decoders.
◆ get()
|
inline |
Definition at line 307 of file code_printing.hpp.
References decoders.
Referenced by rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::get(), and rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::get().

◆ getSymbolName()
|
inline |
Definition at line 320 of file code_printing.hpp.
References decoders.
◆ removeDecoderbyId()
|
inlinevirtual |
Definition at line 305 of file code_printing.hpp.
References decoders.
Referenced by rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::removeDecoder().

Field Documentation
◆ decoders
|
protected |
Definition at line 333 of file code_printing.hpp.
Referenced by addDecoder(), rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::addDecoder(), addDecoder(), rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::addDecoder(), get(), rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::getSymbolMap(), rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::getSymbolMap(), getSymbolName(), rocprofiler::sdk::codeobj::disassembly::CodeobjAddressTranslate::getSymbolName(), and removeDecoderbyId().
The documentation for this class was generated from the following file:
- rocprofiler-sdk/cxx/codeobj/code_printing.hpp
Generated by