Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/perf/
H A Darm_pmu_platform.c48 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_parse_percpu_irq() local
55 per_cpu(hw_events->irq, cpu) = irq; in pmu_parse_percpu_irq()
99 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_parse_irqs() local
144 if (per_cpu(hw_events->irq, cpu)) { in pmu_parse_irqs()
149 per_cpu(hw_events->irq, cpu) = irq; in pmu_parse_irqs()
158 struct pmu_hw_events __percpu *hw_events = armpmu->hw_events; in armpmu_request_irqs() local
162 int irq = per_cpu(hw_events->irq, cpu); in armpmu_request_irqs()
177 struct pmu_hw_events __percpu *hw_events = armpmu->hw_events; in armpmu_free_irqs() local
180 int irq = per_cpu(hw_events->irq, cpu); in armpmu_free_irqs()
H A Darm_pmu.c316 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_del() local
321 hw_events->events[idx] = NULL; in armpmu_del()
332 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()
522 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_enable() local
685 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in armpmu_get_cpu_irq() local
739 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in cpu_pm_pmu_setup() local
744 event = hw_events->events[idx]; in cpu_pm_pmu_setup()
772 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in cpu_pm_pmu_notify() local
859 if (!pmu->hw_events) { in armpmu_alloc()
[all …]
H A Dstarfive_starlink_pmu.c293 struct starlink_hw_events *hw_events = in starlink_pmu_add() local
319 hw_events->events[idx] = event; in starlink_pmu_add()
333 struct starlink_hw_events *hw_events = in starlink_pmu_del() local
338 hw_events->events[hwc->idx] = NULL; in starlink_pmu_del()
400 struct starlink_hw_events *hw_events = in starlink_pmu_handle_irq() local
451 struct starlink_hw_events *hw_events = in starlink_pmu_pm_notify() local
462 event = hw_events->events[idx]; in starlink_pmu_pm_notify()
511 struct starlink_hw_events *hw_events; in starlink_pmu_probe() local
526 if (!starlink_pmu->hw_events) { in starlink_pmu_probe()
532 hw_events = per_cpu_ptr(starlink_pmu->hw_events, cpuid); in starlink_pmu_probe()
[all …]
H A Darm-cci.c105 struct cci_pmu_hw_events hw_events; member
1085 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local
1101 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_disable() local
1122 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_start() local
1179 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_add() local
1189 hw_events->events[idx] = event; in cci_pmu_add()
1204 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_del() local
1209 hw_events->events[idx] = NULL; in cci_pmu_del()
1210 clear_bit(idx, hw_events->used_mask); in cci_pmu_del()
1618 if (!cci_pmu->hw_events.events) in cci_pmu_alloc()
[all …]
H A Darm_dsu_pmu.c117 struct dsu_hw_events hw_events; member
287 unsigned long *used_mask = hw_events->used_mask; in dsu_pmu_get_event_idx()
298 set_bit(idx, hw_events->used_mask); in dsu_pmu_get_event_idx()
377 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; in dsu_pmu_handle_irq() local
425 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; in dsu_pmu_add() local
433 idx = dsu_pmu_get_event_idx(hw_events, event); in dsu_pmu_add()
438 hw_events->events[idx] = event; in dsu_pmu_add()
451 struct dsu_hw_events *hw_events = &dsu_pmu->hw_events; in dsu_pmu_del() local
456 hw_events->events[idx] = NULL; in dsu_pmu_del()
457 clear_bit(idx, hw_events->used_mask); in dsu_pmu_del()
[all …]
H A Darm_pmu_acpi.c272 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_irq_matches() local
279 int other_irq = per_cpu(hw_events->irq, cpu); in pmu_irq_matches()
303 struct pmu_hw_events __percpu *hw_events; in arm_pmu_acpi_associate_pmu_cpu() local
304 hw_events = pmu->hw_events; in arm_pmu_acpi_associate_pmu_cpu()
305 per_cpu(hw_events->irq, cpu) = irq; in arm_pmu_acpi_associate_pmu_cpu()
H A Driscv_pmu.c260 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_add()
284 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_del()
396 pmu->hw_events = alloc_percpu_gfp(struct cpu_hw_events, GFP_KERNEL); in riscv_pmu_alloc()
397 if (!pmu->hw_events) { in riscv_pmu_alloc()
403 cpuc = per_cpu_ptr(pmu->hw_events, cpuid); in riscv_pmu_alloc()
H A Driscv_pmu_sbi.c406 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx()
465 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx()
573 struct cpu_hw_events *cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu); in pmu_sbi_snapshot_free()
623 cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu); in pmu_sbi_snapshot_setup()
658 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_ctr_read()
739 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_ctr_stop()
824 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs()
943 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_start_overflow_mask()
1061 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_starting_cpu()
1105 struct cpu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_sbi_setup_irqs() local
[all …]
H A Dcxl_pmu.c98 struct perf_event **hw_events; member
747 info->hw_events[idx] = event; in cxl_pmu_event_add()
763 info->hw_events[hwc->idx] = NULL; in cxl_pmu_event_del()
783 struct perf_event *event = info->hw_events[i]; in cxl_pmu_irq()
837 info->hw_events = devm_kcalloc(dev, sizeof(*info->hw_events), in cxl_pmu_probe()
839 if (!info->hw_events) in cxl_pmu_probe()
H A Darm_xscale_pmu.c149 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale1pmu_handle_irq()
488 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in xscale2pmu_handle_irq()
H A Darm_v6_pmu.c242 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv6pmu_handle_irq()
H A Dapple_m1_cpu_pmu.c446 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in m1_pmu_handle_irq()
H A Darm_pmuv3.c771 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_enable_user_access()
839 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_handle_irq()
H A Darm_v7_pmu.c892 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv7pmu_handle_irq()
/linux-6.15/drivers/perf/arm_cspmu/
H A Darm_cspmu.c522 hw_events->used_ctrs)) in arm_cspmu_get_event_idx()
537 hw_events->used_ctrs, in arm_cspmu_get_event_idx()
555 set_bit(idx, hw_events->used_ctrs); in arm_cspmu_get_event_idx()
832 struct arm_cspmu_hw_events *hw_events = &cspmu->hw_events; in arm_cspmu_add() local
844 hw_events->events[idx] = event; in arm_cspmu_add()
861 struct arm_cspmu_hw_events *hw_events = &cspmu->hw_events; in arm_cspmu_del() local
867 hw_events->events[idx] = NULL; in arm_cspmu_del()
869 clear_bit(idx, hw_events->used_ctrs); in arm_cspmu_del()
952 cspmu->hw_events.events = in arm_cspmu_init_mmio()
956 if (!cspmu->hw_events.events) in arm_cspmu_init_mmio()
[all …]
H A Dampere_cspmu.c181 idx = find_first_bit(cspmu->hw_events.used_ctrs, in ampere_cspmu_validate_event()
188 curr = cspmu->hw_events.events[idx]; in ampere_cspmu_validate_event()
H A Darm_cspmu.h208 struct arm_cspmu_hw_events hw_events; member
/linux-6.15/arch/csky/kernel/
H 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.15/include/linux/perf/
H A Darm_pmu.h90 int (*get_event_idx)(struct pmu_hw_events *hw_events,
92 void (*clear_event_idx)(struct pmu_hw_events *hw_events,
109 struct pmu_hw_events __percpu *hw_events; member
H A Driscv_pmu.h71 struct cpu_hw_events __percpu *hw_events; member
/linux-6.15/drivers/perf/hisilicon/
H A Dhisi_pcie_pmu.c66 struct perf_event *hw_events[HISI_PCIE_MAX_COUNTERS]; member
430 sibling = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_get_event_idx()
590 if (!pcie_pmu->hw_events[idx]) { in hisi_pcie_pmu_add()
592 pcie_pmu->hw_events[idx] = event; in hisi_pcie_pmu_add()
607 pcie_pmu->hw_events[hwc->idx] = NULL; in hisi_pcie_pmu_del()
617 if (pcie_pmu->hw_events[num]) in hisi_pcie_pmu_enable()
649 event = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_irq()
H A Dhisi_uncore_pmu.c171 event = hisi_pmu->pmu_events.hw_events[idx]; in hisi_uncore_pmu_isr()
389 hisi_pmu->pmu_events.hw_events[idx] = event; in hisi_uncore_pmu_add()
406 hisi_pmu->pmu_events.hw_events[hwc->idx] = NULL; in hisi_uncore_pmu_del()
H A Dhisi_uncore_pmu.h79 struct perf_event *hw_events[HISI_MAX_COUNTERS]; member
H A Dhns3_pmu.c302 struct perf_event *hw_events[HNS3_PMU_MAX_HW_EVENTS]; member
780 sibling = hns3_pmu->hw_events[idx]; in hns3_pmu_find_related_event_idx()
807 if (!hns3_pmu->hw_events[idx]) in hns3_pmu_get_event_idx()
1355 hns3_pmu->hw_events[idx] = event; in hns3_pmu_add()
1370 hns3_pmu->hw_events[hwc->idx] = NULL; in hns3_pmu_del()
/linux-6.15/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2P.h547 u32 hw_events[GAUDI2_EVENT_SIZE]; member

12