Lines Matching refs:vcpu_record

218 			       struct vcpu_event_record *vcpu_record,  in handle_begin_event()  argument
226 vcpu_record->last_event = event; in handle_begin_event()
227 vcpu_record->start_time = timestamp; in handle_begin_event()
287 struct vcpu_event_record *vcpu_record, in handle_child_event() argument
296 vcpu_record->last_event = event; in handle_child_event()
313 struct vcpu_event_record *vcpu_record, in handle_end_event() argument
324 vcpu = vcpu_record->vcpu_id; in handle_end_event()
326 event = vcpu_record->last_event; in handle_end_event()
327 time_begin = vcpu_record->start_time; in handle_end_event()
348 vcpu_record->last_event = NULL; in handle_end_event()
349 vcpu_record->start_time = 0; in handle_end_event()
365 sample->time, sample->pid, vcpu_record->vcpu_id, in handle_end_event()
380 struct vcpu_event_record *vcpu_record; in per_vcpu_record() local
382 vcpu_record = zalloc(sizeof(*vcpu_record)); in per_vcpu_record()
383 if (!vcpu_record) { in per_vcpu_record()
388 vcpu_record->vcpu_id = perf_evsel__intval(evsel, sample, VCPU_ID); in per_vcpu_record()
389 thread__set_priv(thread, vcpu_record); in per_vcpu_record()
400 struct vcpu_event_record *vcpu_record; in handle_kvm_event() local
404 vcpu_record = per_vcpu_record(thread, evsel, sample); in handle_kvm_event()
405 if (!vcpu_record) in handle_kvm_event()
410 (kvm->trace_vcpu != vcpu_record->vcpu_id)) in handle_kvm_event()
414 return handle_begin_event(kvm, vcpu_record, &key, sample->time); in handle_kvm_event()
417 return handle_child_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()
420 return handle_end_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()