From e0aefaebf9538e2fafebe4ae074254419da9dd49 Mon Sep 17 00:00:00 2001 From: "Arif, Maisam" Date: Thu, 8 May 2025 12:20:00 -0500 Subject: [PATCH] CPER Doc update (#352) Change-Id: I59053eda863fc2b7349a3071a02e4557a8abe8c7 Signed-off-by: Maisam Arif [ROCm/amdsmi commit: 249537b2ffa206b55805caa0b41bdd36d3d0b9bc] --- .../amdsmi/docs/reference/amdsmi-py-api.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/amdsmi/docs/reference/amdsmi-py-api.md b/projects/amdsmi/docs/reference/amdsmi-py-api.md index 91fd3dcc25..656f6f5629 100644 --- a/projects/amdsmi/docs/reference/amdsmi-py-api.md +++ b/projects/amdsmi/docs/reference/amdsmi-py-api.md @@ -1165,7 +1165,7 @@ Input parameters: * `buffer_size` pointer to a variable that specifies the size of the cper_data * `cursor` pointer to a variable that will contain the cursor for the next call -Output: Dictionary with fields +Output: Dictionary with fields, updated cursor, and a dictionary of the cper_data Field | Description ---|--- @@ -1192,15 +1192,15 @@ Example: ```python for device in devices: - entries, new_cursor = amdsmi_get_gpu_cper_entries(device, severity_mask, buffer_size, initial_cursor) - print("CPER entries for device", device) - for key, entry in entries.items(): - print("Entry", key) - print(" Error Severity:", entry.get("error_severity", "Unknown")) - print(" Notify Type:", entry.get("notify_type", "Unknown")) - print(" Timestamp:", entry.get("timestamp", "")) - print() - print("New Cursor Position:", new_cursor) + entries, new_cursor, cper_data = amdsmi_get_gpu_cper_entries(device, severity_mask, buffer_size, initial_cursor) + print("CPER entries for device", device) + for key, entry in entries.items(): + print("Entry", key) + print(" Error Severity:", entry.get("error_severity", "Unknown")) + print(" Notify Type:", entry.get("notify_type", "Unknown")) + print(" Timestamp:", entry.get("timestamp", "")) + print() + print("New Cursor Position:", new_cursor) except AmdSmiException as e: print(e) ```