Lines Matching refs:evsel
6 #include "util/evsel.h"
618 void exit_event_get_key(struct evsel *evsel,
623 key->key = evsel__intval(evsel, sample, kvm_exit_reason);
626 bool kvm_exit_event(struct evsel *evsel)
628 return evsel__name_is(evsel, kvm_exit_trace);
631 bool exit_event_begin(struct evsel *evsel,
634 if (kvm_exit_event(evsel)) {
635 exit_event_get_key(evsel, sample, key);
642 bool kvm_entry_event(struct evsel *evsel)
644 return evsel__name_is(evsel, kvm_entry_trace);
647 bool exit_event_end(struct evsel *evsel,
651 return kvm_entry_event(evsel);
869 struct evsel *evsel,
881 if (evsel__name_is(evsel, child_ops->name)) {
882 child_ops->get_key(evsel, sample, key);
979 struct evsel *evsel,
983 if (!thread__priv(thread) && kvm_entry_event(evsel)) {
992 vcpu_record->vcpu_id = evsel__intval(evsel, sample, vcpu_id_str);
1001 struct evsel *evsel,
1008 vcpu_record = per_vcpu_record(thread, evsel, sample);
1017 if (kvm->events_ops->is_begin_event(evsel, sample, &key))
1020 if (is_child_event(kvm, evsel, sample, &key))
1023 if (kvm->events_ops->is_end_event(evsel, sample, &key))
1193 struct evsel *evsel,
1216 if (!handle_kvm_event(kvm, thread, evsel, sample))
1544 struct evsel *pos;