Lines Matching refs:pmu
50 struct pmu pmu; member
214 if (event->attr.type != event->pmu->type) in amdgpu_perf_event_init()
228 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_start()
230 pmu); in amdgpu_perf_start()
266 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_read()
268 pmu); in amdgpu_perf_read()
293 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_stop()
295 pmu); in amdgpu_perf_stop()
325 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_add()
327 pmu); in amdgpu_perf_add()
371 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_del()
373 pmu); in amdgpu_perf_del()
476 pmu_entry->pmu = (struct pmu){ in init_pmu_entry_by_type_and_add()
519 pmu_entry->pmu.attr_groups = kmemdup(attr_groups, sizeof(attr_groups), in init_pmu_entry_by_type_and_add()
522 if (!pmu_entry->pmu.attr_groups) { in init_pmu_entry_by_type_and_add()
530 ret = perf_pmu_register(&pmu_entry->pmu, pmu_name, -1); in init_pmu_entry_by_type_and_add()
546 kfree(pmu_entry->pmu.attr_groups); in init_pmu_entry_by_type_and_add()
567 perf_pmu_unregister(&pe->pmu); in amdgpu_pmu_fini()
568 kfree(pe->pmu.attr_groups); in amdgpu_pmu_fini()