/openbmc/linux/drivers/perf/ |
H A D | arm_pmu_platform.c | 48 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 D | arm_pmu.c | 316 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() 322 armpmu->clear_event_idx(hw_events, event); in armpmu_del() 332 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_add() local 341 idx = armpmu->get_event_idx(hw_events, event); in armpmu_add() 351 hw_events->events[idx] = event; in armpmu_add() 364 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument 387 return armpmu->get_event_idx(hw_events, event) >= 0; in validate_event() 525 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_enable() local 526 bool enabled = !bitmap_empty(hw_events->used_mask, armpmu->num_events); in armpmu_enable() [all …]
|
H A D | arm-cci.c | 105 struct cci_pmu_hw_events hw_events; member 642 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events; in cci_pmu_sync_counters() 646 for_each_set_bit(i, cci_pmu->hw_events.used_mask, cci_pmu->num_cntrs) { in cci_pmu_sync_counters() 896 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events; in __pmu_write_counters() 961 struct perf_event *event = cci_pmu->hw_events.events[i]; in cci5xx_pmu_write_counters() 1027 struct cci_pmu_hw_events *events = &cci_pmu->hw_events; in pmu_handle_irq() 1095 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local 1096 bool enabled = !bitmap_empty(hw_events->used_mask, cci_pmu->num_cntrs); in cci_pmu_enable() 1102 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_enable() 1104 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_enable() [all …]
|
H A D | arm_dsu_pmu.c | 117 struct dsu_hw_events hw_events; member 299 static int dsu_pmu_get_event_idx(struct dsu_hw_events *hw_events, in dsu_pmu_get_event_idx() argument 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 403 struct perf_event *event = hw_events->events[i]; in dsu_pmu_handle_irq() 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 [all …]
|
H A D | arm_pmu_acpi.c | 272 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 D | riscv_pmu.c | 264 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_add() 288 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pmu_del() 400 pmu->hw_events = alloc_percpu_gfp(struct cpu_hw_events, GFP_KERNEL); in riscv_pmu_alloc() 401 if (!pmu->hw_events) { in riscv_pmu_alloc() 407 cpuc = per_cpu_ptr(pmu->hw_events, cpuid); in riscv_pmu_alloc()
|
H A D | riscv_pmu_sbi.c | 345 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx() 404 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx() 619 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs() 636 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_start_overflow_mask() 767 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_starting_cpu() 807 struct cpu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_sbi_setup_irqs() local 837 ret = request_percpu_irq(riscv_pmu_irq, pmu_sbi_ovf_handler, "riscv-pmu", hw_events); in pmu_sbi_setup_irqs() 851 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pm_pmu_notify()
|
H A D | cxl_pmu.c | 98 struct perf_event **hw_events; member 755 info->hw_events[idx] = event; in cxl_pmu_event_add() 771 info->hw_events[hwc->idx] = NULL; in cxl_pmu_event_del() 791 struct perf_event *event = info->hw_events[i]; in cxl_pmu_irq() 845 info->hw_events = devm_kcalloc(dev, sizeof(*info->hw_events), in cxl_pmu_probe() 847 if (!info->hw_events) in cxl_pmu_probe()
|
H A D | apple_m1_cpu_pmu.c | 384 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in m1_pmu_handle_irq()
|
H A D | arm_pmuv3.c | 709 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_enable_user_access() 770 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_handle_irq()
|
/openbmc/linux/drivers/perf/arm_cspmu/ |
H A D | arm_cspmu.c | 533 disabled = bitmap_empty(cspmu->hw_events.used_ctrs, in arm_cspmu_enable() 549 static int arm_cspmu_get_event_idx(struct arm_cspmu_hw_events *hw_events, in arm_cspmu_get_event_idx() argument 559 hw_events->used_ctrs)) in arm_cspmu_get_event_idx() 570 idx = find_first_zero_bit(hw_events->used_ctrs, in arm_cspmu_get_event_idx() 574 hw_events->used_ctrs, in arm_cspmu_get_event_idx() 579 idx = find_first_zero_bit(hw_events->used_ctrs, in arm_cspmu_get_event_idx() 586 set_bit(idx, hw_events->used_ctrs); in arm_cspmu_get_event_idx() 592 struct arm_cspmu_hw_events *hw_events, in arm_cspmu_validate_event() argument 602 return (arm_cspmu_get_event_idx(hw_events, event) >= 0); in arm_cspmu_validate_event() 860 struct arm_cspmu_hw_events *hw_events = &cspmu->hw_events; in arm_cspmu_add() local [all …]
|
H A D | arm_cspmu.h | 135 struct arm_cspmu_hw_events hw_events; member
|
/openbmc/linux/arch/arm/kernel/ |
H A D | perf_event_xscale.c | 149 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()
|
H A D | perf_event_v6.c | 274 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()
|
H A D | perf_event_v7.c | 876 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()
|
/openbmc/linux/arch/csky/kernel/ |
H A D | perf_event.c | 41 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() 1106 struct pmu_hw_events *cpuc = this_cpu_ptr(csky_pmu.hw_events); in csky_pmu_handle_irq() 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() [all …]
|
/openbmc/linux/include/linux/perf/ |
H A D | arm_pmu.h | 93 int (*get_event_idx)(struct pmu_hw_events *hw_events, 95 void (*clear_event_idx)(struct pmu_hw_events *hw_events, 112 struct pmu_hw_events __percpu *hw_events; member
|
H A D | riscv_pmu.h | 63 struct cpu_hw_events __percpu *hw_events; member
|
/openbmc/linux/drivers/perf/hisilicon/ |
H A D | hisi_pcie_pmu.c | 66 struct perf_event *hw_events[HISI_PCIE_MAX_COUNTERS]; member 407 sibling = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_find_related_event() 429 if (!pcie_pmu->hw_events[idx]) in hisi_pcie_pmu_get_event_idx() 589 pcie_pmu->hw_events[idx] = event; in hisi_pcie_pmu_add() 606 pcie_pmu->hw_events[hwc->idx] = NULL; in hisi_pcie_pmu_del() 616 if (pcie_pmu->hw_events[num]) in hisi_pcie_pmu_enable() 648 event = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_irq()
|
H A D | hisi_uncore_pmu.c | 149 event = hisi_pmu->pmu_events.hw_events[idx]; in hisi_uncore_pmu_isr() 367 hisi_pmu->pmu_events.hw_events[idx] = event; in hisi_uncore_pmu_add() 384 hisi_pmu->pmu_events.hw_events[hwc->idx] = NULL; in hisi_uncore_pmu_del()
|
H A D | hisi_uncore_pmu.h | 79 struct perf_event *hw_events[HISI_MAX_COUNTERS]; member
|
H A D | hns3_pmu.c | 302 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() 1365 hns3_pmu->hw_events[idx] = event; in hns3_pmu_add() 1380 hns3_pmu->hw_events[hwc->idx] = NULL; in hns3_pmu_del()
|
/openbmc/linux/drivers/accel/habanalabs/gaudi2/ |
H A D | gaudi2P.h | 550 u32 hw_events[GAUDI2_EVENT_SIZE]; member
|
H A D | gaudi2.c | 3551 gaudi2->hw_events[gaudi2->num_of_valid_hw_events++] = gaudi2_irq_map_table[i].fc_id; in gaudi2_sw_init() 7009 irq_arr_size = gaudi2->num_of_valid_hw_events * sizeof(gaudi2->hw_events[0]); in gaudi2_compute_reset_late_init() 7010 return hl_fw_unmask_irq_arr(hdev, gaudi2->hw_events, irq_arr_size); in gaudi2_compute_reset_late_init()
|