Lines Matching refs:evsel
40 * Per fd, to map back from PERF_SAMPLE_ID to evsel, only used when there are
46 struct perf_evsel *evsel;
79 void perf_evsel__init(struct perf_evsel *evsel,
81 void perf_evsel__exit(struct perf_evsel *evsel);
82 void perf_evsel__delete(struct perf_evsel *evsel);
84 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
85 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);
86 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus);
87 void perf_evsel__free_fd(struct perf_evsel *evsel);
88 void perf_evsel__free_id(struct perf_evsel *evsel);
89 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
91 int perf_evsel__open_per_cpu(struct perf_evsel *evsel,
93 int perf_evsel__open_per_thread(struct perf_evsel *evsel,
95 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
98 #define perf_evsel__match(evsel, t, c) \
99 (evsel->attr.type == PERF_TYPE_##t && \
100 evsel->attr.config == PERF_COUNT_##c)
102 int __perf_evsel__read_on_cpu(struct perf_evsel *evsel,
108 * @evsel - event selector to read value
112 static inline int perf_evsel__read_on_cpu(struct perf_evsel *evsel,
115 return __perf_evsel__read_on_cpu(evsel, cpu, thread, false);
121 * @evsel - event selector to read value
125 static inline int perf_evsel__read_on_cpu_scaled(struct perf_evsel *evsel,
128 return __perf_evsel__read_on_cpu(evsel, cpu, thread, true);
131 int __perf_evsel__read(struct perf_evsel *evsel, int ncpus, int nthreads,
137 * @evsel - event selector to read value
141 static inline int perf_evsel__read(struct perf_evsel *evsel,
144 return __perf_evsel__read(evsel, ncpus, nthreads, false);
150 * @evsel - event selector to read value
154 static inline int perf_evsel__read_scaled(struct perf_evsel *evsel,
157 return __perf_evsel__read(evsel, ncpus, nthreads, true);
162 static inline int perf_evsel__sample_size(struct perf_evsel *evsel)
164 return __perf_evsel__sample_size(evsel->attr.sample_type);