Lines Matching refs:counters
43 static const u32 __read_mostly *counters; variable
174 svm_intercept_msr(v, counters[i], MSR_INTERCEPT_NONE); in amd_vpmu_set_msr_bitmap()
188 svm_intercept_msr(v, counters[i], MSR_INTERCEPT_RW); in amd_vpmu_unset_msr_bitmap()
205 uint64_t *counter_regs = vpmu_reg_pointer(ctxt, counters); in context_load()
210 wrmsrl(counters[i], counter_regs[i]); in context_load()
281 uint64_t *counter_regs = vpmu_reg_pointer(ctxt, counters); in context_save()
285 rdmsrl(counters[i], counter_regs[i]); in context_save()
331 uint64_t *counter_regs = vpmu_reg_pointer(ctxt, counters); in context_update()
347 else if (msr == counters[i] ) in context_update()
454 const uint64_t *counter_regs = vpmu_reg_pointer(ctxt, counters); in amd_vpmu_dump()
483 rdmsrl(counters[i], cntr); in amd_vpmu_dump()
486 counters[i], counter_regs[i], cntr); in amd_vpmu_dump()
508 if ( !counters ) in svm_vpmu_initialise()
520 ctxt->counters = sizeof(*ctxt); in svm_vpmu_initialise()
521 ctxt->ctrls = ctxt->counters + sizeof(uint64_t) * num_counters; in svm_vpmu_initialise()
549 counters = AMD_F15H_COUNTERS; in amd_vpmu_init()
558 counters = AMD_F10H_COUNTERS; in amd_vpmu_init()
573 counters = ctrls = NULL; in amd_vpmu_init()