Lines Matching defs:evsel

14 #include "evsel.h"
96 struct perf_pmu *evsel__find_pmu(const struct evsel *evsel __maybe_unused)
111 bool evsel__is_aux_event(const struct evsel *evsel __maybe_unused)
140 * XXX: All these evsel destructors need some better mechanism, like a linked
148 void bpf_counter__destroy(struct evsel *evsel);
149 int bpf_counter__install_pe(struct evsel *evsel, int cpu, int fd);
150 int bpf_counter__disable(struct evsel *evsel);
152 void bpf_counter__destroy(struct evsel *evsel __maybe_unused)
156 int bpf_counter__install_pe(struct evsel *evsel __maybe_unused, int cpu __maybe_unused, int fd __maybe_unused)
161 int bpf_counter__disable(struct evsel *evsel __maybe_unused)
168 int perf_bpf_filter__prepare(struct evsel *evsel __maybe_unused)
173 int perf_bpf_filter__destroy(struct evsel *evsel __maybe_unused)
225 struct evsel *evsel;
470 return pevent->evsel->core.attr.type == PERF_TYPE_TRACEPOINT;
518 struct evsel *evsel = pevent->evsel;
521 if (!evsel->tp_format) {
524 tp_format = trace_event__tp_format_id(evsel->core.attr.config);
528 evsel->tp_format = tp_format;
531 field = tep_find_any_field(evsel->tp_format, str);
812 struct evsel evsel;
920 evsel__init(&pevsel->evsel, &attr, idx);
926 evsel__exit(&pevsel->evsel);
933 struct evsel *evsel = &pevsel->evsel;
950 evsel->core.attr.inherit = inherit;
952 * This will group just the fds for this single evsel, to group
955 if (evsel__open(evsel, cpus, threads) < 0) {
978 .tp_name = "perf.evsel",
1104 struct evsel *evsel;
1110 evsel = &((struct pyrf_evsel *)pevsel)->evsel;
1111 evsel->core.idx = evlist->core.nr_entries;
1112 evlist__add(evlist, evsel);
1156 struct evsel *evsel;
1161 evsel = evlist__event2evsel(evlist, event);
1162 if (!evsel) {
1167 pevent->evsel = evsel;
1169 err = evsel__parse_sample(evsel, event, &pevent->sample);
1248 struct evsel *pos;
1258 return Py_BuildValue("O", container_of(pos, struct pyrf_evsel, evsel));
1447 PyModule_AddObject(module, "evsel", (PyObject*)&pyrf_evsel__type);