Home
last modified time | relevance | path

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

/openbmc/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c205 int fevent_code; in pmu_ctr_read() local
210 fevent_code = get_event_code(pmc->event_idx); in pmu_ctr_read()
211 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in pmu_ctr_read()
345 int fevent_code; in kvm_riscv_vcpu_pmu_ctr_start() local
361 fevent_code = get_event_code(pmc->event_idx); in kvm_riscv_vcpu_pmu_ctr_start()
362 if (fevent_code >= SBI_PMU_FW_MAX) { in kvm_riscv_vcpu_pmu_ctr_start()
368 if (kvpmu->fw_event[fevent_code].started) { in kvm_riscv_vcpu_pmu_ctr_start()
373 kvpmu->fw_event[fevent_code].started = true; in kvm_riscv_vcpu_pmu_ctr_start()
374 kvpmu->fw_event[fevent_code].value = pmc->counter_val; in kvm_riscv_vcpu_pmu_ctr_start()
402 int fevent_code; in kvm_riscv_vcpu_pmu_ctr_stop() local
[all …]