mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 03:01:20 +08:00
fix(zebin): fix module load/unload events while debugging
- do not trigger incorrect / spurious events from internal modules for debugger - do not register Elf for internal modules Related-To: NEO-7605 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
af81c79076
commit
ee499d689b
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
* Copyright (C) 2020-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -58,6 +58,8 @@ bool DebuggerL0::attachZebinModuleToSegmentAllocations(const StackVec<NEO::Graph
|
||||
|
||||
for (auto &allocation : allocs) {
|
||||
auto drmAllocation = static_cast<NEO::DrmAllocation *>(allocation);
|
||||
|
||||
DEBUG_BREAK_IF(allocation->getAllocationType() == AllocationType::KERNEL_ISA_INTERNAL);
|
||||
drmAllocation->linkWithRegisteredHandle(elfHandle);
|
||||
drmAllocation->linkWithRegisteredHandle(moduleHandle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user