Add debugSession interfaces

Related-To: NEO-4516

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-04-20 16:02:43 +00:00
committed by Compute-Runtime-Automation
parent ef5174f3fc
commit 6594119afb
2 changed files with 28 additions and 0 deletions

View File

@@ -27,6 +27,13 @@ struct DebugSession : _zet_debug_session_handle_t {
virtual ze_result_t initialize() = 0;
virtual ze_result_t readEvent(uint64_t timeout, zet_debug_event_t *event) = 0;
virtual ze_result_t interrupt(ze_device_thread_t thread) = 0;
virtual ze_result_t resume(ze_device_thread_t thread) = 0;
virtual ze_result_t readMemory(ze_device_thread_t thread, const zet_debug_memory_space_desc_t *desc, size_t size, void *buffer) = 0;
virtual ze_result_t writeMemory(ze_device_thread_t thread, const zet_debug_memory_space_desc_t *desc, size_t size, const void *buffer) = 0;
virtual ze_result_t acknowledgeEvent(const zet_debug_event_t *event) = 0;
virtual ze_result_t readRegisters(ze_device_thread_t thread, zet_debug_regset_type_t type, uint32_t start, uint32_t count, void *pRegisterValues) = 0;
virtual ze_result_t writeRegisters(ze_device_thread_t thread, zet_debug_regset_type_t type, uint32_t start, uint32_t count, void *pRegisterValues) = 0;
Device *getConnectedDevice() { return connectedDevice; }
virtual void startAsyncThread() = 0;