libmsr  0.3.0
A friendlier interface to accessing MSRs on Intel platforms
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
Public Attributes | List of all members
rapl_units Struct Reference

Structure containing units for energy, time, and power across all RAPL power domains. More...

#include <msr_rapl.h>

Public Attributes

uint64_t msr_rapl_power_unit
 Raw 64-bit value stored in MSR_RAPL_POWER_UNIT.
 
double joules
 Energy status units (ESU) based on the multiplier 1/(2^ESU) (in Joules). ESU is encoded in bits 12:8 of MSR_RAPL_POWER_UNIT.
 
double seconds
 Time units (TU) based on the multiplier 1/(2^TU) (in seconds). TU is encoded in bits 19:16 of MSR_RAPL_POWER_UNIT.
 
double watts
 Power units (PU) based on the multiplier 1/(2^PU) (in Watts). PU is encoded in bits 3:0 of MSR_RAPL_POWER_UNIT.
 

Detailed Description

Structure containing units for energy, time, and power across all RAPL power domains.

Member Data Documentation

double rapl_units::joules

Energy status units (ESU) based on the multiplier 1/(2^ESU) (in Joules). ESU is encoded in bits 12:8 of MSR_RAPL_POWER_UNIT.

uint64_t rapl_units::msr_rapl_power_unit

Raw 64-bit value stored in MSR_RAPL_POWER_UNIT.

double rapl_units::seconds

Time units (TU) based on the multiplier 1/(2^TU) (in seconds). TU is encoded in bits 19:16 of MSR_RAPL_POWER_UNIT.

double rapl_units::watts

Power units (PU) based on the multiplier 1/(2^PU) (in Watts). PU is encoded in bits 3:0 of MSR_RAPL_POWER_UNIT.


The documentation for this struct was generated from the following file: