Add readEvent method to DebugSession

Related-To: NEO-4556

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-04-07 17:58:26 +00:00
committed by Compute-Runtime-Automation
parent c84e9ca4f1
commit a2cbb4f859
2 changed files with 5 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ struct DebugSession : _zet_debug_session_handle_t {
virtual bool closeConnection() = 0;
virtual ze_result_t initialize() = 0;
virtual ze_result_t readEvent(uint64_t timeout, zet_debug_event_t *event) = 0;
Device *getConnectedDevice() { return connectedDevice; }
protected:

View File

@@ -32,6 +32,9 @@ struct DebugSessionMock : public L0::DebugSession {
}
return ZE_RESULT_SUCCESS;
}
ze_result_t readEvent(uint64_t timeout, zet_debug_event_t *event) override {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
}
zet_debug_config_t config;
};