Home
last modified time | relevance | path

Searched refs:rvpmu (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/perf/
Driscv_pmu.c77 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_ctr_get_width_mask() local
80 if (!rvpmu->ctr_get_width) in riscv_pmu_ctr_get_width_mask()
89 cwidth = rvpmu->ctr_get_width(0); in riscv_pmu_ctr_get_width_mask()
91 cwidth = rvpmu->ctr_get_width(hwc->idx); in riscv_pmu_ctr_get_width_mask()
99 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_event_update() local
105 if (!rvpmu->ctr_read) in riscv_pmu_event_update()
112 new_raw_count = rvpmu->ctr_read(event); in riscv_pmu_event_update()
127 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in riscv_pmu_stop() local
132 if (rvpmu->ctr_stop) { in riscv_pmu_stop()
133 rvpmu->ctr_stop(event, 0); in riscv_pmu_stop()
[all …]
Driscv_pmu_sbi.c270 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in pmu_sbi_ctr_get_idx() local
271 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_get_idx()
285 rvpmu->cmask, cflags, hwc->event_base, hwc->config, in pmu_sbi_ctr_get_idx()
289 rvpmu->cmask, cflags, hwc->event_base, hwc->config, 0); in pmu_sbi_ctr_get_idx()
298 if (!test_bit(idx, &rvpmu->cmask) || !pmu_ctr_list[idx].value) in pmu_sbi_ctr_get_idx()
317 struct riscv_pmu *rvpmu = to_riscv_pmu(event->pmu); in pmu_sbi_ctr_clear_idx() local
318 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in pmu_sbi_ctr_clear_idx()
735 struct riscv_pmu *rvpmu = container_of(b, struct riscv_pmu, riscv_pm_nb); in riscv_pm_pmu_notify() local
736 struct cpu_hw_events *cpuc = this_cpu_ptr(rvpmu->hw_events); in riscv_pm_pmu_notify()