rocprofiler-sdk/amd_detail/rocprofiler-sdk-codeobj/code_printing.hpp Source File#
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
|
code_printing.hpp
Go to the documentation of this file.
Translates virtual addresses to elf file offsets.
Definition code_printing.hpp:336
std::unique_ptr< Instruction > get(uint64_t vaddr)
Definition code_printing.hpp:369
virtual void addDecoder(const void *data, unsigned long memory_size, marker_id_t id, uint64_t load_addr, uint64_t memsize) override
Definition code_printing.hpp:353
std::map< uint64_t, SymbolInfo > getSymbolMap(marker_id_t id) const
Definition code_printing.hpp:407
~CodeobjAddressTranslate() override=default
virtual void addDecoder(const char *filepath, marker_id_t id, uint64_t load_addr, uint64_t memsize) override
Definition code_printing.hpp:343
std::map< uint64_t, SymbolInfo > getSymbolMap() const
Definition code_printing.hpp:393
std::unique_ptr< Instruction > get(marker_id_t id, uint64_t offset)
Definition code_printing.hpp:375
virtual bool removeDecoder(marker_id_t id, uint64_t load_addr)
Definition code_printing.hpp:364
CodeobjAddressTranslate()=default
const char * getSymbolName(uint64_t vaddr)
Definition code_printing.hpp:383
std::unique_ptr< Instruction > disassemble_instruction(uint64_t faddr, uint64_t vaddr)
Definition code_printing.hpp:171
std::optional< uint64_t > va2fo(uint64_t vaddr)
Definition code_printing.hpp:165
std::map< uint64_t, SymbolInfo > m_symbol_map
Definition code_printing.hpp:186
std::map< segment::address_range_t, std::string > m_line_number_map
Definition code_printing.hpp:190
std::unique_ptr< DisassemblyInstance > disassembly
Definition code_printing.hpp:188
CodeobjDecoderComponent(const char *codeobj_data, uint64_t codeobj_size)
Definition code_printing.hpp:85
~CodeobjDecoderComponent()
Definition code_printing.hpp:163
std::vector< std::shared_ptr< Instruction > > instructions
Definition code_printing.hpp:187
Maps ID and offsets into instructions.
Definition code_printing.hpp:278
CodeobjMap()=default
std::unordered_map< marker_id_t, std::shared_ptr< LoadedCodeobjDecoder > > decoders
Definition code_printing.hpp:329
std::unique_ptr< Instruction > get(marker_id_t id, uint64_t offset)
Definition code_printing.hpp:303
virtual bool removeDecoderbyId(marker_id_t id)
Definition code_printing.hpp:301
virtual void addDecoder(const char *filepath, marker_id_t id, uint64_t load_addr, uint64_t memsize)
Definition code_printing.hpp:283
virtual ~CodeobjMap()=default
virtual void addDecoder(const void *data, unsigned long memory_size, marker_id_t id, uint64_t load_addr, uint64_t memsize)
Definition code_printing.hpp:291
const char * getSymbolName(marker_id_t id, uint64_t offset)
Definition code_printing.hpp:316
uint64_t size() const
Definition code_printing.hpp:248
std::unique_ptr< Instruction > get(uint64_t ld_addr)
Definition code_printing.hpp:232
uint64_t end() const
Definition code_printing.hpp:247
LoadedCodeobjDecoder(const char *filepath, uint64_t _load_addr, uint64_t _memsize)
Definition code_printing.hpp:196
bool inrange(uint64_t addr) const
Definition code_printing.hpp:249
uint64_t begin() const
Definition code_printing.hpp:246
const char * getSymbolName(uint64_t addr) const
Definition code_printing.hpp:251
LoadedCodeobjDecoder(const void *data, uint64_t size, uint64_t _load_addr, unsigned long _memsize)
Definition code_printing.hpp:225
const uint64_t load_addr
Definition code_printing.hpp:266
std::map< uint64_t, SymbolInfo > & getSymbolMap() const
Definition code_printing.hpp:261
Finds a candidate codeobj for the given vaddr.
Definition segment.hpp:63
bool remove(const address_range_t &range)
Definition segment.hpp:79
address_range_t find_codeobj_in_range(uint64_t addr)
Definition segment.hpp:67
segment::marker_id_t marker_id_t
Definition code_printing.hpp:47
Definition code_printing.hpp:42
STL namespace.
Instruction()=default
uint64_t ld_addr
Definition code_printing.hpp:61
unsigned long size
Definition code_printing.hpp:60
marker_id_t codeobj_id
Definition code_printing.hpp:62
Instruction(std::string &&_inst, unsigned long _size)
Definition code_printing.hpp:52
std::string comment
Definition code_printing.hpp:57
Generated by 1.9.8