Searched refs:CSR_INSTRET (Results 1 – 8 of 8) sorted by relevance
100 if (csr_num == CSR_CYCLE || csr_num == CSR_INSTRET) { in kvm_riscv_vcpu_pmu_read_legacy()
209 #define CSR_INSTRET 0xc02 macro
57 val = riscv_pmu_ctr_read_csr(CSR_INSTRET); in pmu_legacy_read_ctr()
302 if (!hpm_width && info->csr != CSR_CYCLE && info->csr != CSR_INSTRET) in riscv_pmu_get_hpm_info()364 cmask = 1UL << (CSR_INSTRET - CSR_CYCLE); in pmu_sbi_ctr_get_idx()
323 #define CSR_INSTRET 0xc02 macro
293 if (csr_num == CSR_CYCLE || csr_num == CSR_INSTRET) { in kvm_riscv_vcpu_pmu_read_hpm()
72 #define CSR_INSTRET 0xc02 macro
122 if ((csrno >= CSR_CYCLE && csrno <= CSR_INSTRET) || in ctr()4920 [CSR_INSTRET] = { "instret", ctr, read_hpmcounter },