Home
last modified time | relevance | path

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

/arch/arm/kernel/
Dperf_event_v6.c271 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv6pmu_enable_event() local
273 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_enable_event()
310 struct arm_pmu *cpu_pmu = (struct arm_pmu *)dev; in armv6pmu_handle_irq() local
311 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_handle_irq()
327 for (idx = 0; idx < cpu_pmu->num_events; ++idx) { in armv6pmu_handle_irq()
349 cpu_pmu->disable(event); in armv6pmu_handle_irq()
364 static void armv6pmu_start(struct arm_pmu *cpu_pmu) in armv6pmu_start() argument
367 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_start()
376 static void armv6pmu_stop(struct arm_pmu *cpu_pmu) in armv6pmu_stop() argument
379 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop()
[all …]
Dperf_event_xscale.c148 struct arm_pmu *cpu_pmu = (struct arm_pmu *)dev; in xscale1pmu_handle_irq() local
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()
295 static void xscale1pmu_start(struct arm_pmu *cpu_pmu) in xscale1pmu_start() argument
298 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start()
[all …]
Dperf_event_v7.c555 #define ARMV7_IDX_COUNTER_LAST(cpu_pmu) \ argument
556 (ARMV7_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1)
622 static inline int armv7_pmnc_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv7_pmnc_counter_valid() argument
625 idx <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); in armv7_pmnc_counter_valid()
642 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_read_counter() local
647 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_read_counter()
662 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv7pmu_write_counter() local
666 if (!armv7_pmnc_counter_valid(cpu_pmu, idx)) { in armv7pmu_write_counter()
727 static void armv7_pmnc_dump_regs(struct arm_pmu *cpu_pmu) in armv7_pmnc_dump_regs() argument
753 cnt <= ARMV7_IDX_COUNTER_LAST(cpu_pmu); cnt++) { in armv7_pmnc_dump_regs()
[all …]
/arch/arm64/kernel/
Dperf_event.c187 #define ARMV8_IDX_COUNTER_LAST(cpu_pmu) \ argument
188 (ARMV8_IDX_CYCLE_COUNTER + cpu_pmu->num_events - 1)
254 static inline int armv8pmu_counter_valid(struct arm_pmu *cpu_pmu, int idx) in armv8pmu_counter_valid() argument
257 idx <= ARMV8_IDX_COUNTER_LAST(cpu_pmu); in armv8pmu_counter_valid()
276 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_read_counter() local
281 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_read_counter()
294 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_write_counter() local
298 if (!armv8pmu_counter_valid(cpu_pmu, idx)) in armv8pmu_write_counter()
366 struct arm_pmu *cpu_pmu = to_arm_pmu(event->pmu); in armv8pmu_enable_event() local
367 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_enable_event()
[all …]