Home
last modified time | relevance | path

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

/drivers/perf/
Darm_pmuv3.c275 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in armv8pmu_event_attr_is_visible() local
281 test_bit(pmu_attr->id, cpu_pmu->pmceid_bitmap)) in armv8pmu_event_attr_is_visible()
288 test_bit(id, cpu_pmu->pmceid_ext_bitmap)) in armv8pmu_event_attr_is_visible()
333 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in slots_show() local
334 u32 slots = cpu_pmu->reg_pmmir & ARMV8_PMU_SLOTS_MASK; in slots_show()
345 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in bus_slots_show() local
346 u32 bus_slots = (cpu_pmu->reg_pmmir >> ARMV8_PMU_BUS_SLOTS_SHIFT) in bus_slots_show()
358 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in bus_width_show() local
359 u32 bus_width = (cpu_pmu->reg_pmmir >> ARMV8_PMU_BUS_WIDTH_SHIFT) in bus_width_show()
399 static bool armv8pmu_has_long_event(struct arm_pmu *cpu_pmu) in armv8pmu_has_long_event() argument
[all …]
Dapple_m1_cpu_pmu.c382 static irqreturn_t m1_pmu_handle_irq(struct arm_pmu *cpu_pmu) in m1_pmu_handle_irq() argument
384 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in m1_pmu_handle_irq()
399 cpu_pmu->stop(cpu_pmu); in m1_pmu_handle_irq()
403 for (idx = 0; idx < cpu_pmu->num_events; idx++) { in m1_pmu_handle_irq()
419 cpu_pmu->start(cpu_pmu); in m1_pmu_handle_irq()
475 static void m1_pmu_start(struct arm_pmu *cpu_pmu) in m1_pmu_start() argument
480 static void m1_pmu_stop(struct arm_pmu *cpu_pmu) in m1_pmu_stop() argument
539 static int m1_pmu_init(struct arm_pmu *cpu_pmu, u32 flags) in m1_pmu_init() argument
541 cpu_pmu->handle_irq = m1_pmu_handle_irq; in m1_pmu_init()
542 cpu_pmu->enable = m1_pmu_enable_event; in m1_pmu_init()
[all …]
Darm_pmu.c808 static int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_register() argument
810 cpu_pmu->cpu_pm_nb.notifier_call = cpu_pm_pmu_notify; in cpu_pm_pmu_register()
811 return cpu_pm_register_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_register()
814 static void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_unregister() argument
816 cpu_pm_unregister_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_unregister()
819 static inline int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) { return 0; } in cpu_pm_pmu_register() argument
820 static inline void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) { } in cpu_pm_pmu_unregister() argument
823 static int cpu_pmu_init(struct arm_pmu *cpu_pmu) in cpu_pmu_init() argument
828 &cpu_pmu->node); in cpu_pmu_init()
832 err = cpu_pm_pmu_register(cpu_pmu); in cpu_pmu_init()
[all …]