Searched refs:pmu_entry (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_pmu.c | 483 static int init_pmu_entry_by_type_and_add(struct amdgpu_pmu_entry *pmu_entry, in init_pmu_entry_by_type_and_add() argument 487 &pmu_entry->fmt_attr_group, in init_pmu_entry_by_type_and_add() 488 &pmu_entry->evt_attr_group, in init_pmu_entry_by_type_and_add() 494 pmu_entry->pmu = (struct pmu){ in init_pmu_entry_by_type_and_add() 504 ret = amdgpu_pmu_alloc_pmu_attrs(&pmu_entry->fmt_attr_group, in init_pmu_entry_by_type_and_add() 505 &pmu_entry->fmt_attr, in init_pmu_entry_by_type_and_add() 506 &pmu_entry->evt_attr_group, in init_pmu_entry_by_type_and_add() 507 &pmu_entry->evt_attr, in init_pmu_entry_by_type_and_add() 513 amdgpu_pmu_create_attrs(&pmu_entry->fmt_attr_group, pmu_entry in init_pmu_entry_by_type_and_add() 600 struct amdgpu_pmu_entry *pmu_entry; create_pmu_entry() local 623 struct amdgpu_pmu_entry *pmu_entry, *pmu_entry_df; amdgpu_pmu_init() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_pmu.c | 207 struct amdgpu_pmu_entry *pmu_entry; in init_pmu_by_type() local 210 pmu_entry = kzalloc(sizeof(struct amdgpu_pmu_entry), GFP_KERNEL); in init_pmu_by_type() 212 if (!pmu_entry) in init_pmu_by_type() 215 pmu_entry->adev = adev; in init_pmu_by_type() 216 pmu_entry->pmu = (struct pmu){ in init_pmu_by_type() 226 pmu_entry->pmu.attr_groups = attr_groups; in init_pmu_by_type() 227 pmu_entry->pmu_perf_type = pmu_perf_type; in init_pmu_by_type() 231 ret = perf_pmu_register(&pmu_entry->pmu, pmu_name, -1); in init_pmu_by_type() 234 kfree(pmu_entry); in init_pmu_by_type() 242 list_add_tail(&pmu_entry in init_pmu_by_type() [all...] |
Completed in 2 milliseconds