Lines Matching refs:pmu

88 	if (type == event->pmu->type)  in armpmu_map_event()
105 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_event_set_period()
145 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_event_update()
174 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_stop()
190 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_start()
215 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_del()
232 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_add()
242 perf_pmu_disable(event->pmu); in armpmu_add()
267 perf_pmu_enable(event->pmu); in armpmu_add()
272 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument
285 if (event->pmu != pmu) in validate_event()
294 armpmu = to_arm_pmu(event->pmu); in validate_event()
310 if (!validate_event(event->pmu, &fake_pmu, leader)) in validate_group()
314 if (!validate_event(event->pmu, &fake_pmu, sibling)) in validate_group()
318 if (!validate_event(event->pmu, &fake_pmu, event)) in validate_group()
374 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in hw_perf_event_destroy()
394 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in __hw_perf_event_init()
455 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_event_init()
499 static void armpmu_enable(struct pmu *pmu) in armpmu_enable() argument
501 struct arm_pmu *armpmu = to_arm_pmu(pmu); in armpmu_enable()
513 static void armpmu_disable(struct pmu *pmu) in armpmu_disable() argument
515 struct arm_pmu *armpmu = to_arm_pmu(pmu); in armpmu_disable()
531 struct arm_pmu *armpmu = to_arm_pmu(event->pmu); in armpmu_filter_match()
541 armpmu->pmu = (struct pmu) { in armpmu_init()
559 return perf_pmu_register(&armpmu->pmu, armpmu->name, type); in armpmu_register()
705 struct arm_pmu *pmu = container_of(b, struct arm_pmu, hotplug_nb); in cpu_pmu_notify() local
710 if (!cpumask_test_cpu(cpu, &pmu->supported_cpus)) in cpu_pmu_notify()
713 if (pmu->reset) in cpu_pmu_notify()
714 pmu->reset(pmu); in cpu_pmu_notify()
753 cpu_pmu->pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT; in cpu_pmu_init()
771 static int probe_current_pmu(struct arm_pmu *pmu, in probe_current_pmu() argument
783 ret = info->init(pmu); in probe_current_pmu()
791 static int of_pmu_irq_cfg(struct arm_pmu *pmu) in of_pmu_irq_cfg() argument
795 struct platform_device *pdev = pmu->plat_device; in of_pmu_irq_cfg()
840 cpumask_setall(&pmu->supported_cpus); in of_pmu_irq_cfg()
856 cpumask_set_cpu(cpu, &pmu->supported_cpus); in of_pmu_irq_cfg()
862 if (cpumask_weight(&pmu->supported_cpus) == 0) in of_pmu_irq_cfg()
863 cpumask_setall(&pmu->supported_cpus); in of_pmu_irq_cfg()
867 pmu->irq_affinity = irqs; in of_pmu_irq_cfg()
881 struct arm_pmu *pmu; in arm_pmu_device_probe() local
884 pmu = kzalloc(sizeof(struct arm_pmu), GFP_KERNEL); in arm_pmu_device_probe()
885 if (!pmu) { in arm_pmu_device_probe()
891 __oprofile_cpu_pmu = pmu; in arm_pmu_device_probe()
893 pmu->plat_device = pdev; in arm_pmu_device_probe()
898 ret = of_pmu_irq_cfg(pmu); in arm_pmu_device_probe()
900 ret = init_fn(pmu); in arm_pmu_device_probe()
902 ret = probe_current_pmu(pmu, probe_table); in arm_pmu_device_probe()
903 cpumask_setall(&pmu->supported_cpus); in arm_pmu_device_probe()
911 ret = cpu_pmu_init(pmu); in arm_pmu_device_probe()
915 ret = armpmu_register(pmu, -1); in arm_pmu_device_probe()
922 cpu_pmu_destroy(pmu); in arm_pmu_device_probe()
925 kfree(pmu); in arm_pmu_device_probe()