Searched refs:cpu_pmu (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.10/arch/arm/kernel/ |
D | perf_event_v6.c | 272 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv6pmu_enable_event() local 274 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_enable_event() 306 armv6pmu_handle_irq(struct arm_pmu *cpu_pmu) in armv6pmu_handle_irq() argument 310 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_handle_irq() 326 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq() 348 cpu_pmu->disable(event); in armv6pmu_handle_irq() 363 static void armv6pmu_start(struct arm_pmu *cpu_pmu) in armv6pmu_start() argument 366 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_start() 375 static void armv6pmu_stop(struct arm_pmu *cpu_pmu) in armv6pmu_stop() argument 378 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop() [all …]
|
D | perf_event_v7.c | 656 #define ARMV7_IDX_COUNTER_LAST(cpu_pmu) \ argument 657 (ARMV7_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) 728 static inline int armv7_pmnc_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv7_pmnc_counter_valid() argument 731 idx <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); in armv7_pmnc_counter_valid() 748 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_read_counter() local 753 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_read_counter() 768 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_write_counter() local 772 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_write_counter() 833 static void armv7_pmnc_dump_regs(struct arm_pmu *cpu_pmu) in armv7_pmnc_dump_regs() argument 859 cnt <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); cnt++) { in armv7_pmnc_dump_regs() [all …]
|
D | perf_event_xscale.c | 145 xscale1pmu_handle_irq(struct arm_pmu *cpu_pmu) in xscale1pmu_handle_irq() argument 149 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_handle_irq() 173 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in xscale1pmu_handle_irq() 190 cpu_pmu->disable(event); in xscale1pmu_handle_irq() 207 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_enable_event() local 209 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_enable_event() 243 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in xscale1pmu_disable_event() local 245 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_disable_event() 301 static void xscale1pmu_start(struct arm_pmu *cpu_pmu) in xscale1pmu_start() argument 304 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start() [all …]
|
/Linux-v5.10/arch/arm64/kernel/ |
D | perf_event.c | 263 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in armv8pmu_event_attr_is_visible() local 269 test_bit(pmu_attr->id, cpu_pmu->pmceid_bitmap)) in armv8pmu_event_attr_is_visible() 276 test_bit(id, cpu_pmu->pmceid_ext_bitmap)) in armv8pmu_event_attr_is_visible() 312 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in slots_show() local 313 u32 slots = cpu_pmu->reg_pmmir & ARMV8_PMU_SLOTS_MASK; in slots_show() 342 static bool armv8pmu_has_long_event(struct arm_pmu *cpu_pmu) in armv8pmu_has_long_event() argument 344 return (cpu_pmu->pmuver >= ID_AA64DFR0_PMUVER_8_5); in armv8pmu_has_long_event() 356 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_event_is_chained() local 360 !armv8pmu_has_long_event(cpu_pmu) && in armv8pmu_event_is_chained() 489 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_event_needs_bias() local [all …]
|
/Linux-v5.10/arch/nds32/kernel/ |
D | perf_event_cpu.c | 31 static struct nds32_pmu *cpu_pmu; variable 34 static void nds32_pmu_start(struct nds32_pmu *cpu_pmu); 35 static void nds32_pmu_stop(struct nds32_pmu *cpu_pmu); 229 struct nds32_pmu *cpu_pmu = (struct nds32_pmu *)dev; in nds32_pmu_handle_irq() local 230 struct pmu_hw_events *cpuc = cpu_pmu->get_hw_events(); in nds32_pmu_handle_irq() 249 nds32_pmu_stop(cpu_pmu); in nds32_pmu_handle_irq() 250 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in nds32_pmu_handle_irq() 272 cpu_pmu->disable(event); in nds32_pmu_handle_irq() 274 nds32_pmu_start(cpu_pmu); in nds32_pmu_handle_irq() 287 static inline int nds32_pfm_counter_valid(struct nds32_pmu *cpu_pmu, int idx) in nds32_pfm_counter_valid() argument [all …]
|
/Linux-v5.10/drivers/perf/ |
D | arm_pmu.c | 849 static int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_register() argument 851 cpu_pmu->cpu_pm_nb.notifier_call = cpu_pm_pmu_notify; in cpu_pm_pmu_register() 852 return cpu_pm_register_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_register() 855 static void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) in cpu_pm_pmu_unregister() argument 857 cpu_pm_unregister_notifier(&cpu_pmu->cpu_pm_nb); in cpu_pm_pmu_unregister() 860 static inline int cpu_pm_pmu_register(struct arm_pmu *cpu_pmu) { return 0; } in cpu_pm_pmu_register() argument 861 static inline void cpu_pm_pmu_unregister(struct arm_pmu *cpu_pmu) { } in cpu_pm_pmu_unregister() argument 864 static int cpu_pmu_init(struct arm_pmu *cpu_pmu) in cpu_pmu_init() argument 869 &cpu_pmu->node); in cpu_pmu_init() 873 err = cpu_pm_pmu_register(cpu_pmu); in cpu_pmu_init() [all …]
|
/Linux-v5.10/arch/arm64/kvm/ |
D | pmu-emul.c | 476 struct arm_pmu *cpu_pmu = to_arm_pmu(perf_event->pmu); in kvm_pmu_perf_overflow() local 481 cpu_pmu->pmu.stop(perf_event, PERF_EF_UPDATE); in kvm_pmu_perf_overflow() 507 cpu_pmu->pmu.start(perf_event, PERF_EF_RELOAD); in kvm_pmu_perf_overflow()
|
/Linux-v5.10/tools/perf/util/ |
D | header.c | 1435 struct perf_pmu *cpu_pmu = perf_pmu__find("cpu"); in write_cpu_pmu_caps() local 1440 if (!cpu_pmu) in write_cpu_pmu_caps() 1443 nr_caps = perf_pmu__caps_parse(cpu_pmu); in write_cpu_pmu_caps() 1451 list_for_each_entry(caps, &cpu_pmu->caps, list) { in write_cpu_pmu_caps()
|