feature: debug flag to disable l0 debugger

Related-To: HSD-18037823909
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2024-06-03 13:42:29 +00:00
committed by Compute-Runtime-Automation
parent 4ebb668d76
commit 844b29d17c
4 changed files with 22 additions and 1 deletions

View File

@@ -605,4 +605,5 @@ EnableLogLevel = 6
EnableReusingGpuTimestamps = -1
ForceCopyOperationOffloadForComputeCmdList = -1
SecondaryContextEngineTypeMask = -1
DisableSupportForL0Debugger=0
# Please don't edit below this line

View File

@@ -95,6 +95,22 @@ TEST(Device, givenNoDebuggerWhenGettingDebuggerThenNullptrIsReturned) {
EXPECT_EQ(nullptr, device->getL0Debugger());
}
struct DeviceWithDisabledL0DebuggerTests : public DeviceFixture, public ::testing::Test {
void SetUp() override {
debugManager.flags.DisableSupportForL0Debugger.set(true);
DeviceFixture::setUp();
}
void TearDown() override {
DeviceFixture::tearDown();
}
DebugManagerStateRestore dbgRestorer;
};
TEST_F(DeviceWithDisabledL0DebuggerTests, givenSetFlagDisableSupportForL0DebuggerWhenCreateDeviceThenCapabilityLDebuggerSupportedIsDisabled) {
EXPECT_FALSE(pDevice->getHardwareInfo().capabilityTable.l0DebuggerSupported);
}
TEST(Device, givenDeviceWithBrandingStringNameWhenGettingDeviceNameThenBrandingStringIsReturned) {
auto hwInfo = *defaultHwInfo;