Searched refs:pmc_idx (Results 1 – 6 of 6) sorted by relevance
/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | vpmu_counter_access.c | 216 uint64_t pmcr_n, test_bit = BIT(pmc_idx); in test_bitmap_pmu_regs() 251 test_bitmap_pmu_regs(pmc_idx, false); in test_access_pmc_regs() 253 test_bitmap_pmu_regs(pmc_idx, true); in test_access_pmc_regs() 255 test_bitmap_pmu_regs(pmc_idx, false); in test_access_pmc_regs() 270 acc->write_typer(pmc_idx, write_data); in test_access_pmc_regs() 271 read_data = acc->read_typer(pmc_idx); in test_access_pmc_regs() 280 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs() 288 acc->write_cntr(pmc_idx, write_data); in test_access_pmc_regs() 289 read_data = acc->read_cntr(pmc_idx); in test_access_pmc_regs() 349 test_bitmap_pmu_regs(pmc_idx, 1); in test_access_invalid_pmc_regs() [all …]
|
/linux/arch/x86/kvm/svm/ |
H A D | pmu.c | 28 static struct kvm_pmc *amd_pmu_get_pmc(struct kvm_pmu *pmu, int pmc_idx) in amd_pmu_get_pmc() argument 32 if (pmc_idx >= num_counters) in amd_pmu_get_pmc() 35 return &pmu->gp_counters[array_index_nospec(pmc_idx, num_counters)]; in amd_pmu_get_pmc()
|
/linux/drivers/platform/x86/intel/pmc/ |
H A D | core_ssram.c | 251 pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset) in pmc_core_ssram_get_pmc() argument 266 if (pmc_idx != PMC_IDX_MAIN) { in pmc_core_ssram_get_pmc() 290 return pmc_core_pmc_add(pmcdev, pwrm_base, map, pmc_idx); in pmc_core_ssram_get_pmc()
|
/linux/arch/riscv/kvm/ |
H A D | vcpu_pmu.c | 162 int i, pmc_idx; in kvm_pmu_get_programmable_pmc_index() local 176 pmc_idx = i + cbase; in kvm_pmu_get_programmable_pmc_index() 177 if ((pmc_idx >= min && pmc_idx < max) && in kvm_pmu_get_programmable_pmc_index() 178 !test_bit(pmc_idx, kvpmu->pmc_in_use)) { in kvm_pmu_get_programmable_pmc_index() 179 ctr_idx = pmc_idx; in kvm_pmu_get_programmable_pmc_index()
|
/linux/arch/x86/kvm/ |
H A D | pmu.h | 275 bool is_vmware_backdoor_pmc(u32 pmc_idx);
|
H A D | pmu.c | 548 bool is_vmware_backdoor_pmc(u32 pmc_idx) in is_vmware_backdoor_pmc() argument 550 switch (pmc_idx) { in is_vmware_backdoor_pmc()
|