Skip to content

Commit 0b2022c

Browse files
Setup dispatch table with debug tools functions
Signed-off-by: Mateusz Hoppe <[email protected]>
1 parent df1e779 commit 0b2022c

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

level_zero/api/tools/ze_tools_loader.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,14 @@ zetGetDebugProcAddrTable(
206206
pDdiTable->pfnAttach = zetDebugAttach;
207207
pDdiTable->pfnDetach = zetDebugDetach;
208208
pDdiTable->pfnReadEvent = zetDebugReadEvent;
209+
pDdiTable->pfnAcknowledgeEvent = zetDebugAcknowledgeEvent;
209210
pDdiTable->pfnInterrupt = zetDebugInterrupt;
210211
pDdiTable->pfnResume = zetDebugResume;
211212
pDdiTable->pfnReadMemory = zetDebugReadMemory;
212213
pDdiTable->pfnWriteMemory = zetDebugWriteMemory;
214+
pDdiTable->pfnGetRegisterSetProperties = zetDebugGetRegisterSetProperties;
215+
pDdiTable->pfnReadRegisters = zetDebugReadRegisters;
216+
pDdiTable->pfnWriteRegisters = zetDebugWriteRegisters;
213217

214218
return result;
215219
}

level_zero/api/tools/zet_debug.cpp

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020 Intel Corporation
2+
* Copyright (C) 2020-2021 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -68,4 +68,41 @@ zetDebugWriteMemory(
6868
size_t size,
6969
const void *buffer) {
7070
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
71+
}
72+
73+
ZE_APIEXPORT ze_result_t ZE_APICALL
74+
zetDebugAcknowledgeEvent(
75+
zet_debug_session_handle_t hDebug,
76+
const zet_debug_event_t *event) {
77+
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
78+
}
79+
80+
ZE_APIEXPORT ze_result_t ZE_APICALL
81+
zetDebugGetRegisterSetProperties(
82+
zet_device_handle_t hDevice,
83+
uint32_t *pCount,
84+
zet_debug_regset_properties_t *pRegisterSetProperties) {
85+
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
86+
}
87+
88+
ZE_APIEXPORT ze_result_t ZE_APICALL
89+
zetDebugReadRegisters(
90+
zet_debug_session_handle_t hDebug,
91+
ze_device_thread_t thread,
92+
zet_debug_regset_type_t type,
93+
uint32_t start,
94+
uint32_t count,
95+
void *pRegisterValues) {
96+
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
97+
}
98+
99+
ZE_APIEXPORT ze_result_t ZE_APICALL
100+
zetDebugWriteRegisters(
101+
zet_debug_session_handle_t hDebug,
102+
ze_device_thread_t thread,
103+
zet_debug_regset_type_t type,
104+
uint32_t start,
105+
uint32_t count,
106+
void *pRegisterValues) {
107+
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
71108
}

0 commit comments

Comments
 (0)