[SWDEV-524288] Fixed duplication of GPU id in events. (#233)

* Fixed duplication of GPU id in events.

---------

Signed-off-by: gabrpham_amdeng <Gabriel.Pham@amd.com>
Bu işleme şunda yer alıyor:
Pham, Gabriel authored and GitHub committed 2025-04-04 18:31:08 -05:00
1 ebeveyn 50d7d5287f
işleme e2c371ece4
3 files changed
+7 -2

No files matched your search

+2 -1
Dosyayı Görüntüle
@@ -536,9 +536,10 @@ class AmdSmiEventReader:
unique_event_values = set(event.value for event in AmdSmiEvtNotificationType)
if self.event_info[i].event in unique_event_values:
if AmdSmiEvtNotificationType(self.event_info[i].event).name != "NONE":
processor_handle = amdsmi_wrapper.amdsmi_processor_handle(self.event_info[i].processor_handle)
ret.append(
{
"processor_handle": self.event_info[i].processor_handle,
"processor_handle": processor_handle,
"event": AmdSmiEvtNotificationType(self.event_info[i].event).name,
"message": self.event_info[i].message.decode("utf-8"),
}