Lines Matching refs:pmu
82 return &idxd_pmu->pmu == event->pmu; in is_idxd_event()
154 static int perfmon_validate_group(struct idxd_pmu *pmu, in perfmon_validate_group() argument
165 fake_pmu->pmu.name = pmu->pmu.name; in perfmon_validate_group()
166 fake_pmu->n_counters = pmu->n_counters; in perfmon_validate_group()
206 if (event->attr.type != event->pmu->type) in perfmon_pmu_event_init()
216 if (event->pmu != &idxd->idxd_pmu->pmu) in perfmon_pmu_event_init()
448 static void perfmon_pmu_enable(struct pmu *pmu) in perfmon_pmu_enable() argument
450 struct idxd_device *idxd = pmu_to_idxd(pmu); in perfmon_pmu_enable()
455 static void perfmon_pmu_disable(struct pmu *pmu) in perfmon_pmu_disable() argument
457 struct idxd_device *idxd = pmu_to_idxd(pmu); in perfmon_pmu_disable()
480 idxd_pmu->pmu.name = idxd_pmu->name; in idxd_pmu_init()
481 idxd_pmu->pmu.attr_groups = perfmon_attr_groups; in idxd_pmu_init()
482 idxd_pmu->pmu.task_ctx_nr = perf_invalid_context; in idxd_pmu_init()
483 idxd_pmu->pmu.event_init = perfmon_pmu_event_init; in idxd_pmu_init()
484 idxd_pmu->pmu.pmu_enable = perfmon_pmu_enable, in idxd_pmu_init()
485 idxd_pmu->pmu.pmu_disable = perfmon_pmu_disable, in idxd_pmu_init()
486 idxd_pmu->pmu.add = perfmon_pmu_event_add; in idxd_pmu_init()
487 idxd_pmu->pmu.del = perfmon_pmu_event_del; in idxd_pmu_init()
488 idxd_pmu->pmu.start = perfmon_pmu_event_start; in idxd_pmu_init()
489 idxd_pmu->pmu.stop = perfmon_pmu_event_stop; in idxd_pmu_init()
490 idxd_pmu->pmu.read = perfmon_pmu_event_update; in idxd_pmu_init()
491 idxd_pmu->pmu.capabilities = PERF_PMU_CAP_NO_EXCLUDE; in idxd_pmu_init()
492 idxd_pmu->pmu.module = THIS_MODULE; in idxd_pmu_init()
501 perf_pmu_unregister(&idxd->idxd_pmu->pmu); in perfmon_pmu_remove()
539 perf_pmu_migrate_context(&idxd_pmu->pmu, cpu, target); in perf_event_cpu_offline()
627 rc = perf_pmu_register(&idxd_pmu->pmu, idxd_pmu->name, -1); in perfmon_pmu_init()
633 perf_pmu_unregister(&idxd->idxd_pmu->pmu); in perfmon_pmu_init()