mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 16:24:18 +08:00
L0Debugger - add DEBUG_BREAK when readGpuMemory fails
- break in checkThreadIsResumed() when memory read fails unexpectedly Related-To: NEO-6763 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
fb336d1b57
commit
771298c6e2
@@ -388,9 +388,11 @@ bool DebugSessionImp::checkThreadIsResumed(const EuThread::ThreadId &threadID) {
|
||||
auto srMagicOffset = threadSlotOffset + getStateSaveAreaHeader()->regHeader.sr_magic_offset;
|
||||
SIP::sr_ident srMagic;
|
||||
memset(srMagic.magic, 0, sizeof(SIP::sr_ident::magic));
|
||||
readGpuMemory(thread->getMemoryHandle(), reinterpret_cast<char *>(&srMagic), sizeof(srMagic), gpuVa + srMagicOffset);
|
||||
|
||||
if (0 != strcmp(srMagic.magic, "srmagic")) {
|
||||
auto status = readGpuMemory(thread->getMemoryHandle(), reinterpret_cast<char *>(&srMagic), sizeof(srMagic), gpuVa + srMagicOffset);
|
||||
DEBUG_BREAK_IF(status != ZE_RESULT_SUCCESS);
|
||||
|
||||
if (status != ZE_RESULT_SUCCESS || 0 != strcmp(srMagic.magic, "srmagic")) {
|
||||
PRINT_DEBUGGER_ERROR_LOG("checkThreadIsResumed - Failed to read srMagic for thread %s\n", EuThread::toString(threadID).c_str());
|
||||
return resumed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user