Searched refs:rapl_pmu (Results 1 – 2 of 2) sorted by relevance
130 struct rapl_pmu { struct144 struct rapl_pmu *rapl_pmu[] __counted_by(nr_rapl_pmu); argument247 static void rapl_start_hrtimer(struct rapl_pmu *pmu) in rapl_start_hrtimer()255 struct rapl_pmu *rapl_pmu = container_of(hrtimer, struct rapl_pmu, hrtimer); in rapl_hrtimer_handle() local259 if (!rapl_pmu->n_active) in rapl_hrtimer_handle()262 raw_spin_lock_irqsave(&rapl_pmu->lock, flags); in rapl_hrtimer_handle()264 list_for_each_entry(event, &rapl_pmu->active_list, active_entry) in rapl_hrtimer_handle()267 raw_spin_unlock_irqrestore(&rapl_pmu->lock, flags); in rapl_hrtimer_handle()269 hrtimer_forward_now(hrtimer, rapl_pmu->timer_interval); in rapl_hrtimer_handle()274 static void rapl_hrtimer_init(struct rapl_pmu *rapl_pmu) in rapl_hrtimer_init() argument[all …]
1581 struct rapl_pmu { struct1588 static struct rapl_pmu rapl_pmu; argument1967 return rapl_pmu.domain_map & BIT(domain) ? attr->mode : 0; \1995 if (rapl_pmu.registered && !(rp->domain_map & (~rapl_pmu.domain_map))) in rapl_pmu_update()1999 if (rapl_pmu.registered) in rapl_pmu_update()2000 perf_pmu_unregister(&rapl_pmu.pmu); in rapl_pmu_update()2002 rapl_pmu.registered = false; in rapl_pmu_update()2003 rapl_pmu.domain_map |= rp->domain_map; in rapl_pmu_update()2005 memset(&rapl_pmu.pmu, 0, sizeof(struct pmu)); in rapl_pmu_update()2006 rapl_pmu.pmu.attr_groups = pmu_attr_groups; in rapl_pmu_update()[all …]