Lines Matching refs:evsel
5 #include "../../../util/evsel.h"
31 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample,
34 key->key = evsel__intval(evsel, sample, "gpa");
35 key->info = evsel__intval(evsel, sample, "type");
42 static bool mmio_event_begin(struct evsel *evsel,
46 if (kvm_exit_event(evsel))
50 if (!strcmp(evsel->name, "kvm:kvm_mmio") &&
51 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) {
52 mmio_event_get_key(evsel, sample, key);
59 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample,
63 if (kvm_entry_event(evsel))
67 if (!strcmp(evsel->name, "kvm:kvm_mmio") &&
68 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) {
69 mmio_event_get_key(evsel, sample, key);
93 static void ioport_event_get_key(struct evsel *evsel,
97 key->key = evsel__intval(evsel, sample, "port");
98 key->info = evsel__intval(evsel, sample, "rw");
101 static bool ioport_event_begin(struct evsel *evsel,
105 if (!strcmp(evsel->name, "kvm:kvm_pio")) {
106 ioport_event_get_key(evsel, sample, key);
113 static bool ioport_event_end(struct evsel *evsel,
117 return kvm_entry_event(evsel);