Lines Matching refs:evsel
23 struct perf_evsel *evsel; member
143 static inline struct cpu_map *perf_evsel__cpus(struct perf_evsel *evsel) in perf_evsel__cpus() argument
145 return evsel->cpus; in perf_evsel__cpus()
148 static inline int perf_evsel__nr_cpus(struct perf_evsel *evsel) in perf_evsel__nr_cpus() argument
150 return perf_evsel__cpus(evsel)->nr; in perf_evsel__nr_cpus()
156 void perf_evsel__compute_deltas(struct perf_evsel *evsel, int cpu, int thread,
160 int (*init)(struct perf_evsel *evsel),
161 void (*fini)(struct perf_evsel *evsel));
184 void perf_evsel__init(struct perf_evsel *evsel,
186 void perf_evsel__exit(struct perf_evsel *evsel);
187 void perf_evsel__delete(struct perf_evsel *evsel);
191 void perf_evsel__config(struct perf_evsel *evsel,
194 void perf_evsel__config_callchain(struct perf_evsel *evsel,
199 void perf_evsel__calc_id_pos(struct perf_evsel *evsel);
215 const char *perf_evsel__name(struct perf_evsel *evsel);
217 const char *perf_evsel__group_name(struct perf_evsel *evsel);
218 int perf_evsel__group_desc(struct perf_evsel *evsel, char *buf, size_t size);
220 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);
221 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
223 void __perf_evsel__set_sample_bit(struct perf_evsel *evsel,
225 void __perf_evsel__reset_sample_bit(struct perf_evsel *evsel,
228 #define perf_evsel__set_sample_bit(evsel, bit) \ argument
229 __perf_evsel__set_sample_bit(evsel, PERF_SAMPLE_##bit)
231 #define perf_evsel__reset_sample_bit(evsel, bit) \ argument
232 __perf_evsel__reset_sample_bit(evsel, PERF_SAMPLE_##bit)
234 void perf_evsel__set_sample_id(struct perf_evsel *evsel,
237 int perf_evsel__set_filter(struct perf_evsel *evsel, const char *filter);
238 int perf_evsel__append_tp_filter(struct perf_evsel *evsel, const char *filter);
239 int perf_evsel__append_addr_filter(struct perf_evsel *evsel,
241 int perf_evsel__apply_filter(struct perf_evsel *evsel, int ncpus, int nthreads,
243 int perf_evsel__enable(struct perf_evsel *evsel);
244 int perf_evsel__disable(struct perf_evsel *evsel);
246 int perf_evsel__open_per_cpu(struct perf_evsel *evsel,
248 int perf_evsel__open_per_thread(struct perf_evsel *evsel,
250 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
252 void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads);
256 void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample,
258 u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample,
261 static inline char *perf_evsel__strval(struct perf_evsel *evsel, in perf_evsel__strval() argument
265 return perf_evsel__rawptr(evsel, sample, name); in perf_evsel__strval()
272 struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name);
274 #define perf_evsel__match(evsel, t, c) \ argument
275 (evsel->attr.type == PERF_TYPE_##t && \
276 evsel->attr.config == PERF_COUNT_##c)
291 int perf_evsel__read(struct perf_evsel *evsel, int cpu, int thread,
294 int __perf_evsel__read_on_cpu(struct perf_evsel *evsel,
304 static inline int perf_evsel__read_on_cpu(struct perf_evsel *evsel, in perf_evsel__read_on_cpu() argument
307 return __perf_evsel__read_on_cpu(evsel, cpu, thread, false); in perf_evsel__read_on_cpu()
317 static inline int perf_evsel__read_on_cpu_scaled(struct perf_evsel *evsel, in perf_evsel__read_on_cpu_scaled() argument
320 return __perf_evsel__read_on_cpu(evsel, cpu, thread, true); in perf_evsel__read_on_cpu_scaled()
323 int perf_evsel__parse_sample(struct perf_evsel *evsel, union perf_event *event,
326 static inline struct perf_evsel *perf_evsel__next(struct perf_evsel *evsel) in perf_evsel__next() argument
328 return list_entry(evsel->node.next, struct perf_evsel, node); in perf_evsel__next()
331 static inline struct perf_evsel *perf_evsel__prev(struct perf_evsel *evsel) in perf_evsel__prev() argument
333 return list_entry(evsel->node.prev, struct perf_evsel, node); in perf_evsel__prev()
343 static inline bool perf_evsel__is_group_leader(const struct perf_evsel *evsel) in perf_evsel__is_group_leader() argument
345 return evsel->leader == evsel; in perf_evsel__is_group_leader()
356 static inline bool perf_evsel__is_group_event(struct perf_evsel *evsel) in perf_evsel__is_group_event() argument
361 return perf_evsel__is_group_leader(evsel) && evsel->nr_members > 1; in perf_evsel__is_group_event()
364 bool perf_evsel__is_function_event(struct perf_evsel *evsel);
366 static inline bool perf_evsel__is_bpf_output(struct perf_evsel *evsel) in perf_evsel__is_bpf_output() argument
368 struct perf_event_attr *attr = &evsel->attr; in perf_evsel__is_bpf_output()
382 int perf_evsel__fprintf(struct perf_evsel *evsel,
403 bool perf_evsel__fallback(struct perf_evsel *evsel, int err,
405 int perf_evsel__open_strerror(struct perf_evsel *evsel, struct target *target,
408 static inline int perf_evsel__group_idx(struct perf_evsel *evsel) in perf_evsel__group_idx() argument
410 return evsel->idx - evsel->leader->idx; in perf_evsel__group_idx()
418 static inline bool perf_evsel__has_branch_callstack(const struct perf_evsel *evsel) in perf_evsel__has_branch_callstack() argument
420 return evsel->attr.branch_sample_type & PERF_SAMPLE_BRANCH_CALL_STACK; in perf_evsel__has_branch_callstack()
428 char *perf_evsel__env_arch(struct perf_evsel *evsel);