Lines Matching defs:evsel
21 #include "evsel.h"
165 struct evsel *evsel;
167 evlist__for_each_entry(session->evlist, evsel) {
168 if (evsel->core.attr.comm_exec)
350 struct evsel *evsel __maybe_unused,
1137 static void callchain__printf(struct evsel *evsel,
1143 if (evsel__has_branch_callstack(evsel))
1339 static void dump_sample(struct evsel *evsel, union perf_event *event,
1352 sample_type = evsel->core.attr.sample_type;
1354 if (evsel__has_callchain(evsel))
1355 callchain__printf(evsel, sample);
1357 if (evsel__has_br_stack(evsel))
1358 branch_stack__printf(sample, evsel__has_branch_callstack(evsel));
1394 sample_read__printf(sample, evsel->core.attr.read_format);
1397 static void dump_read(struct evsel *evsel, union perf_event *event)
1406 evsel__name(evsel), event->read.value);
1408 if (!evsel)
1411 read_format = evsel->core.attr.read_format;
1464 struct evsel *evsel;
1472 if (!sid || sid->evsel == NULL) {
1484 evsel = container_of(sid->evsel, struct evsel, core);
1485 return tool->sample(tool, event, sample, evsel, machine);
1510 struct evsel *evsel, struct machine *machine)
1512 /* We know evsel != NULL. */
1513 u64 sample_type = evsel->core.attr.sample_type;
1514 u64 read_format = evsel->core.attr.read_format;
1518 return tool->sample(tool, event, sample, evsel, machine);
1536 struct evsel *evsel;
1541 evsel = evlist__id2evsel(evlist, sample->id);
1547 if (evsel == NULL) {
1553 dump_sample(evsel, event, sample, perf_env__arch(NULL));
1556 dump_sample(evsel, event, sample, perf_env__arch(machine->env));
1557 return evlist__deliver_sample(evlist, tool, event, sample, evsel, machine);
1584 dump_read(evsel, event);
1585 return tool->read(tool, event, sample, evsel, machine);
1903 struct evsel *evsel;
1906 evlist__for_each_entry(session->evlist, evsel) {
1907 if (evsel->core.attr.write_backward)
2632 struct evsel *evsel;
2634 evlist__for_each_entry(session->evlist, evsel) {
2635 if (evsel->core.attr.type == PERF_TYPE_TRACEPOINT)
2707 struct evsel *perf_session__find_first_evtype(struct perf_session *session,
2710 struct evsel *pos;
2727 struct evsel *evsel;
2729 evsel = perf_session__find_first_evtype(session, i);
2730 if (!evsel)
2733 if (!(evsel->core.attr.sample_type & PERF_SAMPLE_CPU)) {