Lines Matching refs:evsel
27 static void mmio_event_get_key(struct perf_evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
30 key->key = perf_evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
31 key->info = perf_evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
38 static bool mmio_event_begin(struct perf_evsel *evsel, in mmio_event_begin() argument
42 if (kvm_exit_event(evsel)) in mmio_event_begin()
46 if (!strcmp(evsel->name, "kvm:kvm_mmio") && in mmio_event_begin()
47 perf_evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin()
48 mmio_event_get_key(evsel, sample, key); in mmio_event_begin()
55 static bool mmio_event_end(struct perf_evsel *evsel, struct perf_sample *sample, in mmio_event_end() argument
59 if (kvm_entry_event(evsel)) in mmio_event_end()
63 if (!strcmp(evsel->name, "kvm:kvm_mmio") && in mmio_event_end()
64 perf_evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) { in mmio_event_end()
65 mmio_event_get_key(evsel, sample, key); in mmio_event_end()
89 static void ioport_event_get_key(struct perf_evsel *evsel, in ioport_event_get_key() argument
93 key->key = perf_evsel__intval(evsel, sample, "port"); in ioport_event_get_key()
94 key->info = perf_evsel__intval(evsel, sample, "rw"); in ioport_event_get_key()
97 static bool ioport_event_begin(struct perf_evsel *evsel, in ioport_event_begin() argument
101 if (!strcmp(evsel->name, "kvm:kvm_pio")) { in ioport_event_begin()
102 ioport_event_get_key(evsel, sample, key); in ioport_event_begin()
109 static bool ioport_event_end(struct perf_evsel *evsel, in ioport_event_end() argument
113 return kvm_entry_event(evsel); in ioport_event_end()