rapl_model
static struct rapl_model *rapl_model;
event->hw.event_base = rapl_model->rapl_pkg_msrs[bit].msr;
event->hw.event_base = rapl_model->rapl_core_msrs[bit].msr;
if (rdmsrq_safe(rapl_model->msr_power_unit, &msr_rapl_power_unit_bits))
switch (rapl_model->unit_quirk) {
static struct rapl_model model_snb = {
static struct rapl_model model_snbep = {
static struct rapl_model model_hsw = {
static struct rapl_model model_hsx = {
static struct rapl_model model_knl = {
static struct rapl_model model_skl = {
static struct rapl_model model_spr = {
static struct rapl_model model_amd_hygon = {
rapl_model = (struct rapl_model *) id->driver_data;
rapl_pmus_pkg->cntr_mask = perf_msr_probe(rapl_model->rapl_pkg_msrs,
(void *) &rapl_model->pkg_events);
if (rapl_model->core_events) {
rapl_pmus_core->cntr_mask = perf_msr_probe(rapl_model->rapl_core_msrs,
(void *) &rapl_model->core_events);