Lines Matching defs:evsel
19 #include "evsel.h"
159 struct evsel *evsel;
161 evlist__for_each_entry(session->evlist, evsel) {
162 if (evsel->core.attr.comm_exec)
340 struct evsel *evsel __maybe_unused,
1103 static void callchain__printf(struct evsel *evsel,
1109 if (evsel__has_branch_callstack(evsel))
1276 static void dump_sample(struct evsel *evsel, union perf_event *event,
1288 sample_type = evsel->core.attr.sample_type;
1290 if (evsel__has_callchain(evsel))
1291 callchain__printf(evsel, sample);
1293 if (evsel__has_br_stack(evsel))
1294 branch_stack__printf(sample, evsel__has_branch_callstack(evsel));
1318 sample_read__printf(sample, evsel->core.attr.read_format);
1321 static void dump_read(struct evsel *evsel, union perf_event *event)
1330 evsel__name(evsel), event->read.value);
1332 if (!evsel)
1335 read_format = evsel->core.attr.read_format;
1381 struct evsel *evsel;
1389 if (!sid || sid->evsel == NULL) {
1401 evsel = container_of(sid->evsel, struct evsel, core);
1402 return tool->sample(tool, event, sample, evsel, machine);
1430 struct evsel *evsel,
1433 /* We know evsel != NULL. */
1434 u64 sample_type = evsel->core.attr.sample_type;
1435 u64 read_format = evsel->core.attr.read_format;
1439 return tool->sample(tool, event, sample, evsel, machine);
1456 struct evsel *evsel;
1461 evsel = perf_evlist__id2evsel(evlist, sample->id);
1467 if (evsel == NULL) {
1471 dump_sample(evsel, event, sample);
1476 return perf_evlist__deliver_sample(evlist, tool, event, sample, evsel, machine);
1502 dump_read(evsel, event);
1503 return tool->read(tool, event, sample, evsel, machine);
1827 struct evsel *evsel;
1830 evlist__for_each_entry(session->evlist, evsel) {
1831 if (evsel->core.attr.write_backward)
2332 struct evsel *evsel;
2334 evlist__for_each_entry(session->evlist, evsel) {
2335 if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT)
2406 struct evsel *perf_session__find_first_evtype(struct perf_session *session,
2409 struct evsel *pos;
2426 struct evsel *evsel;
2428 evsel = perf_session__find_first_evtype(session, i);
2429 if (!evsel)
2432 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CPU)) {