Add debug api handlers 2

Related-To: NEO-4554

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2021-03-03 12:09:39 +00:00
committed by Compute-Runtime-Automation
parent a3c2a1eb44
commit 6356de6511
10 changed files with 135 additions and 13 deletions

View File

@@ -91,6 +91,7 @@ struct Device : _ze_device_handle_t {
virtual uint32_t getPlatformInfo() const = 0;
virtual MetricContext &getMetricContext() = 0;
virtual DebugSession *getDebugSession(const zet_debug_config_t &config) = 0;
virtual void removeDebugSession() = 0;
virtual ze_result_t activateMetricGroups(uint32_t count,
zet_metric_group_handle_t *phMetricGroups) = 0;

View File

@@ -59,6 +59,7 @@ struct DeviceImp : public Device {
uint32_t getPlatformInfo() const override;
MetricContext &getMetricContext() override;
DebugSession *getDebugSession(const zet_debug_config_t &config) override;
void removeDebugSession() override { debugSession.release(); }
uint32_t getMaxNumHwThreads() const override;
ze_result_t activateMetricGroups(uint32_t count,

View File

@@ -250,6 +250,8 @@ struct Mock<Device> : public Device {
DebugSession *getDebugSession(const zet_debug_config_t &config) override {
return nullptr;
}
void removeDebugSession() override {}
};
template <>