feature: Implement getElfSize and getElfData methods for XE eudebug

Related-To: NEO-8407
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2024-03-28 10:10:31 +00:00
committed by Compute-Runtime-Automation
parent e3f50e8aa9
commit 96abe38c6d
2 changed files with 27 additions and 6 deletions

View File

@@ -121,8 +121,8 @@ struct DebugSessionLinuxXe : DebugSessionLinux {
struct ClientConnectionXe : public ClientConnection {
drm_xe_eudebug_event_client client = {};
size_t getElfSize(uint64_t elfHandle) override { return 0; };
char *getElfData(uint64_t elfHandle) override { return nullptr; };
size_t getElfSize(uint64_t elfHandle) override { return metaDataMap[elfHandle].metadata.len; };
char *getElfData(uint64_t elfHandle) override { return metaDataMap[elfHandle].data.get(); };
std::unordered_map<ExecQueueHandle, ExecQueueParams> execQueues;
std::unordered_map<uint64_t, uint64_t> lrcHandleToVmHandle;