rocprofiler-sdk/cxx/codeobj/disassembly.hpp File Reference

rocprofiler-sdk/cxx/codeobj/disassembly.hpp File Reference#

Rocprofiler SDK Developer API: rocprofiler-sdk/cxx/codeobj/disassembly.hpp File Reference
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
disassembly.hpp File Reference
#include <amd_comgr/amd_comgr.h>
#include <fcntl.h>
#include <hsa/amd_hsa_elf.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <cstring>
#include <fstream>
#include <iostream>
#include <limits>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
#include <vector>
+ Include dependency graph for disassembly.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  rocprofiler::sdk::codeobj::disassembly::CodeObjectBinary
 
struct  rocprofiler::sdk::codeobj::disassembly::SymbolInfo
 
class  rocprofiler::sdk::codeobj::disassembly::DisassemblyInstance
 

Namespaces

namespace  rocprofiler
 
namespace  rocprofiler::sdk
 
namespace  rocprofiler::sdk::codeobj
 
namespace  rocprofiler::sdk::codeobj::disassembly
 

Macros

#define THROW_COMGR(call)
 
#define RETURN_COMGR(call)
 
#define CHECK_VA2FO(x, msg)
 

Data Structure Documentation

◆ rocprofiler::sdk::codeobj::disassembly::SymbolInfo

struct rocprofiler::sdk::codeobj::disassembly::SymbolInfo

Definition at line 184 of file disassembly.hpp.

+ Collaboration diagram for rocprofiler::sdk::codeobj::disassembly::SymbolInfo:
Data Fields
uint64_t faddr = 0
uint64_t mem_size = 0
string name {}
uint64_t vaddr = 0

Macro Definition Documentation

◆ CHECK_VA2FO

#define CHECK_VA2FO (   x,
  msg 
)
Value:
if(!(x)) \
{ \
std::cerr << __FILE__ << ' ' << __LINE__ << ' ' << msg << "\n"; \
return std::nullopt; \
}

Definition at line 64 of file disassembly.hpp.

66 { \
67 std::cerr << __FILE__ << ' ' << __LINE__ << ' ' << msg << "\n"; \
68 return std::nullopt; \
69 }

◆ RETURN_COMGR

#define RETURN_COMGR (   call)
Value:
if(amd_comgr_status_s status = call) \
{ \
const char* reason = ""; \
amd_comgr_status_string(status, &reason); \
std::cerr << __FILE__ << ':' << __LINE__ << " code: " << status << " failed: " << reason \
<< "\n"; \
return AMD_COMGR_STATUS_ERROR; \
}

Definition at line 54 of file disassembly.hpp.

56 { \
57 const char* reason = ""; \
58 amd_comgr_status_string(status, &reason); \
59 std::cerr << __FILE__ << ':' << __LINE__ << " code: " << status << " failed: " << reason \
60 << "\n"; \
61 return AMD_COMGR_STATUS_ERROR; \
62 }

◆ THROW_COMGR

#define THROW_COMGR (   call)
Value:
if(amd_comgr_status_s status = call) \
{ \
const char* reason = ""; \
amd_comgr_status_string(status, &reason); \
std::cerr << __FILE__ << ':' << __LINE__ << " code: " << status << " failed: " << reason \
<< "\n"; \
throw std::exception(); \
}

Definition at line 44 of file disassembly.hpp.

46 { \
47 const char* reason = ""; \
48 amd_comgr_status_string(status, &reason); \
49 std::cerr << __FILE__ << ':' << __LINE__ << " code: " << status << " failed: " << reason \
50 << "\n"; \
51 throw std::exception(); \
52 }