Lines Matching refs:evsel
13 #include "evsel.h"
92 struct perf_evsel *evsel = perf_evsel__new(&attr, 0);
94 if (evsel == NULL)
97 perf_evlist__add(evlist, evsel);
117 struct perf_evsel *evsel,
121 struct perf_sample_id *sid = SID(evsel, cpu, thread);
124 sid->evsel = evsel;
129 void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel,
132 perf_evlist__id_hash(evlist, evsel, cpu, thread, id);
133 evsel->id[evsel->ids++] = id;
137 struct perf_evsel *evsel,
143 if (!(evsel->attr.read_format & PERF_FORMAT_ID) ||
147 if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_ENABLED)
149 if (evsel->attr.read_format & PERF_FORMAT_TOTAL_TIME_RUNNING)
152 perf_evlist__id_add(evlist, evsel, cpu, thread, read_data[id_idx]);
171 return sid->evsel;
282 struct perf_evsel *evsel;
289 list_for_each_entry(evsel, &evlist->entries, node) {
290 int fd = FD(evsel, cpu, thread);
302 if ((evsel->attr.read_format & PERF_FORMAT_ID) &&
303 perf_evlist__id_add_fd(evlist, evsel, cpu, thread, fd) < 0)
323 struct perf_evsel *evsel;
329 list_for_each_entry(evsel, &evlist->entries, node) {
330 int fd = FD(evsel, 0, thread);
342 if ((evsel->attr.read_format & PERF_FORMAT_ID) &&
343 perf_evlist__id_add_fd(evlist, evsel, 0, thread, fd) < 0)
379 struct perf_evsel *evsel;
393 list_for_each_entry(evsel, &evlist->entries, node) {
394 if ((evsel->attr.read_format & PERF_FORMAT_ID) &&
395 evsel->sample_id == NULL &&
396 perf_evsel__alloc_id(evsel, cpus->nr, threads->nr) < 0)
441 struct perf_evsel *evsel;
448 list_for_each_entry(evsel, &evlist->entries, node) {
449 filter = evsel->filter;
454 fd = FD(evsel, cpu, thread);