mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Add RootDebugSession
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e1f3b39c97
commit
734e22857e
@@ -36,11 +36,20 @@ struct DebugSession : _zet_debug_session_handle_t {
|
||||
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;
|
||||
|
||||
protected:
|
||||
DebugSession(const zet_debug_config_t &config, Device *device) : connectedDevice(device){};
|
||||
virtual void startAsyncThread() = 0;
|
||||
|
||||
Device *connectedDevice = nullptr;
|
||||
};
|
||||
|
||||
struct RootDebugSession : DebugSession {
|
||||
virtual ~RootDebugSession() = default;
|
||||
RootDebugSession() = delete;
|
||||
|
||||
protected:
|
||||
RootDebugSession(const zet_debug_config_t &config, Device *device) : DebugSession(config, device){};
|
||||
};
|
||||
|
||||
} // namespace L0
|
||||
Reference in New Issue
Block a user