/linux-6.1.9/drivers/perf/ |
D | arm_pmu_platform.c | 49 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()
|
D | arm_pmu.c | 314 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() 320 armpmu->clear_event_idx(hw_events, event); in armpmu_del() 330 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_add() local 339 idx = armpmu->get_event_idx(hw_events, event); in armpmu_add() 349 hw_events->events[idx] = event; in armpmu_add() 362 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument 385 return armpmu->get_event_idx(hw_events, event) >= 0; in validate_event() 526 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_enable() local 527 bool enabled = !bitmap_empty(hw_events->used_mask, armpmu->num_events); in armpmu_enable() [all …]
|
D | arm-cci.c | 108 struct cci_pmu_hw_events hw_events; member 645 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events; in cci_pmu_sync_counters() 649 for_each_set_bit(i, cci_pmu->hw_events.used_mask, cci_pmu->num_cntrs) { in cci_pmu_sync_counters() 899 struct cci_pmu_hw_events *cci_hw = &cci_pmu->hw_events; in __pmu_write_counters() 964 struct perf_event *event = cci_pmu->hw_events.events[i]; in cci5xx_pmu_write_counters() 1030 struct cci_pmu_hw_events *events = &cci_pmu->hw_events; in pmu_handle_irq() 1098 struct cci_pmu_hw_events *hw_events = &cci_pmu->hw_events; in cci_pmu_enable() local 1099 bool enabled = !bitmap_empty(hw_events->used_mask, cci_pmu->num_cntrs); in cci_pmu_enable() 1105 raw_spin_lock_irqsave(&hw_events->pmu_lock, flags); in cci_pmu_enable() 1107 raw_spin_unlock_irqrestore(&hw_events->pmu_lock, flags); in cci_pmu_enable() [all …]
|
D | arm_pmu_acpi.c | 222 struct pmu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_irq_matches() local 229 int other_irq = per_cpu(hw_events->irq, cpu); in pmu_irq_matches() 257 struct pmu_hw_events __percpu *hw_events; in arm_pmu_acpi_cpu_starting() local 273 hw_events = pmu->hw_events; in arm_pmu_acpi_cpu_starting() 274 per_cpu(hw_events->irq, cpu) = irq; in arm_pmu_acpi_cpu_starting()
|
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 …]
|
D | riscv_pmu.c | 200 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()
|
D | riscv_pmu_sbi.c | 271 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx() 318 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx() 510 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs() 527 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_start_overflow_mask() 653 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_starting_cpu() 690 struct cpu_hw_events __percpu *hw_events = pmu->hw_events; in pmu_sbi_setup_irqs() local 722 ret = request_percpu_irq(riscv_pmu_irq, pmu_sbi_ovf_handler, "riscv-pmu", hw_events); in pmu_sbi_setup_irqs() 736 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pm_pmu_notify()
|
D | apple_m1_cpu_pmu.c | 384 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in m1_pmu_handle_irq()
|
/linux-6.1.9/arch/arm/kernel/ |
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()
|
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()
|
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()
|
/linux-6.1.9/arch/csky/kernel/ |
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 …]
|
/linux-6.1.9/include/linux/perf/ |
D | arm_pmu.h | 91 int (*get_event_idx)(struct pmu_hw_events *hw_events, 93 void (*clear_event_idx)(struct pmu_hw_events *hw_events, 111 struct pmu_hw_events __percpu *hw_events; member
|
D | riscv_pmu.h | 57 struct cpu_hw_events __percpu *hw_events; member
|
/linux-6.1.9/drivers/perf/hisilicon/ |
D | hisi_pcie_pmu.c | 62 struct perf_event *hw_events[HISI_PCIE_MAX_COUNTERS]; member 383 sibling = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_find_related_event() 405 if (!pcie_pmu->hw_events[idx]) in hisi_pcie_pmu_get_event_idx() 551 pcie_pmu->hw_events[idx] = event; in hisi_pcie_pmu_add() 568 pcie_pmu->hw_events[hwc->idx] = NULL; in hisi_pcie_pmu_del() 578 if (pcie_pmu->hw_events[num]) in hisi_pcie_pmu_enable() 610 event = pcie_pmu->hw_events[idx]; in hisi_pcie_pmu_irq()
|
D | hisi_uncore_pmu.c | 150 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()
|
D | hisi_uncore_pmu.h | 66 struct perf_event *hw_events[HISI_MAX_COUNTERS]; member
|
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() 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.1.9/drivers/misc/habanalabs/gaudi2/ |
D | gaudi2P.h | 531 u32 hw_events[GAUDI2_EVENT_SIZE]; member
|
D | gaudi2.c | 2978 gaudi2->hw_events[gaudi2->num_of_valid_hw_events++] = gaudi2_irq_map_table[i].fc_id; in gaudi2_sw_init() 6249 irq_arr_size = gaudi2->num_of_valid_hw_events * sizeof(gaudi2->hw_events[0]); in gaudi2_compute_reset_late_init() 6250 return hl_fw_unmask_irq_arr(hdev, gaudi2->hw_events, irq_arr_size); in gaudi2_compute_reset_late_init()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | perf_event.c | 752 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_enable_user_access() 831 struct pmu_hw_events *cpuc = this_cpu_ptr(cpu_pmu->hw_events); in armv8pmu_handle_irq()
|