[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:
@@ -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"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user