Lines Matching defs:evsel
12 #include "evsel.h"
128 struct evsel *evsel;
372 return pevent->evsel->core.attr.type == PERF_TYPE_TRACEPOINT;
418 struct evsel *evsel = pevent->evsel;
421 if (!evsel->tp_format) {
424 tp_format = trace_event__tp_format_id(evsel->core.attr.config);
428 evsel->tp_format = tp_format;
431 field = tep_find_any_field(evsel->tp_format, str);
709 struct evsel evsel;
817 evsel__init(&pevsel->evsel, &attr, idx);
823 evsel__exit(&pevsel->evsel);
830 struct evsel *evsel = &pevsel->evsel;
847 evsel->core.attr.inherit = inherit;
849 * This will group just the fds for this single evsel, to group
852 if (evsel__open(evsel, cpus, threads) < 0) {
875 .tp_name = "perf.evsel",
1001 struct evsel *evsel;
1007 evsel = &((struct pyrf_evsel *)pevsel)->evsel;
1008 evsel->idx = evlist->core.nr_entries;
1009 evlist__add(evlist, evsel);
1053 struct evsel *evsel;
1058 evsel = perf_evlist__event2evsel(evlist, event);
1059 if (!evsel) {
1064 pevent->evsel = evsel;
1066 err = evsel__parse_sample(evsel, event, &pevent->sample);
1153 struct evsel *pos;
1163 return Py_BuildValue("O", container_of(pos, struct pyrf_evsel, evsel));
1348 PyModule_AddObject(module, "evsel", (PyObject*)&pyrf_evsel__type);