Lines Matching refs:pmu
24 #define to_tad_pmu(p) (container_of(p, struct tad_pmu, pmu))
31 struct pmu pmu;
44 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
62 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
81 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
107 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
118 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
141 struct tad_pmu *tad_pmu = to_tad_pmu(event->pmu);
143 if (event->attr.type != event->pmu->type)
286 ret = device_property_read_u32(dev, "marvell,tad-pmu-page-size",
289 dev_err(&pdev->dev, "Can't find tad-pmu-page-size property\n");
304 /* ioremap the distributed TAD pmu regions */
319 tad_pmu->pmu = (struct pmu) {
337 /* Register pmu instance for cpu hotplug */
346 ret = perf_pmu_register(&tad_pmu->pmu, name, -1);
356 struct tad_pmu *pmu = platform_get_drvdata(pdev);
359 &pmu->node);
360 perf_pmu_unregister(&pmu->pmu);
365 { .compatible = "marvell,cn10k-tad-pmu", },
391 struct tad_pmu *pmu = hlist_entry_safe(node, struct tad_pmu, node);
394 if (cpu != pmu->cpu)
401 perf_pmu_migrate_context(&pmu->pmu, cpu, target);
402 pmu->cpu = target;