Lines Matching refs:lbr_desc

237 	struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu);  in intel_pmu_release_guest_lbr_event()  local
239 if (lbr_desc->event) { in intel_pmu_release_guest_lbr_event()
240 perf_event_release_kernel(lbr_desc->event); in intel_pmu_release_guest_lbr_event()
241 lbr_desc->event = NULL; in intel_pmu_release_guest_lbr_event()
248 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_create_guest_lbr_event() local
280 if (unlikely(lbr_desc->event)) { in intel_pmu_create_guest_lbr_event()
292 lbr_desc->event = event; in intel_pmu_create_guest_lbr_event()
306 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_handle_lbr_msrs_access() local
312 if (!lbr_desc->event && intel_pmu_create_guest_lbr_event(vcpu) < 0) in intel_pmu_handle_lbr_msrs_access()
322 if (lbr_desc->event->state == PERF_EVENT_STATE_ACTIVE) { in intel_pmu_handle_lbr_msrs_access()
508 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_refresh() local
591 x86_perf_get_lbr(&lbr_desc->records); in intel_pmu_refresh()
593 lbr_desc->records.nr = 0; in intel_pmu_refresh()
595 if (lbr_desc->records.nr) in intel_pmu_refresh()
618 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_init() local
635 lbr_desc->records.nr = 0; in intel_pmu_init()
636 lbr_desc->event = NULL; in intel_pmu_init()
637 lbr_desc->msr_passthrough = false; in intel_pmu_init()
712 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in vmx_disable_lbr_msrs_passthrough() local
714 if (!lbr_desc->msr_passthrough) in vmx_disable_lbr_msrs_passthrough()
718 lbr_desc->msr_passthrough = false; in vmx_disable_lbr_msrs_passthrough()
723 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in vmx_enable_lbr_msrs_passthrough() local
725 if (lbr_desc->msr_passthrough) in vmx_enable_lbr_msrs_passthrough()
729 lbr_desc->msr_passthrough = true; in vmx_enable_lbr_msrs_passthrough()
745 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in vmx_passthrough_lbr_msrs() local
747 if (!lbr_desc->event) { in vmx_passthrough_lbr_msrs()
756 if (lbr_desc->event->state < PERF_EVENT_STATE_ACTIVE) { in vmx_passthrough_lbr_msrs()