Home
last modified time | relevance | path

Searched refs:hw_events (Results 1 – 23 of 23) sorted by relevance

/linux-6.3-rc2/drivers/perf/
A Darm_pmu_platform.c49 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_parse_percpu_irq() local
56 per_cpu(hw_events->irq, cpu) = irq; in pmu_parse_percpu_irq()
100 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_parse_irqs() local
145 if (per_cpu(hw_events->irq, cpu)) { in pmu_parse_irqs()
150 per_cpu(hw_events->irq, cpu) = irq; in pmu_parse_irqs()
159 struct pmu_hw_events __percpu *hw_events = armpmu->hw_events; in armpmu_request_irqs() local
163 int irq = per_cpu(hw_events->irq, cpu); in armpmu_request_irqs()
178 struct pmu_hw_events __percpu *hw_events = armpmu->hw_events; in armpmu_free_irqs() local
181 int irq = per_cpu(hw_events->irq, cpu); in armpmu_free_irqs()
A Darm_pmu.c314 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_del() local
319 hw_events->events[idx] = NULL; in armpmu_del()
330 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_add() local
349 hw_events->events[idx] = event; in armpmu_add()
523 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_enable() local
686 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in armpmu_get_cpu_irq() local
735 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in cpu_pm_pmu_setup() local
740 event = hw_events->events[idx]; in cpu_pm_pmu_setup()
768 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in cpu_pm_pmu_notify() local
855 if (!pmu->hw_events) { in armpmu_alloc()
[all …]
A Darm-cci.c108 struct cci_pmu_hw_events hw_events; member
1098 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local
1114 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_disable() local
1135 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_start() local
1192 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_add() local
1202 hw_events->events[idx] = event; in cci_pmu_add()
1217 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_del() local
1222 hw_events->events[idx] = NULL; in cci_pmu_del()
1223 clear_bit(idx, hw_events->used_mask); in cci_pmu_del()
1630 if (!cci_pmu->hw_events.events) in cci_pmu_alloc()
[all …]
A Darm_dsu_pmu.c117 struct dsu_hw_events hw_events; member
305 unsigned long *used_mask = hw_events->used_mask; in dsu_pmu_get_event_idx()
316 set_bit(idx, hw_events->used_mask); in dsu_pmu_get_event_idx()
395 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; in dsu_pmu_handle_irq() local
443 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; in dsu_pmu_add() local
451 idx = dsu_pmu_get_event_idx(hw_events, event); in dsu_pmu_add()
456 hw_events->events[idx] = event; in dsu_pmu_add()
469 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; in dsu_pmu_del() local
474 hw_events->events[idx] = NULL; in dsu_pmu_del()
475 clear_bit(idx, hw_events->used_mask); in dsu_pmu_del()
[all …]
A Darm_pmu_acpi.c214 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_irq_matches() local
221 int other_irq = per_cpu(hw_events->irq, cpu); in pmu_irq_matches()
245 struct pmu_hw_events __percpu *hw_events; in arm_pmu_acpi_associate_pmu_cpu() local
246 hw_events = pmu->hw_events; in arm_pmu_acpi_associate_pmu_cpu()
247 per_cpu(hw_events->irq, cpu) = irq; in arm_pmu_acpi_associate_pmu_cpu()
A Driscv_pmu.c200 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_add()
224 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_del()
296 pmu->hw_events = alloc_percpu_gfp(struct cpu_hw_events, GFP_KERNEL); in riscv_pmu_alloc()
297 if (!pmu->hw_events) { in riscv_pmu_alloc()
303 cpuc = per_cpu_ptr(pmu->hw_events, cpuid); in riscv_pmu_alloc()
A Driscv_pmu_sbi.c329 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx()
372 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx()
561 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs()
578 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_start_overflow_mask()
704 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_starting_cpu()
741 struct cpu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_sbi_setup_irqs() local
784 ret = request_percpu_irq(riscv_pmu_irq, pmu_sbi_ovf_handler, "riscv-pmu", hw_events); in pmu_sbi_setup_irqs()
798 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pm_pmu_notify()
A Dapple_m1_cpu_pmu.c384 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in m1_pmu_handle_irq()
/linux-6.3-rc2/drivers/perf/arm_cspmu/
A Darm_cspmu.c565 hw_events->used_ctrs)) in arm_cspmu_get_event_idx()
580 hw_events->used_ctrs, in arm_cspmu_get_event_idx()
592 set_bit(idx, hw_events->used_ctrs); in arm_cspmu_get_event_idx()
863 struct arm_cspmu_hw_events *hw_events = &cspmu->hw_events; in arm_cspmu_add() local
875 hw_events->events[idx] = event; in arm_cspmu_add()
892 struct arm_cspmu_hw_events *hw_events = &cspmu->hw_events; in arm_cspmu_del() local
898 hw_events->events[idx] = NULL; in arm_cspmu_del()
900 clear_bit(idx, hw_events->used_ctrs); in arm_cspmu_del()
984 cspmu->hw_events.events = in arm_cspmu_init_mmio()
988 if (!cspmu->hw_events.events) in arm_cspmu_init_mmio()
[all …]
A Darm_cspmu.h136 struct arm_cspmu_hw_events hw_events; member
/linux-6.3-rc2/arch/arm/kernel/
A Dperf_event_xscale.c149 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_handle_irq()
209 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_enable_event()
245 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_disable_event()
304 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_start()
316 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_stop()
501 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_handle_irq()
555 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_enable_event()
601 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_disable_event()
667 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_start()
679 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_stop()
A Dperf_event_v6.c274 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_enable_event()
310 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_handle_irq()
366 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_start()
378 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_stop()
425 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_disable_event()
460 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv6mpcore_pmu_disable_event()
A Dperf_event_v7.c876 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_enable_event()
922 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_disable_event()
953 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_handle_irq()
1013 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_start()
1024 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_stop()
1499 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in krait_pmu_disable_event()
1525 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in krait_pmu_enable_event()
1832 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in scorpion_pmu_disable_event()
1858 struct pmu_hw_events *events = this_cpu_ptr(cpu_pmu->hw_events); in scorpion_pmu_enable_event()
/linux-6.3-rc2/arch/csky/kernel/
A Dperf_event.c41 struct pmu_hw_events __percpu *hw_events; member
1075 struct pmu_hw_events *hw_events = this_cpu_ptr(csky_pmu.hw_events); in csky_pmu_del() local
1080 hw_events->events[hwc->idx] = NULL; in csky_pmu_del()
1088 struct pmu_hw_events *hw_events = this_cpu_ptr(csky_pmu.hw_events); in csky_pmu_add() local
1091 hw_events->events[hwc->idx] = event; in csky_pmu_add()
1178 this_cpu_ptr(csky_pmu.hw_events)); in csky_pmu_request_irq()
1195 free_percpu_irq(irq, this_cpu_ptr(csky_pmu.hw_events)); in csky_pmu_free_irq()
1200 csky_pmu.hw_events = alloc_percpu_gfp(struct pmu_hw_events, in init_hw_perf_events()
1202 if (!csky_pmu.hw_events) { in init_hw_perf_events()
1327 free_percpu(csky_pmu.hw_events); in csky_pmu_device_probe()
[all …]
/linux-6.3-rc2/include/linux/perf/
A Darm_pmu.h91 int (*get_event_idx)(struct pmu_hw_events *hw_events,
93 void (*clear_event_idx)(struct pmu_hw_events *hw_events,
110 struct pmu_hw_events __percpu *hw_events; member
A Driscv_pmu.h59 struct cpu_hw_events __percpu *hw_events; member
/linux-6.3-rc2/drivers/perf/hisilicon/
A Dhisi_pcie_pmu.c66 struct perf_event *hw_events[HISI_PCIE_MAX_COUNTERS]; member
394 sibling = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_find_related_event()
416 if (!pcie_pmu->hw_events[idx]) in hisi_pcie_pmu_get_event_idx()
562 pcie_pmu->hw_events[idx] = event; in hisi_pcie_pmu_add()
579 pcie_pmu->hw_events[hwc->idx] = NULL; in hisi_pcie_pmu_del()
589 if (pcie_pmu->hw_events[num]) in hisi_pcie_pmu_enable()
621 event = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_irq()
A Dhisi_uncore_pmu.c150 event = hisi_pmu->pmu_events.hw_events[idx]; in hisi_uncore_pmu_isr()
365 hisi_pmu->pmu_events.hw_events[idx] = event; in hisi_uncore_pmu_add()
382 hisi_pmu->pmu_events.hw_events[hwc->idx] = NULL; in hisi_uncore_pmu_del()
A Dhisi_uncore_pmu.h66 struct perf_event *hw_events[HISI_MAX_COUNTERS]; member
A Dhns3_pmu.c302 struct perf_event *hw_events[HNS3_PMU_MAX_HW_EVENTS]; member
790 sibling = hns3_pmu->hw_events[idx]; in hns3_pmu_find_related_event_idx()
817 if (!hns3_pmu->hw_events[idx]) in hns3_pmu_get_event_idx()
1353 hns3_pmu->hw_events[idx] = event; in hns3_pmu_add()
1368 hns3_pmu->hw_events[hwc->idx] = NULL; in hns3_pmu_del()
/linux-6.3-rc2/drivers/accel/habanalabs/gaudi2/
A Dgaudi2P.h531 u32 hw_events[GAUDI2_EVENT_SIZE]; member
A Dgaudi2.c3140 gaudi2->hw_events[gaudi2->num_of_valid_hw_events++] = gaudi2_irq_map_table[i].fc_id; in gaudi2_sw_init()
6381 irq_arr_size = gaudi2->num_of_valid_hw_events * sizeof(gaudi2->hw_events[0]); in gaudi2_compute_reset_late_init()
6382 return hl_fw_unmask_irq_arr(hdev, gaudi2->hw_events, irq_arr_size); in gaudi2_compute_reset_late_init()
/linux-6.3-rc2/arch/arm64/kernel/
A Dperf_event.c752 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_enable_user_access()
835 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_handle_irq()

Completed in 85 milliseconds