From fc4d43387702fe401fb3a8cfe5faa745bfb93d61 Mon Sep 17 00:00:00 2001 From: Chris Freehill Date: Wed, 5 Aug 2020 18:50:36 -0500 Subject: [PATCH] Correct event counter documentation example Change-Id: I74c41de8e4aacbd42d9e156983369eb76bec3367 [ROCm/rocm_smi_lib commit: 0468aa4971668db9f09afe61db0d5d5f514057b0] --- projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h b/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h index 1d46dd99fe..39743c8f20 100755 --- a/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h +++ b/projects/rocm-smi-lib/include/rocm_smi/rocm_smi.h @@ -2486,9 +2486,12 @@ rsmi_status_string(rsmi_status_t status, const char **status_string); * * // Assuming RSMI_EVNT_GRP_XGMI is supported and there is at least 1 * // counter available for RSMI_EVNT_GRP_XGMI on device dv_ind, create - * // an event object and get the handle (rsmi_event_handle_t). + * // an event object for an event of group RSMI_EVNT_GRP_XGMI (e.g., + * // RSMI_EVNT_XGMI_0_BEATS_TX) and get the handle + * // (rsmi_event_handle_t). * - * ret = rsmi_dev_counter_create(dv_ind, RSMI_EVNT_GRP_XGMI, &evnt_handle); + * ret = rsmi_dev_counter_create(dv_ind, RSMI_EVNT_XGMI_0_BEATS_TX, + * &evnt_handle); * * // A program that generates the events of interest can be started * // immediately before or after starting the counters.