Lines Matching refs:vcpu_record
816 struct vcpu_event_record *vcpu_record, in handle_begin_event() argument
825 vcpu_record->last_event = event; in handle_begin_event()
826 vcpu_record->start_time = sample->time; in handle_begin_event()
891 struct vcpu_event_record *vcpu_record, in handle_child_event() argument
900 vcpu_record->last_event = event; in handle_child_event()
917 struct vcpu_event_record *vcpu_record, in handle_end_event() argument
928 vcpu = vcpu_record->vcpu_id; in handle_end_event()
930 event = vcpu_record->last_event; in handle_end_event()
931 time_begin = vcpu_record->start_time; in handle_end_event()
952 vcpu_record->last_event = NULL; in handle_end_event()
953 vcpu_record->start_time = 0; in handle_end_event()
969 sample->time, sample->pid, vcpu_record->vcpu_id, in handle_end_event()
984 struct vcpu_event_record *vcpu_record; in per_vcpu_record() local
986 vcpu_record = zalloc(sizeof(*vcpu_record)); in per_vcpu_record()
987 if (!vcpu_record) { in per_vcpu_record()
992 vcpu_record->vcpu_id = evsel__intval(evsel, sample, vcpu_id_str); in per_vcpu_record()
993 thread__set_priv(thread, vcpu_record); in per_vcpu_record()
1004 struct vcpu_event_record *vcpu_record; in handle_kvm_event() local
1008 vcpu_record = per_vcpu_record(thread, evsel, sample); in handle_kvm_event()
1009 if (!vcpu_record) in handle_kvm_event()
1014 (kvm->trace_vcpu != vcpu_record->vcpu_id)) in handle_kvm_event()
1018 return handle_begin_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()
1021 return handle_child_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()
1024 return handle_end_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()