Lines Matching defs:evsel
6 #include "util/evsel.h"
12 typedef void (*setup_probe_fn_t)(struct evsel *evsel);
17 struct evsel *evsel;
29 evsel = evlist__first(evlist);
32 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags);
44 fn(evsel);
46 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags);
81 static void perf_probe_sample_identifier(struct evsel *evsel)
83 evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER;
86 static void perf_probe_comm_exec(struct evsel *evsel)
88 evsel->core.attr.comm_exec = 1;
91 static void perf_probe_context_switch(struct evsel *evsel)
93 evsel->core.attr.context_switch = 1;
96 static void perf_probe_text_poke(struct evsel *evsel)
98 evsel->core.attr.text_poke = 1;