mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
Source Level Debugger fixes
when SLD is active: - make Sip Kernel Resident - program GPGPU_CSR_BASE_ADDRESS - Disable Preemption - adjust getDebuggerOption input param, value passed has to be at least 2 bytes in size change unit test behaviour accordingly Change-Id: I4ec87d0e8dfcf02437fdeeffc5363314eea5dd07
This commit is contained in:
committed by
sys_ocldev
parent
749d89a9bf
commit
47f1abe543
@@ -53,6 +53,7 @@ class MockDeviceWithActiveDebugger : public MockDevice {
|
||||
MockDevice::initializeCaps();
|
||||
this->setSourceLevelDebuggerActive(true);
|
||||
}
|
||||
|
||||
T *getSourceLevelDebugger() {
|
||||
return sourceLevelDebuggerCreated;
|
||||
}
|
||||
@@ -110,3 +111,8 @@ TEST(DeviceWithSourceLevelDebugger, givenDeviceWithSourceLevelDebuggerActiveWhen
|
||||
GMockSourceLevelDebugger *gmock = device->getSourceLevelDebugger();
|
||||
EXPECT_CALL(*gmock, notifyDeviceDestruction()).Times(1);
|
||||
}
|
||||
|
||||
TEST(DeviceWithSourceLevelDebugger, givenDeviceWithSourceLevelDebuggerActiveWhenDeviceIsCreatedThenPreemptionIsDisabled) {
|
||||
auto device = std::unique_ptr<MockDeviceWithActiveDebugger<MockActiveSourceLevelDebugger>>(Device::create<MockDeviceWithActiveDebugger<MockActiveSourceLevelDebugger>>(nullptr));
|
||||
EXPECT_EQ(PreemptionMode::Disabled, device->getPreemptionMode());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user