Searched refs:lbr_desc (Results 1 – 3 of 3) sorted by relevance
237 struct lbr_desc *lbr_desc = vcpu_to_lbr_desc(vcpu); in intel_pmu_release_guest_lbr_event() local239 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() local280 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() local312 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()[all …]
108 struct lbr_desc { struct369 struct lbr_desc lbr_desc; member653 static inline struct lbr_desc *vcpu_to_lbr_desc(struct kvm_vcpu *vcpu) in vcpu_to_lbr_desc()655 return &to_vmx(vcpu)->lbr_desc; in vcpu_to_lbr_desc()
2127 if (intel_pmu_lbr_is_enabled(vcpu) && !to_vmx(vcpu)->lbr_desc.event && in vmx_set_msr()