Home
last modified time | relevance | path

Searched refs:pmu_ptr (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/arch/powerpc/platforms/powernv/
Dopal-imc.c52 struct imc_pmu *pmu_ptr) in export_imc_mode_and_cmd() argument
57 struct imc_mem_info *ptr = pmu_ptr->mem_info; in export_imc_mode_and_cmd()
84 struct imc_pmu *pmu_ptr, in imc_get_mem_addr_nest() argument
112 pmu_ptr->mem_info = kcalloc(nr_chips + 1, sizeof(*pmu_ptr->mem_info), in imc_get_mem_addr_nest()
114 if (!pmu_ptr->mem_info) in imc_get_mem_addr_nest()
118 pmu_ptr->mem_info[i].id = chipid_arr[i]; in imc_get_mem_addr_nest()
120 pmu_ptr->mem_info[i].vbase = phys_to_virt(baddr); in imc_get_mem_addr_nest()
123 pmu_ptr->imc_counter_mmaped = true; in imc_get_mem_addr_nest()
142 struct imc_pmu *pmu_ptr; in imc_pmu_create() local
150 pmu_ptr = kzalloc(sizeof(*pmu_ptr), GFP_KERNEL); in imc_pmu_create()
[all …]
/Linux-v5.10/arch/powerpc/perf/
Dimc-pmu.c1608 static void imc_common_mem_free(struct imc_pmu *pmu_ptr) in imc_common_mem_free() argument
1610 if (pmu_ptr->attr_groups[IMC_EVENT_ATTR]) in imc_common_mem_free()
1611 kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]->attrs); in imc_common_mem_free()
1612 kfree(pmu_ptr->attr_groups[IMC_EVENT_ATTR]); in imc_common_mem_free()
1621 static void imc_common_cpuhp_mem_free(struct imc_pmu *pmu_ptr) in imc_common_cpuhp_mem_free() argument
1623 if (pmu_ptr->domain == IMC_DOMAIN_NEST) { in imc_common_cpuhp_mem_free()
1638 if (pmu_ptr->domain == IMC_DOMAIN_CORE) { in imc_common_cpuhp_mem_free()
1644 if (pmu_ptr->domain == IMC_DOMAIN_THREAD) { in imc_common_cpuhp_mem_free()
1649 if (pmu_ptr->domain == IMC_DOMAIN_TRACE) { in imc_common_cpuhp_mem_free()
1669 static int imc_mem_init(struct imc_pmu *pmu_ptr, struct device_node *parent, in imc_mem_init() argument
[all …]
/Linux-v5.10/arch/powerpc/include/asm/
Dimc-pmu.h168 struct imc_pmu *pmu_ptr, int pmu_id);