Adding code object list in loader.
Change-Id: Iab3541287bd56276fd32615ee59fcd590de84ca0
[ROCm/ROCR-Runtime commit: 16a20cfb8c]
이 커밋은 다음에 포함됨:
1 부모
698ddfed09
커밋
2ab9ce6d5c
4 파일이 변경됨
+104
-13
검색과 일치하는 파일 없음
@@ -48,6 +48,7 @@
|
||||
#include <cstdint>
|
||||
#include <iostream>
|
||||
#include <libelf.h>
|
||||
#include <link.h>
|
||||
#include <list>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
@@ -283,6 +284,7 @@ public:
|
||||
};
|
||||
|
||||
class LoadedCodeObjectImpl : public LoadedCodeObject, public ExecutableObject {
|
||||
friend class AmdHsaCodeLoader;
|
||||
private:
|
||||
LoadedCodeObjectImpl(const LoadedCodeObjectImpl&);
|
||||
LoadedCodeObjectImpl& operator=(const LoadedCodeObjectImpl&);
|
||||
@@ -319,6 +321,8 @@ public:
|
||||
uint64_t getLoadBase() const override;
|
||||
uint64_t getLoadSize() const override;
|
||||
int64_t getDelta() const override;
|
||||
|
||||
link_map r_debug_info;
|
||||
};
|
||||
|
||||
class Segment : public LoadedSegment, public ExecutableObject {
|
||||
@@ -396,6 +400,7 @@ struct ASH {
|
||||
typedef std::unordered_map<AgentSymbol, SymbolImpl*, ASH, ASC> AgentSymbolMap;
|
||||
|
||||
class ExecutableImpl final: public Executable {
|
||||
friend class AmdHsaCodeLoader;
|
||||
public:
|
||||
const hsa_profile_t& profile() const {
|
||||
return profile_;
|
||||
@@ -563,6 +568,7 @@ public:
|
||||
const char *options,
|
||||
hsa_default_float_rounding_mode_t default_float_rounding_mode = HSA_DEFAULT_FLOAT_ROUNDING_MODE_DEFAULT) override;
|
||||
|
||||
hsa_status_t FreezeExecutable(Executable *executable, const char *options) override;
|
||||
void DestroyExecutable(Executable *executable) override;
|
||||
|
||||
hsa_status_t IterateExecutables(
|
||||
|
||||
새 이슈에서 참조
사용자 차단