Add readModuleDebugArea() method

Related-To: NEO-5940

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe 2021-06-02 15:24:43 +00:00 committed by Compute-Runtime-Automation
parent 0500f79753
commit e9a43f1f66
2 changed files with 8 additions and 0 deletions

View File

@ -6,6 +6,7 @@
*/
#pragma once
#include "level_zero/core/source/debugger/debugger_l0.h"
#include <level_zero/zet_api.h>
struct _zet_debug_session_handle_t {};
@ -50,6 +51,9 @@ struct RootDebugSession : DebugSession {
protected:
RootDebugSession(const zet_debug_config_t &config, Device *device) : DebugSession(config, device){};
virtual bool readModuleDebugArea() = 0;
DebugAreaHeader debugArea;
};
} // namespace L0

View File

@ -61,6 +61,10 @@ struct DebugSessionMock : public L0::RootDebugSession {
asyncThreadStarted = true;
}
bool readModuleDebugArea() override {
return true;
}
zet_debug_config_t config;
bool asyncThreadStarted = false;
};