Lines Matching refs:vcpu_record
249 struct vcpu_event_record *vcpu_record, in handle_begin_event() argument
257 vcpu_record->last_event = event; in handle_begin_event()
258 vcpu_record->start_time = timestamp; in handle_begin_event()
318 struct vcpu_event_record *vcpu_record, in handle_child_event() argument
327 vcpu_record->last_event = event; in handle_child_event()
344 struct vcpu_event_record *vcpu_record, in handle_end_event() argument
355 vcpu = vcpu_record->vcpu_id; in handle_end_event()
357 event = vcpu_record->last_event; in handle_end_event()
358 time_begin = vcpu_record->start_time; in handle_end_event()
379 vcpu_record->last_event = NULL; in handle_end_event()
380 vcpu_record->start_time = 0; in handle_end_event()
396 sample->time, sample->pid, vcpu_record->vcpu_id, in handle_end_event()
411 struct vcpu_event_record *vcpu_record; in per_vcpu_record() local
413 vcpu_record = zalloc(sizeof(*vcpu_record)); in per_vcpu_record()
414 if (!vcpu_record) { in per_vcpu_record()
419 vcpu_record->vcpu_id = evsel__intval(evsel, sample, vcpu_id_str); in per_vcpu_record()
420 thread__set_priv(thread, vcpu_record); in per_vcpu_record()
431 struct vcpu_event_record *vcpu_record; in handle_kvm_event() local
435 vcpu_record = per_vcpu_record(thread, evsel, sample); in handle_kvm_event()
436 if (!vcpu_record) in handle_kvm_event()
441 (kvm->trace_vcpu != vcpu_record->vcpu_id)) in handle_kvm_event()
445 return handle_begin_event(kvm, vcpu_record, &key, sample->time); in handle_kvm_event()
448 return handle_child_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()
451 return handle_end_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()