Searched refs:cpu_pmu (Results 1 – 5 of 5) sorted by relevance
/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_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 …]
|
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 …]
|
/arch/arm64/kernel/ |
D | perf_event.c | 297 struct arm_pmu *cpu_pmu = container_of(pmu, struct arm_pmu, pmu); in armv8pmu_event_attr_is_visible() local 303 test_bit(pmu_attr->id, cpu_pmu->pmceid_bitmap)) in armv8pmu_event_attr_is_visible() 308 test_bit(pmu_attr->id, cpu_pmu->pmceid_ext_bitmap)) in armv8pmu_event_attr_is_visible() 344 #define ARMV8_IDX_COUNTER_LAST(cpu_pmu) \ argument 345 (ARMV8_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1) 389 static inline int armv8pmu_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv8pmu_counter_valid() argument 392 idx <= ARMV8_IDX_COUNTER_LAST(cpu_pmu); in armv8pmu_counter_valid() 426 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_read_counter() local 431 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_read_counter() 463 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_write_counter() local [all …]
|
/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 …]
|