Lines Matching refs:pmu
93 struct pmu pmu; member
119 static inline struct tx2_uncore_pmu *pmu_to_tx2_pmu(struct pmu *pmu) in pmu_to_tx2_pmu() argument
121 return container_of(pmu, struct tx2_uncore_pmu, pmu); in pmu_to_tx2_pmu()
328 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in init_cntr_base_l3c()
344 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in init_cntr_base_dmc()
373 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in uncore_start_event_l3c()
395 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in uncore_start_event_dmc()
420 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in uncore_stop_event_dmc()
436 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in uncore_start_event_ccpi2()
472 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in tx2_uncore_event_update()
527 static bool tx2_uncore_validate_event(struct pmu *pmu, in tx2_uncore_validate_event() argument
533 if (event->pmu != pmu) in tx2_uncore_validate_event()
553 if (!tx2_uncore_validate_event(event->pmu, leader, &counters)) in tx2_uncore_validate_event_group()
557 if (!tx2_uncore_validate_event(event->pmu, sibling, &counters)) in tx2_uncore_validate_event_group()
561 if (!tx2_uncore_validate_event(event->pmu, event, &counters)) in tx2_uncore_validate_event_group()
578 if (event->attr.type != event->pmu->type) in tx2_uncore_event_init()
592 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in tx2_uncore_event_init()
616 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in tx2_uncore_event_start()
642 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in tx2_uncore_event_stop()
657 tx2_pmu = pmu_to_tx2_pmu(event->pmu); in tx2_uncore_event_add()
677 struct tx2_uncore_pmu *tx2_pmu = pmu_to_tx2_pmu(event->pmu); in tx2_uncore_event_del()
730 tx2_pmu->pmu = (struct pmu) { in tx2_uncore_pmu_register()
743 tx2_pmu->pmu.name = devm_kasprintf(dev, GFP_KERNEL, in tx2_uncore_pmu_register()
746 return perf_pmu_register(&tx2_pmu->pmu, tx2_pmu->pmu.name, -1); in tx2_uncore_pmu_register()
784 tx2_pmu->pmu.name); in tx2_uncore_pmu_add_dev()
959 perf_pmu_migrate_context(&tx2_pmu->pmu, cpu, new_cpu); in tx2_uncore_pmu_offline_cpu()
1009 perf_pmu_unregister(&tx2_pmu->pmu); in tx2_uncore_remove()