CodeobjMap Class Reference#
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
|
Maps ID and offsets into instructions. More...
#include "rocprofiler-sdk/amd_detail/rocprofiler-sdk-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 277 of file code_printing.hpp.
Constructor & Destructor Documentation
◆ CodeobjMap()
|
default |
◆ ~CodeobjMap()
|
virtualdefault |
Member Function Documentation
◆ addDecoder() [1/2]
|
inlinevirtual |
Reimplemented in rocprofiler::codeobj::disassembly::CodeobjAddressTranslate.
Definition at line 283 of file code_printing.hpp.
References decoders.
Referenced by rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::addDecoder(), and rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::addDecoder().
◆ addDecoder() [2/2]
|
inlinevirtual |
Reimplemented in rocprofiler::codeobj::disassembly::CodeobjAddressTranslate.
Definition at line 291 of file code_printing.hpp.
References decoders.
◆ get()
|
inline |
Definition at line 303 of file code_printing.hpp.
References decoders.
Referenced by rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::get(), and rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::get().
◆ getSymbolName()
|
inline |
Definition at line 316 of file code_printing.hpp.
References decoders.
◆ removeDecoderbyId()
|
inlinevirtual |
Definition at line 301 of file code_printing.hpp.
References decoders.
Referenced by rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::removeDecoder().
Field Documentation
◆ decoders
|
protected |
Definition at line 329 of file code_printing.hpp.
Referenced by addDecoder(), rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::addDecoder(), addDecoder(), rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::addDecoder(), get(), rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::getSymbolMap(), rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::getSymbolMap(), getSymbolName(), rocprofiler::codeobj::disassembly::CodeobjAddressTranslate::getSymbolName(), and 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