Lines Matching defs:evsel
4 #include "util/evsel.h"
41 struct evsel *evsel;
52 evsel = evsel__new(&attr);
53 if (!evsel) {
58 evsel->core.attr.freq = 1;
59 evsel->core.attr.sample_period = 1;
61 evsel->core.attr.sample_type = PERF_SAMPLE_CALLCHAIN;
63 evlist__add(evlist, evsel);
65 free(evsel->name);
66 evsel->name = evname;
251 struct evsel *evsel;
257 evlist__for_each_entry(evlist, evsel) {
258 struct cgroup *cgrp = evsel->cgrp;
297 struct evsel *evsel;
310 evsel = evlist__find_evsel_by_str(session->evlist, OFFCPU_EVENT);
311 if (evsel == NULL) {
312 pr_err("%s evsel not found\n", OFFCPU_EVENT);
316 sample_type = evsel->core.attr.sample_type;
325 if (evsel->core.id)
326 sid = evsel->core.id[0];