Lines Matching refs:evsel
4 #include "evsel.h"
26 static struct evsel *evsel__read_sampler(struct evsel *evsel, struct evlist *evlist)
28 struct evsel *leader = evsel__leader(evsel);
32 evlist__for_each_entry(evlist, evsel) {
33 if (evsel__leader(evsel) == leader && evsel != evsel__leader(evsel))
34 return evsel;
41 static u64 evsel__config_term_mask(struct evsel *evsel)
44 struct list_head *config_terms = &evsel->config_terms;
53 static void evsel__config_leader_sampling(struct evsel *evsel, struct evlist *evlist)
55 struct perf_event_attr *attr = &evsel->core.attr;
56 struct evsel *leader = evsel__leader(evsel);
57 struct evsel *read_sampler;
63 read_sampler = evsel__read_sampler(evsel, evlist);
65 if (evsel == read_sampler)
68 term_types = evsel__config_term_mask(evsel);
97 struct evsel *evsel;
107 evlist__for_each_entry(evlist, evsel) {
108 evsel__config(evsel, opts, callchain);
109 if (evsel->tracking && use_comm_exec)
110 evsel->core.attr.comm_exec = 1;
114 evlist__for_each_entry(evlist, evsel)
115 evsel__config_leader_sampling(evsel, evlist);
126 struct evsel *first = evlist__first(evlist);
128 evlist__for_each_entry(evlist, evsel) {
129 if (evsel->core.attr.sample_type == first->core.attr.sample_type)
138 evlist__for_each_entry(evlist, evsel)
139 evsel__set_sample_id(evsel, use_sample_identifier);
224 struct evsel *evsel;
238 evsel = evlist__last(temp_evlist);
252 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1,