Lines Matching refs:vcpu_record
756 struct vcpu_event_record *vcpu_record, in handle_begin_event() argument
765 vcpu_record->last_event = event; in handle_begin_event()
766 vcpu_record->start_time = sample->time; in handle_begin_event()
831 struct vcpu_event_record *vcpu_record, in handle_child_event() argument
840 vcpu_record->last_event = event; in handle_child_event()
857 struct vcpu_event_record *vcpu_record, in handle_end_event() argument
868 vcpu = vcpu_record->vcpu_id; in handle_end_event()
870 event = vcpu_record->last_event; in handle_end_event()
871 time_begin = vcpu_record->start_time; in handle_end_event()
892 vcpu_record->last_event = NULL; in handle_end_event()
893 vcpu_record->start_time = 0; in handle_end_event()
910 sample->time, sample->pid, vcpu_record->vcpu_id, in handle_end_event()
925 struct vcpu_event_record *vcpu_record; in per_vcpu_record() local
929 vcpu_record = zalloc(sizeof(*vcpu_record)); in per_vcpu_record()
930 if (!vcpu_record) { in per_vcpu_record()
935 vcpu_record->vcpu_id = evsel__intval(evsel, sample, vcpu_id_str(e_machine)); in per_vcpu_record()
936 thread__set_priv(thread, vcpu_record); in per_vcpu_record()
947 struct vcpu_event_record *vcpu_record; in handle_kvm_event() local
951 vcpu_record = per_vcpu_record(thread, evsel, sample); in handle_kvm_event()
952 if (!vcpu_record) in handle_kvm_event()
957 (kvm->trace_vcpu != vcpu_record->vcpu_id)) in handle_kvm_event()
961 return handle_begin_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()
964 return handle_child_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()
967 return handle_end_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()