Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm64/kvm/
Dpmu-emul.c86 return (pmc->idx == ARMV8_PMU_CYCLE_IDX || in kvm_pmc_is_64bit()
94 return (pmc->idx < ARMV8_PMU_CYCLE_IDX && (val & ARMV8_PMU_PMCR_LP)) || in kvm_pmc_has_64bit_overflow()
95 (pmc->idx == ARMV8_PMU_CYCLE_IDX && (val & ARMV8_PMU_PMCR_LC)); in kvm_pmc_has_64bit_overflow()
100 return (!(pmc->idx & 1) && (pmc->idx + 1) < ARMV8_PMU_CYCLE_IDX && in kvm_pmu_counter_can_chain()
106 return (idx == ARMV8_PMU_CYCLE_IDX) ? PMCCNTR_EL0 : PMEVCNTR0_EL0 + idx; in counter_index_to_reg()
111 return (idx == ARMV8_PMU_CYCLE_IDX) ? PMCCFILTR_EL0 : PMEVTYPER0_EL0 + idx; in counter_index_to_evtreg()
158 if (vcpu_mode_is_32bit(vcpu) && pmc->idx != ARMV8_PMU_CYCLE_IDX && in kvm_pmu_set_pmc_value()
273 return BIT(ARMV8_PMU_CYCLE_IDX); in kvm_pmu_valid_counter_mask()
275 return GENMASK(val - 1, 0) | BIT(ARMV8_PMU_CYCLE_IDX); in kvm_pmu_valid_counter_mask()
451 for_each_set_bit(i, &mask, ARMV8_PMU_CYCLE_IDX) { in kvm_pmu_counter_increment()
[all …]
Dpmu.c73 if (idx == ARMV8_PMU_CYCLE_IDX) in kvm_vcpu_pmu_read_evtype_direct()
87 if (idx == ARMV8_PMU_CYCLE_IDX) in kvm_vcpu_pmu_write_evtype_direct()
Dsys_regs.c855 u64 mask = BIT(ARMV8_PMU_CYCLE_IDX); in reset_pmu_reg()
1014 if (idx >= val && idx != ARMV8_PMU_CYCLE_IDX) { in pmu_counter_idx_valid()
1029 idx = ARMV8_PMU_CYCLE_IDX; in get_pmu_evcntr()
1057 idx = ARMV8_PMU_CYCLE_IDX; in access_pmu_evcntr()
1064 idx = ARMV8_PMU_CYCLE_IDX; in access_pmu_evcntr()
1105 if (idx == ARMV8_PMU_CYCLE_IDX) in access_pmu_evtyper()
/linux-6.12.1/drivers/perf/
Darm_pmuv3.c572 if (idx == ARMV8_PMU_CYCLE_IDX) in armv8pmu_read_counter()
607 if (idx == ARMV8_PMU_CYCLE_IDX) in armv8pmu_write_counter()
646 if (idx == ARMV8_PMU_CYCLE_IDX) in armv8pmu_write_event_type()
776 if (i == ARMV8_PMU_CYCLE_IDX) in armv8pmu_enable_user_access()
939 if (!test_and_set_bit(ARMV8_PMU_CYCLE_IDX, cpuc->used_mask)) in armv8pmu_get_event_idx()
940 return ARMV8_PMU_CYCLE_IDX; in armv8pmu_get_event_idx()
1215 set_bit(ARMV8_PMU_CYCLE_IDX, cpu_pmu->cntr_mask); in __armv8pmu_probe_pmu()
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvpmu_counter_access.c26 #define ARMV8_PMU_CYCLE_IDX 31 macro
55 uint64_t mask = BIT(ARMV8_PMU_CYCLE_IDX); in get_counters_mask()
/linux-6.12.1/include/linux/perf/
Darm_pmuv3.h10 #define ARMV8_PMU_CYCLE_IDX 31 macro