[SWDEV-527092] - Process Start/Stop event addition (#368)

- Added more events to `amdsmi_evt_notification_type_t`

Change-Id: I6a256fe828e4bec3197c7fecbed374ab17c6f850
Signed-off-by: Adam Pryor <Adam.Pryor@amd.com>
This commit is contained in:
Pryor, Adam
2025-05-16 11:01:15 -05:00
committed by GitHub
szülő bacbaac0b1
commit 8713305f80
8 fájl változott, egészen pontosan 83 új sor hozzáadva és 17 régi sor törölve
+4 -2
Fájl megtekintése
@@ -1926,8 +1926,10 @@ amdsmi_get_gpu_event_notification(int timeout_ms,
rsmi_evt_notification_data_t rsmi_data = r_data[i];
data[i].event = static_cast<amdsmi_evt_notification_type_t>(
rsmi_data.event);
strncpy(data[i].message, rsmi_data.message,
MAX_EVENT_NOTIFICATION_MSG_SIZE);
snprintf(data[i].message,
MAX_EVENT_NOTIFICATION_MSG_SIZE,
"%s",
rsmi_data.message);
amdsmi_status_t r = amd::smi::AMDSmiSystem::getInstance()
.gpu_index_to_handle(rsmi_data.dv_ind, &(data[i].processor_handle));
if (r != AMDSMI_STATUS_SUCCESS) return r;