[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>
This commit is contained in:
Pham, Gabriel
2025-04-04 18:31:08 -05:00
committed by GitHub
parent 50d7d5287f
commit e2c371ece4
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -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"),
}