Lines Matching refs:evsel
16 typedef void (*setup_probe_fn_t)(struct evsel *evsel);
21 struct evsel *evsel; in perf_do_probe_api() local
33 evsel = evlist__first(evlist); in perf_do_probe_api()
36 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags); in perf_do_probe_api()
48 fn(evsel); in perf_do_probe_api()
50 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, flags); in perf_do_probe_api()
85 static void perf_probe_sample_identifier(struct evsel *evsel) in perf_probe_sample_identifier() argument
87 evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in perf_probe_sample_identifier()
90 static void perf_probe_comm_exec(struct evsel *evsel) in perf_probe_comm_exec() argument
92 evsel->core.attr.comm_exec = 1; in perf_probe_comm_exec()
95 static void perf_probe_context_switch(struct evsel *evsel) in perf_probe_context_switch() argument
97 evsel->core.attr.context_switch = 1; in perf_probe_context_switch()
142 struct evsel *evsel; in perf_evlist__config() local
159 evlist__for_each_entry(evlist, evsel) { in perf_evlist__config()
160 perf_evsel__config(evsel, opts, callchain); in perf_evlist__config()
161 if (evsel->tracking && use_comm_exec) in perf_evlist__config()
162 evsel->core.attr.comm_exec = 1; in perf_evlist__config()
174 struct evsel *first = evlist__first(evlist); in perf_evlist__config()
176 evlist__for_each_entry(evlist, evsel) { in perf_evlist__config()
177 if (evsel->core.attr.sample_type == first->core.attr.sample_type) in perf_evlist__config()
186 evlist__for_each_entry(evlist, evsel) in perf_evlist__config()
187 perf_evsel__set_sample_id(evsel, use_sample_identifier); in perf_evlist__config()
266 struct evsel *evsel; in perf_evlist__can_select_event() local
279 evsel = evlist__last(temp_evlist); in perf_evlist__can_select_event()
291 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu, -1, in perf_evlist__can_select_event()