rapl_counter
struct rapl_counter core_energy; /* MSR_CORE_ENERGY_STAT */
struct rapl_counter energy_pkg; /* MSR_PKG_ENERGY_STATUS */
struct rapl_counter energy_dram; /* MSR_DRAM_ENERGY_STATUS */
struct rapl_counter energy_cores; /* MSR_PP0_ENERGY_STATUS */
struct rapl_counter energy_gfx; /* MSR_PP1_ENERGY_STATUS */
struct rapl_counter rapl_pkg_perf_status; /* MSR_PKG_PERF_STATUS */
struct rapl_counter rapl_dram_perf_status; /* MSR_DRAM_PERF_STATUS */
struct rapl_counter energy_psys; /* MSR_PLATFORM_ENERGY_STATUS */
double rapl_counter_get_value(const struct rapl_counter *c, enum rapl_unit desired_unit, double interval)
void rapl_counter_clear(struct rapl_counter *c)
void rapl_counter_accumulate(struct rapl_counter *dst, const struct rapl_counter *src)
void write_rapl_counter(struct rapl_counter *rc, struct rapl_counter_info_t *rci, unsigned int idx)