added metric table wrapper APIS & test code

Change-Id: I24207b3c32d7294337140a1f5108b81f3bf33580
Этот коммит содержится в:
Deepak Mewar authored and Maisam Arif committed 2023-10-10 00:03:11 -04:00
1 родитель 7a2f3c8d56
Коммит 192fb538be
3 files changed
+111 -2

No files matched your search

+30
Просмотреть файл
@@ -4285,6 +4285,36 @@ amdsmi_status_t amdsmi_get_cpu_current_xgmi_bw(amdsmi_cpusocket_handle socket_ha
/** @} */
/*---------------------------------------------------------------------------*/
/** @defgroup MetQuer Metrics Table */
/*---------------------------------------------------------------------------*/
/** @{ */
/**
* @brief Get metrics table version
*
* @param[in] socket_handle Cpu socket which to query
* @param[in,out] metrics_version input buffer to return the metrics table version.
*
* @return ::amdsmi_status_t | ::AMDSMI_STATUS_SUCCESS on success, non-zero on fail
*/
amdsmi_status_t amdsmi_get_metrics_table_version(amdsmi_cpusocket_handle socket_handle,
uint32_t *metrics_version);
/**
* @brief Get metrics table
*
* @param[in] socket_handle Cpu socket which to query
* @param[in] sock_ind - socket index
* @param[in,out] metrics_table input buffer to return the metrics table.
*
* @return ::amdsmi_status_t | ::AMDSMI_STATUS_SUCCESS on success, non-zero on fail
*/
amdsmi_status_t amdsmi_get_metrics_table(amdsmi_cpusocket_handle socket_handle, uint8_t sock_ind,
struct hsmp_metric_table *metrics_table);
/** @} */
/*---------------------------------------------------------------------------*/
/** @defgroup auxiquer Auxillary functions */
/*---------------------------------------------------------------------------*/