Energy information (RAPL MSR)

Energy information (RAPL MSR)#

AMD SMI: Energy information (RAPL MSR)
Energy information (RAPL MSR)

Functions

amdsmi_status_t amdsmi_get_cpu_core_energy (amdsmi_processor_handle processor_handle, uint64_t *penergy)
 Get the core energy for a given core. More...
 
amdsmi_status_t amdsmi_get_cpu_socket_energy (amdsmi_processor_handle processor_handle, uint64_t *penergy)
 Get the socket energy for a given socket. More...
 

Detailed Description

Function Documentation

◆ amdsmi_get_cpu_core_energy()

amdsmi_status_t amdsmi_get_cpu_core_energy ( amdsmi_processor_handle  processor_handle,
uint64_t *  penergy 
)

Get the core energy for a given core.

Platform:
cpu_bm
Parameters
[in]processor_handleCpu core which to query
[in,out]penergy- Input buffer to return the core energy
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail

◆ amdsmi_get_cpu_socket_energy()

amdsmi_status_t amdsmi_get_cpu_socket_energy ( amdsmi_processor_handle  processor_handle,
uint64_t *  penergy 
)

Get the socket energy for a given socket.

Platform:
cpu_bm
Parameters
[in]processor_handleCpu socket which to query
[in,out]penergy- Input buffer to return the socket energy
Returns
amdsmi_status_t | AMDSMI_STATUS_SUCCESS on success, non-zero on fail