Lines Matching refs:evsel
239 #include "util/evsel.h"
268 struct perf_evsel *evsel;
287 evsel = perf_evsel__new(&attr, 0);
288 if (evsel == NULL) {
293 if (perf_evsel__open_per_thread(evsel, threads, false) < 0) {
305 if (perf_evsel__read_on_cpu(evsel, 0, 0) < 0) {
310 if (evsel->counts->cpu[0].val != nr_open_calls) {
312 nr_open_calls, evsel->counts->cpu[0].val);
318 perf_evsel__close_fd(evsel, 1, threads->nr);
320 perf_evsel__delete(evsel);
333 struct perf_evsel *evsel;
362 evsel = perf_evsel__new(&attr, 0);
363 if (evsel == NULL) {
368 if (perf_evsel__open(evsel, cpus, threads, false) < 0) {
407 if (perf_evsel__alloc_counts(evsel, cpus->nr) < 0) {
420 if (perf_evsel__read_on_cpu(evsel, cpu, 0) < 0) {
427 if (evsel->counts->cpu[cpu].val != expected) {
429 expected, cpus->map[cpu], evsel->counts->cpu[cpu].val);
435 perf_evsel__close_fd(evsel, 1, threads->nr);
437 perf_evsel__delete(evsel);
480 struct perf_evsel *evsels[nsyscalls], *evsel;
573 evsel = perf_evlist__id2evsel(evlist, sample.id);
574 if (evsel == NULL) {
576 " doesn't map to an evsel\n", sample.id);
579 nr_events[evsel->idx]++;
582 list_for_each_entry(evsel, &evlist->entries, node) {
583 if (nr_events[evsel->idx] != expected_nr_events[evsel->idx]) {
585 expected_nr_events[evsel->idx],
586 event_name(evsel), nr_events[evsel->idx]);