• Home
  • Raw
  • Download

Lines Matching refs:evsel

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