Lines Matching refs:rapl_pmus

115 struct rapl_pmus {  struct
136 static struct rapl_pmus *rapl_pmus; argument
150 return dieid < rapl_pmus->maxdie ? rapl_pmus->pmus[dieid] : NULL; in cpu_to_rapl_pmu()
336 if (event->attr.type != rapl_pmus->pmu.type) in rapl_pmu_event_init()
581 pmu->pmu = &rapl_pmus->pmu; in rapl_cpu_online()
585 rapl_pmus->pmus[topology_logical_die_id(cpu)] = pmu; in rapl_cpu_online()
665 for (i = 0; i < rapl_pmus->maxdie; i++) in cleanup_rapl_pmus()
666 kfree(rapl_pmus->pmus[i]); in cleanup_rapl_pmus()
667 kfree(rapl_pmus); in cleanup_rapl_pmus()
684 size = sizeof(*rapl_pmus) + maxdie * sizeof(struct rapl_pmu *); in init_rapl_pmus()
685 rapl_pmus = kzalloc(size, GFP_KERNEL); in init_rapl_pmus()
686 if (!rapl_pmus) in init_rapl_pmus()
689 rapl_pmus->maxdie = maxdie; in init_rapl_pmus()
690 rapl_pmus->pmu.attr_groups = rapl_attr_groups; in init_rapl_pmus()
691 rapl_pmus->pmu.attr_update = rapl_attr_update; in init_rapl_pmus()
692 rapl_pmus->pmu.task_ctx_nr = perf_invalid_context; in init_rapl_pmus()
693 rapl_pmus->pmu.event_init = rapl_pmu_event_init; in init_rapl_pmus()
694 rapl_pmus->pmu.add = rapl_pmu_event_add; in init_rapl_pmus()
695 rapl_pmus->pmu.del = rapl_pmu_event_del; in init_rapl_pmus()
696 rapl_pmus->pmu.start = rapl_pmu_event_start; in init_rapl_pmus()
697 rapl_pmus->pmu.stop = rapl_pmu_event_stop; in init_rapl_pmus()
698 rapl_pmus->pmu.read = rapl_pmu_event_read; in init_rapl_pmus()
699 rapl_pmus->pmu.module = THIS_MODULE; in init_rapl_pmus()
700 rapl_pmus->pmu.capabilities = PERF_PMU_CAP_NO_EXCLUDE; in init_rapl_pmus()
853 ret = perf_pmu_register(&rapl_pmus->pmu, "power", -1); in rapl_pmu_init()
872 perf_pmu_unregister(&rapl_pmus->pmu); in intel_rapl_exit()