mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
feature: add debug key to generate sip header file
- header file can be used with LoadBinarySipFromFile Related-To: GSD-8253 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f71f6d2b72
commit
cb7ac1ada0
@@ -37,6 +37,7 @@ ForceDeviceId = unk
|
||||
FilterDeviceId = unk
|
||||
FilterBdfPath = unk
|
||||
LoadBinarySipFromFile = unk
|
||||
DumpSipHeaderFile = unk
|
||||
InjectInternalBuildOptions = unk
|
||||
InjectApiBuildOptions = unk
|
||||
OverrideCsrAllocationSize = -1
|
||||
|
||||
@@ -752,3 +752,16 @@ TEST_F(DebugBuiltinSipTest, givenDebuggerWhenInitSipKernelThenDbgSipIsLoadedFrom
|
||||
EXPECT_NE(nullptr, sipAllocation);
|
||||
EXPECT_EQ(SipKernelMock::classType, SipClassType::builtins);
|
||||
}
|
||||
|
||||
TEST_F(DebugBuiltinSipTest, givenDumpSipHeaderFileWhenGettingSipKernelThenSipHeaderFileIsCreated) {
|
||||
DebugManagerStateRestore restorer;
|
||||
NEO::debugManager.flags.DumpSipHeaderFile.set("sip");
|
||||
|
||||
pDevice->executionEnvironment->rootDeviceEnvironments[0]->initDebuggerL0(pDevice);
|
||||
|
||||
auto &builtins = *pDevice->getBuiltIns();
|
||||
builtins.getSipKernel(SipKernelType::dbgCsr, *pDevice);
|
||||
|
||||
EXPECT_EQ(1u, NEO::virtualFileList.size());
|
||||
EXPECT_TRUE(NEO::virtualFileList.find("sip_header.bin") != NEO::virtualFileList.end());
|
||||
}
|
||||
Reference in New Issue
Block a user