refactor: metrics enums rename for L0 spec version 1.7

Resolves: LOCI-4642

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
This commit is contained in:
Matias Cabral
2023-07-21 06:40:44 -07:00
committed by Compute-Runtime-Automation
parent b3bcc9bc6d
commit 6946dd561f
4 changed files with 6 additions and 6 deletions

View File

@@ -261,7 +261,7 @@ ze_result_t MetricGroup::getMetricGroupExtendedProperties(MetricSource &metricSo
while (pNext) {
zet_base_desc_t *extendedProperties = reinterpret_cast<zet_base_desc_t *>(pNext);
if (extendedProperties->stype == ZET_STRUCTURE_TYPE_GLOBAL_METRICS_TIMESTAMPS_EXP_PROPERTIES) {
if (extendedProperties->stype == ZET_STRUCTURE_TYPE_METRIC_GLOBAL_TIMESTAMPS_RESOLUTION_EXP) {
zet_metric_global_timestamps_resolution_exp_t *metricsTimestampProperties =
reinterpret_cast<zet_metric_global_timestamps_resolution_exp_t *>(extendedProperties);

View File

@@ -88,7 +88,7 @@ void IpSamplingMetricSourceImp::cacheMetricGroup() {
// Preparing properties for IP seperately because of unique values
strcpy_s(metricProperties.name, ZET_MAX_METRIC_NAME, "IP");
strcpy_s(metricProperties.description, ZET_MAX_METRIC_DESCRIPTION, "IP address");
metricProperties.metricType = ZET_METRIC_TYPE_IP_EXP;
metricProperties.metricType = ZET_METRIC_TYPE_IP;
strcpy_s(metricProperties.resultUnits, ZET_MAX_METRIC_RESULT_UNITS, "Address");
metrics.push_back(IpSamplingMetricImp(metricProperties));