Update codeobj disassembly to use comgr va2fo API (#250)
* Update codeobj disassembly to use comgr va2fo API * Format * Tidy fix * Tidy fix * Review comments --------- Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
This commit is contained in:
1 parent
346c7149dd
commit
970bebafeb
3 files changed
+23
-55
No files matched your search
@@ -22,6 +22,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "disassembly.hpp"
|
||||
#include "segment.hpp"
|
||||
|
||||
#include <elfutils/libdw.h>
|
||||
#include <hsa/amd_hsa_elf.h>
|
||||
|
||||
@@ -35,9 +38,6 @@
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "disassembly.hpp"
|
||||
#include "segment.hpp"
|
||||
|
||||
namespace rocprofiler
|
||||
{
|
||||
namespace sdk
|
||||
@@ -169,7 +169,7 @@ public:
|
||||
std::optional<uint64_t> va2fo(uint64_t vaddr) const
|
||||
{
|
||||
if(disassembly) return disassembly->va2fo(vaddr);
|
||||
return {};
|
||||
return std::nullopt;
|
||||
};
|
||||
|
||||
std::unique_ptr<Instruction> disassemble_instruction(uint64_t faddr, uint64_t vaddr)
|
||||
|
||||
Reference in new issue
Block a user