Lines Matching refs:sample

70 			       struct perf_sample *sample,
73 struct perf_sample *sample, struct event_key *key);
123 struct perf_sample *sample, in exit_event_get_key() argument
127 key->key = perf_evsel__intval(evsel, sample, "exit_reason"); in exit_event_get_key()
136 struct perf_sample *sample, struct event_key *key) in exit_event_begin() argument
139 exit_event_get_key(evsel, sample, key); in exit_event_begin()
152 struct perf_sample *sample __maybe_unused, in exit_event_end()
203 static void mmio_event_get_key(struct perf_evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
206 key->key = perf_evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
207 key->info = perf_evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
215 struct perf_sample *sample, struct event_key *key) in mmio_event_begin() argument
223 perf_evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin()
224 mmio_event_get_key(evsel, sample, key); in mmio_event_begin()
231 static bool mmio_event_end(struct perf_evsel *evsel, struct perf_sample *sample, in mmio_event_end() argument
240 perf_evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) { in mmio_event_end()
241 mmio_event_get_key(evsel, sample, key); in mmio_event_end()
265 struct perf_sample *sample, in ioport_event_get_key() argument
268 key->key = perf_evsel__intval(evsel, sample, "port"); in ioport_event_get_key()
269 key->info = perf_evsel__intval(evsel, sample, "rw"); in ioport_event_get_key()
273 struct perf_sample *sample, in ioport_event_begin() argument
277 ioport_event_get_key(evsel, sample, key); in ioport_event_begin()
285 struct perf_sample *sample __maybe_unused, in ioport_event_end()
477 struct perf_sample *sample) in handle_end_event() argument
514 if (sample->time < time_begin) { in handle_end_event()
519 time_diff = sample->time - time_begin; in handle_end_event()
527 sample->time, sample->pid, vcpu_record->vcpu_id, in handle_end_event()
538 struct perf_sample *sample) in per_vcpu_record() argument
550 vcpu_record->vcpu_id = perf_evsel__intval(evsel, sample, "vcpu_id"); in per_vcpu_record()
560 struct perf_sample *sample) in handle_kvm_event() argument
565 vcpu_record = per_vcpu_record(thread, evsel, sample); in handle_kvm_event()
574 if (kvm->events_ops->is_begin_event(evsel, sample, &key)) in handle_kvm_event()
575 return handle_begin_event(kvm, vcpu_record, &key, sample->time); in handle_kvm_event()
577 if (kvm->events_ops->is_end_event(evsel, sample, &key)) in handle_kvm_event()
578 return handle_end_event(kvm, vcpu_record, &key, sample); in handle_kvm_event()
614 DEF_SORT_NAME_KEY(sample, count),
787 struct perf_sample *sample __maybe_unused, in process_lost_event()
797 struct perf_sample *sample) in skip_sample() argument
799 if (kvm->pid_list && intlist__find(kvm->pid_list, sample->pid) == NULL) in skip_sample()
807 struct perf_sample *sample, in process_sample_event() argument
815 if (skip_sample(kvm, sample)) in process_sample_event()
818 thread = machine__findnew_thread(machine, sample->pid, sample->tid); in process_sample_event()
825 if (!handle_kvm_event(kvm, thread, evsel, sample)) in process_sample_event()
883 struct perf_sample sample; in perf_kvm__mmap_read_idx() local
889 err = perf_evlist__parse_sample(kvm->evlist, event, &sample); in perf_kvm__mmap_read_idx()
896 err = perf_session_queue_event(kvm->session, event, &sample, 0); in perf_kvm__mmap_read_idx()
910 *mmap_time = sample.time; in perf_kvm__mmap_read_idx()
1221 .sample = process_sample_event, in read_events()
1462 kvm->tool.sample = process_sample_event; in kvm_events_live()