Searched refs:hw_events (Results 1 – 10 of 10) sorted by relevance
| /linux/drivers/perf/ |
| H A D | arm_pmu.c | 320 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_del() local 327 hw_events->branch_users--; in armpmu_del() 331 hw_events->events[idx] = NULL; in armpmu_del() 332 armpmu->clear_event_idx(hw_events, event); in armpmu_del() 342 struct pmu_hw_events *hw_events = this_cpu_ptr(armpmu->hw_events); in armpmu_add() local 351 idx = armpmu->get_event_idx(hw_events, event); in armpmu_add() 356 WARN_ON_ONCE(hw_events->events[idx]); in armpmu_add() 359 hw_events->branch_users++; in armpmu_add() 364 hw_events->events[idx] = event; in armpmu_add() 377 validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, in validate_event() argument [all …]
|
| H A D | riscv_pmu_sbi.c | 542 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx() 601 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx() 661 struct cpu_hw_events *cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu); in pmu_sbi_snapshot_free() 678 struct cpu_hw_events *cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu); in pmu_sbi_snapshot_alloc() 711 cpu_hw_evt = per_cpu_ptr(pmu->hw_events, cpu); in pmu_sbi_snapshot_setup() 746 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_ctr_read() 827 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_ctr_stop() 912 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_stop_hw_ctrs() 1033 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_start_overflow_mask() 1151 struct cpu_hw_events *cpu_hw_evt = this_cpu_ptr(pmu->hw_events); in pmu_sbi_starting_cpu() [all …]
|
| H A D | riscv_pmu.c | 260 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 D | arm_brbe.c | 496 struct pmu_hw_events *cpuc = this_cpu_ptr(arm_pmu->hw_events); in brbe_enable()
|
| /linux/drivers/perf/hisilicon/ |
| H A D | hisi_pcie_pmu.c | 66 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 D | hisi_uncore_pmu.c | 171 event = hisi_pmu->pmu_events.hw_events[idx]; in hisi_uncore_pmu_isr() 390 hisi_pmu->pmu_events.hw_events[idx] = event; in hisi_uncore_pmu_add() 407 hisi_pmu->pmu_events.hw_events[hwc->idx] = NULL; in hisi_uncore_pmu_del()
|
| H A D | hisi_uncore_pmu.h | 82 struct perf_event *hw_events[HISI_MAX_COUNTERS]; member
|
| H A D | hisi_uncore_l3c_pmu.c | 383 struct hw_perf_event *hwc = &l3c_pmu->pmu_events.hw_events[idx]->hw; in hisi_l3c_pmu_write_evtype() 533 struct hw_perf_event *hwc = &l3c_pmu->pmu_events.hw_events[idx]->hw; in hisi_l3c_pmu_clear_int_status()
|
| H A D | hisi_uncore_noc_pmu.c | 86 !hisi_noc_pmu_check_global_filter(pmu_events->hw_events[cur_idx], event)) in hisi_noc_pmu_get_event_idx()
|
| /linux/drivers/accel/habanalabs/gaudi2/ |
| H A D | gaudi2.c | 4072 gaudi2->hw_events[gaudi2->num_of_valid_hw_events++] = gaudi2_irq_map_table[i].fc_id; in gaudi2_sw_init() 7499 irq_arr_size = gaudi2->num_of_valid_hw_events * sizeof(gaudi2->hw_events[0]); in gaudi2_compute_reset_late_init() 7500 return hl_fw_unmask_irq_arr(hdev, gaudi2->hw_events, irq_arr_size); in gaudi2_compute_reset_late_init()
|