Home
last modified time | relevance | path

Searched refs:evsel (Results 1 - 25 of 330) sorted by relevance

12345678910>>...14

/kernel/linux/linux-6.6/tools/perf/util/
H A Devsel.h10 #include <internal/evsel.h>
11 #include <perf/evsel.h>
44 /** struct evsel - event selector
46 * @evlist - evlist this evsel is in, if it is in one.
47 * @core - libperf evsel object
59 struct evsel { struct
108 * references to other metric (evsel).
110 struct evsel **metric_events;
111 struct evsel *metric_leader;
142 * For reporting purposes, an evsel sampl
202 evsel__cpus(struct evsel *evsel) evsel__cpus() argument
207 evsel__nr_cpus(struct evsel *evsel) evsel__nr_cpus() argument
267 evsel__is_bpf(struct evsel *evsel) evsel__is_bpf() argument
272 evsel__is_bperf(struct evsel *evsel) evsel__is_bperf() argument
293 evsel__is_tool(const struct evsel *evsel) evsel__is_tool() argument
344 evsel__strval(struct evsel *evsel, struct perf_sample *sample, const char *name) evsel__strval() argument
356 __evsel__match(const struct evsel *evsel, u32 type, u64 config) __evsel__match() argument
387 evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread) evsel__read_on_cpu() argument
399 evsel__read_on_cpu_scaled(struct evsel *evsel, int cpu_map_idx, int thread) evsel__read_on_cpu_scaled() argument
412 evsel__next(struct evsel *evsel) evsel__next() argument
417 evsel__prev(struct evsel *evsel) evsel__prev() argument
429 evsel__is_group_leader(const struct evsel *evsel) evsel__is_group_leader() argument
442 evsel__is_group_event(struct evsel *evsel) evsel__is_group_event() argument
452 evsel__is_bpf_output(struct evsel *evsel) evsel__is_bpf_output() argument
457 evsel__is_clock(const struct evsel *evsel) evsel__is_clock() argument
467 evsel__group_idx(struct evsel *evsel) evsel__group_idx() argument
492 evsel__has_branch_callstack(const struct evsel *evsel) evsel__has_branch_callstack() argument
497 evsel__has_branch_hw_idx(const struct evsel *evsel) evsel__has_branch_hw_idx() argument
502 evsel__has_callchain(const struct evsel *evsel) evsel__has_callchain() argument
512 evsel__has_br_stack(const struct evsel *evsel) evsel__has_br_stack() argument
522 evsel__is_dummy_event(struct evsel *evsel) evsel__is_dummy_event() argument
[all...]
H A Devsel.c25 #include <perf/evsel.h>
32 #include "evsel.h"
96 static int evsel__no_extra_init(struct evsel *evsel __maybe_unused) in evsel__no_extra_init()
103 static void evsel__no_extra_fini(struct evsel *evsel __maybe_unused) in evsel__no_extra_fini()
109 int (*init)(struct evsel *evsel);
110 void (*fini)(struct evsel *evsel);
117 evsel__object_config(size_t object_size, int (*init)(struct evsel *evsel), void (*fini)(struct evsel *evsel)) evsel__object_config() argument
217 evsel__calc_id_pos(struct evsel *evsel) evsel__calc_id_pos() argument
223 __evsel__set_sample_bit(struct evsel *evsel, enum perf_event_sample_format bit) __evsel__set_sample_bit() argument
233 __evsel__reset_sample_bit(struct evsel *evsel, enum perf_event_sample_format bit) __evsel__reset_sample_bit() argument
243 evsel__set_sample_id(struct evsel *evsel, bool can_sample_identifier) evsel__set_sample_id() argument
263 evsel__is_function_event(struct evsel *evsel) evsel__is_function_event() argument
273 evsel__init(struct evsel *evsel, struct perf_event_attr *attr, int idx) evsel__init() argument
301 struct evsel *evsel = zalloc(perf_evsel__object.size); evsel__new_idx() local
358 struct evsel *evsel; evsel__clone() local
456 struct evsel *evsel = zalloc(perf_evsel__object.size); evsel__newtp_idx() local
536 evsel__add_modifiers(struct evsel *evsel, char *bf, size_t size) evsel__add_modifiers() argument
572 arch_evsel__hw_name(struct evsel *evsel, char *bf, size_t size) arch_evsel__hw_name() argument
577 evsel__hw_name(struct evsel *evsel, char *bf, size_t size) evsel__hw_name() argument
603 evsel__sw_name(struct evsel *evsel, char *bf, size_t size) evsel__sw_name() argument
632 evsel__bp_name(struct evsel *evsel, char *bf, size_t size) evsel__bp_name() argument
728 evsel__hw_cache_name(struct evsel *evsel, char *bf, size_t size) evsel__hw_cache_name() argument
734 evsel__raw_name(struct evsel *evsel, char *bf, size_t size) evsel__raw_name() argument
740 evsel__name(struct evsel *evsel) evsel__name() argument
792 evsel__name_is(struct evsel *evsel, const char *name) evsel__name_is() argument
797 evsel__metric_id(const struct evsel *evsel) evsel__metric_id() argument
808 evsel__group_name(struct evsel *evsel) evsel__group_name() argument
823 evsel__group_desc(struct evsel *evsel, char *buf, size_t size) evsel__group_desc() argument
843 __evsel__config_callchain(struct evsel *evsel, struct record_opts *opts, struct callchain_param *param) __evsel__config_callchain() argument
904 evsel__config_callchain(struct evsel *evsel, struct record_opts *opts, struct callchain_param *param) evsel__config_callchain() argument
911 evsel__reset_callgraph(struct evsel *evsel, struct callchain_param *param) evsel__reset_callgraph() argument
928 evsel__apply_config_terms(struct evsel *evsel, struct record_opts *opts, bool track) evsel__apply_config_terms() argument
1061 __evsel__get_config_term(struct evsel *evsel, enum evsel_term_type type) __evsel__get_config_term() argument
1073 arch_evsel__set_sample_weight(struct evsel *evsel) arch_evsel__set_sample_weight() argument
1094 evsel__is_offcpu_event(struct evsel *evsel) evsel__is_offcpu_event() argument
1127 evsel__config(struct evsel *evsel, struct record_opts *opts, struct callchain_param *callchain) evsel__config() argument
1371 evsel__set_filter(struct evsel *evsel, const char *filter) evsel__set_filter() argument
1384 evsel__append_filter(struct evsel *evsel, const char *fmt, const char *filter) evsel__append_filter() argument
1400 evsel__append_tp_filter(struct evsel *evsel, const char *filter) evsel__append_tp_filter() argument
1405 evsel__append_addr_filter(struct evsel *evsel, const char *filter) evsel__append_addr_filter() argument
1411 evsel__enable_cpu(struct evsel *evsel, int cpu_map_idx) evsel__enable_cpu() argument
1416 evsel__enable(struct evsel *evsel) evsel__enable() argument
1426 evsel__disable_cpu(struct evsel *evsel, int cpu_map_idx) evsel__disable_cpu() argument
1431 evsel__disable(struct evsel *evsel) evsel__disable() argument
1458 evsel__free_config_terms(struct evsel *evsel) evsel__free_config_terms() argument
1463 evsel__exit(struct evsel *evsel) evsel__exit() argument
1491 evsel__delete(struct evsel *evsel) evsel__delete() argument
1500 evsel__compute_deltas(struct evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) evsel__compute_deltas() argument
1516 evsel__read_one(struct evsel *evsel, int cpu_map_idx, int thread) evsel__read_one() argument
1602 evsel__read_counter(struct evsel *evsel, int cpu_map_idx, int thread) evsel__read_counter() argument
1612 __evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread, bool scale) __evsel__read_on_cpu() argument
1632 evsel__match_other_cpu(struct evsel *evsel, struct evsel *other, int cpu_map_idx) evsel__match_other_cpu() argument
1641 evsel__hybrid_group_cpu_map_idx(struct evsel *evsel, int cpu_map_idx) evsel__hybrid_group_cpu_map_idx() argument
1653 get_group_fd(struct evsel *evsel, int cpu_map_idx, int thread) get_group_fd() argument
1688 update_fds(struct evsel *evsel, int nr_cpus, int cpu_map_idx, int nr_threads, int thread_idx) update_fds() argument
1712 evsel__ignore_missing_thread(struct evsel *evsel, int nr_cpus, int cpu_map_idx, struct perf_thread_map *threads, int thread, int err) evsel__ignore_missing_thread() argument
1765 evsel__precise_ip_fallback(struct evsel *evsel) evsel__precise_ip_fallback() argument
1792 __evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) __evsel__prepare_open() argument
1832 evsel__disable_missing_features(struct evsel *evsel) evsel__disable_missing_features() argument
1867 evsel__prepare_open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) evsel__prepare_open() argument
1881 evsel__detect_missing_features(struct evsel *evsel) evsel__detect_missing_features() argument
2019 evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads, int start_cpu_map_idx, int end_cpu_map_idx) evsel__open_cpu() argument
2171 evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) evsel__open() argument
2177 evsel__close(struct evsel *evsel) evsel__close() argument
2183 evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu_map_idx) evsel__open_per_cpu() argument
2191 evsel__open_per_thread(struct evsel *evsel, struct perf_thread_map *threads) evsel__open_per_thread() argument
2196 perf_evsel__parse_id_sample(const struct evsel *evsel, const union perf_event *event, struct perf_sample *sample) perf_evsel__parse_id_sample() argument
2347 evsel__parse_sample(struct evsel *evsel, union perf_event *event, struct perf_sample *data) evsel__parse_sample() argument
2693 evsel__parse_sample_timestamp(struct evsel *evsel, union perf_event *event, u64 *timestamp) evsel__parse_sample_timestamp() argument
2736 evsel__id_hdr_size(struct evsel *evsel) evsel__id_hdr_size() argument
2763 evsel__field(struct evsel *evsel, const char *name) evsel__field() argument
2768 evsel__rawptr(struct evsel *evsel, struct perf_sample *sample, const char *name) evsel__rawptr() argument
2827 evsel__intval(struct evsel *evsel, struct perf_sample *sample, const char *name) evsel__intval() argument
2835 evsel__fallback(struct evsel *evsel, int err, char *msg, size_t msgsize) evsel__fallback() argument
2933 evsel__open_strerror(struct evsel *evsel, struct target *target, int err, char *msg, size_t size) evsel__open_strerror() argument
3059 evsel__env(struct evsel *evsel) evsel__env() argument
3066 store_evsel_ids(struct evsel *evsel, struct evlist *evlist) store_evsel_ids() argument
3084 evsel__store_ids(struct evsel *evsel, struct evlist *evlist) evsel__store_ids() argument
3095 evsel__zero_per_pkg(struct evsel *evsel) evsel__zero_per_pkg() argument
3113 evsel__is_hybrid(const struct evsel *evsel) evsel__is_hybrid() argument
3121 evsel__leader(const struct evsel *evsel) evsel__leader() argument
3126 evsel__has_leader(struct evsel *evsel, struct evsel *leader) evsel__has_leader() argument
3131 evsel__is_leader(struct evsel *evsel) evsel__is_leader() argument
3136 evsel__set_leader(struct evsel *evsel, struct evsel *leader) evsel__set_leader() argument
3141 evsel__source_count(const struct evsel *evsel) evsel__source_count() argument
3163 evsel__remove_from_group(struct evsel *evsel, struct evsel *leader) evsel__remove_from_group() argument
[all...]
H A Dstat.c15 #include "evsel.h"
80 static void evsel__reset_aggr_stats(struct evsel *evsel) in evsel__reset_aggr_stats() argument
82 struct perf_stat_evsel *ps = evsel->stats; in evsel__reset_aggr_stats()
89 static void evsel__reset_stat_priv(struct evsel *evsel) in evsel__reset_stat_priv() argument
91 struct perf_stat_evsel *ps = evsel->stats; in evsel__reset_stat_priv()
94 evsel__reset_aggr_stats(evsel); in evsel__reset_stat_priv()
97 static int evsel__alloc_aggr_stats(struct evsel *evsel, in argument
114 struct evsel *evsel; evlist__alloc_aggr_stats() local
123 evsel__alloc_stat_priv(struct evsel *evsel, int nr_aggr) evsel__alloc_stat_priv() argument
143 evsel__free_stat_priv(struct evsel *evsel) evsel__free_stat_priv() argument
154 evsel__alloc_prev_raw_counts(struct evsel *evsel) evsel__alloc_prev_raw_counts() argument
167 evsel__free_prev_raw_counts(struct evsel *evsel) evsel__free_prev_raw_counts() argument
173 evsel__reset_prev_raw_counts(struct evsel *evsel) evsel__reset_prev_raw_counts() argument
179 evsel__alloc_stats(struct evsel *evsel, int nr_aggr, bool alloc_raw) evsel__alloc_stats() argument
192 struct evsel *evsel; evlist__alloc_stats() local
212 struct evsel *evsel; evlist__free_stats() local
223 struct evsel *evsel; evlist__reset_stats() local
233 struct evsel *evsel; evlist__reset_aggr_stats() local
241 struct evsel *evsel; evlist__reset_prev_raw_counts() local
247 evsel__copy_prev_raw_counts(struct evsel *evsel) evsel__copy_prev_raw_counts() argument
261 struct evsel *evsel; evlist__copy_prev_raw_counts() local
267 evsel__copy_res_stats(struct evsel *evsel) evsel__copy_res_stats() argument
280 struct evsel *evsel; evlist__copy_res_stats() local
366 evsel__count_has_error(struct evsel *evsel, struct perf_counts_values *count, struct perf_stat_config *config) evsel__count_has_error() argument
386 process_counter_values(struct perf_stat_config *config, struct evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) process_counter_values() argument
511 evsel__merge_aggr_counters(struct evsel *evsel, struct evsel *alias) evsel__merge_aggr_counters() argument
559 evsel__merge_aliases(struct evsel *evsel) evsel__merge_aliases() argument
574 evsel__should_merge_hybrid(const struct evsel *evsel, const struct perf_stat_config *config) evsel__should_merge_hybrid() argument
580 evsel__merge_stats(struct evsel *evsel, struct perf_stat_config *config) evsel__merge_stats() argument
593 struct evsel *evsel; perf_stat_merge_counters() local
602 evsel__update_percore_stats(struct evsel *evsel, struct aggr_cpu_id *core_id) evsel__update_percore_stats() argument
640 evsel__process_percore(struct evsel *evsel) evsel__process_percore() argument
664 struct evsel *evsel; perf_stat_process_percore() local
745 create_perf_stat_counter(struct evsel *evsel, struct perf_stat_config *config, struct target *target, int cpu_map_idx) create_perf_stat_counter() argument
[all...]
H A Dbpf_counter.c19 #include "evsel.h"
48 static int bpf_program_profiler__destroy(struct evsel *evsel) in bpf_program_profiler__destroy() argument
53 &evsel->bpf_counter_list, list) { in bpf_program_profiler__destroy()
58 assert(list_empty(&evsel->bpf_counter_list)); in bpf_program_profiler__destroy()
102 static int bpf_program_profiler_load_one(struct evsel *evsel, u32 prog_id) in bpf_program_profiler_load_one() argument
128 skel->rodata->num_cpu = evsel__nr_cpus(evsel); in bpf_program_profiler_load_one()
130 bpf_map__set_max_entries(skel->maps.events, evsel__nr_cpus(evsel)); in bpf_program_profiler_load_one()
157 list_add(&counter->list, &evsel in bpf_program_profiler_load_one()
167 bpf_program_profiler__load(struct evsel *evsel, struct target *target) bpf_program_profiler__load() argument
198 bpf_program_profiler__enable(struct evsel *evsel) bpf_program_profiler__enable() argument
214 bpf_program_profiler__disable(struct evsel *evsel) bpf_program_profiler__disable() argument
225 bpf_program_profiler__read(struct evsel *evsel) bpf_program_profiler__read() argument
273 bpf_program_profiler__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) bpf_program_profiler__install_pe() argument
362 bperf_check_target(struct evsel *evsel, struct target *target, enum bperf_filter_type *filter_type, __u32 *filter_entry_cnt) bperf_check_target() argument
395 bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd, struct perf_event_attr_map_entry *entry) bperf_reload_leader_program() argument
444 bperf__load(struct evsel *evsel, struct target *target) bperf__load() argument
574 bperf__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) bperf__install_pe() argument
586 bperf_sync_counters(struct evsel *evsel) bperf_sync_counters() argument
598 bperf__enable(struct evsel *evsel) bperf__enable() argument
604 bperf__disable(struct evsel *evsel) bperf__disable() argument
610 bperf__read(struct evsel *evsel) bperf__read() argument
670 bperf__destroy(struct evsel *evsel) bperf__destroy() argument
764 bpf_counter_skip(struct evsel *evsel) bpf_counter_skip() argument
769 bpf_counter__install_pe(struct evsel *evsel, int cpu_map_idx, int fd) bpf_counter__install_pe() argument
776 bpf_counter__load(struct evsel *evsel, struct target *target) bpf_counter__load() argument
791 bpf_counter__enable(struct evsel *evsel) bpf_counter__enable() argument
798 bpf_counter__disable(struct evsel *evsel) bpf_counter__disable() argument
805 bpf_counter__read(struct evsel *evsel) bpf_counter__read() argument
812 bpf_counter__destroy(struct evsel *evsel) bpf_counter__destroy() argument
[all...]
H A Dstat-shadow.c4 #include "evsel.h"
55 static int evsel_context(const struct evsel *evsel) in evsel_context() argument
59 if (evsel->core.attr.exclude_kernel) in evsel_context()
61 if (evsel->core.attr.exclude_user) in evsel_context()
63 if (evsel->core.attr.exclude_hv) in evsel_context()
65 if (evsel->core.attr.exclude_host) in evsel_context()
67 if (evsel->core.attr.exclude_idle) in evsel_context()
79 static enum stat_type evsel__stat_type(const struct evsel *evsel) in evsel__stat_type() argument
153 find_stat(const struct evsel *evsel, int aggr_idx, enum stat_type type) find_stat() argument
187 print_ratio(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double numerator, struct perf_stat_output_ctx *out, enum stat_type denominator_type, const double color_ratios[3], const char *unit) print_ratio() argument
204 print_stalled_cycles_front(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double stalled, struct perf_stat_output_ctx *out) print_stalled_cycles_front() argument
215 print_stalled_cycles_back(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double stalled, struct perf_stat_output_ctx *out) print_stalled_cycles_back() argument
226 print_branch_miss(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double misses, struct perf_stat_output_ctx *out) print_branch_miss() argument
237 print_l1d_miss(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double misses, struct perf_stat_output_ctx *out) print_l1d_miss() argument
248 print_l1i_miss(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double misses, struct perf_stat_output_ctx *out) print_l1i_miss() argument
259 print_ll_miss(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double misses, struct perf_stat_output_ctx *out) print_ll_miss() argument
270 print_dtlb_miss(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double misses, struct perf_stat_output_ctx *out) print_dtlb_miss() argument
281 print_itlb_miss(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double misses, struct perf_stat_output_ctx *out) print_itlb_miss() argument
292 print_cache_miss(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double misses, struct perf_stat_output_ctx *out) print_cache_miss() argument
303 print_instructions(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double instructions, struct perf_stat_output_ctx *out) print_instructions() argument
327 print_cycles(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx, double cycles, struct perf_stat_output_ctx *out) print_cycles() argument
342 print_nsecs(struct perf_stat_config *config, const struct evsel *evsel, int aggr_idx __maybe_unused, double nsecs, struct perf_stat_output_ctx *out) print_nsecs() argument
537 perf_stat__print_metricgroup_header(struct perf_stat_config *config, struct evsel *evsel, void *ctxp, const char *name, struct perf_stat_output_ctx *out) perf_stat__print_metricgroup_header() argument
584 perf_stat__print_shadow_stats_metricgroup(struct perf_stat_config *config, struct evsel *evsel, int aggr_idx, int *num, void *from, struct perf_stat_output_ctx *out, struct rblist *metric_events) perf_stat__print_shadow_stats_metricgroup() argument
637 perf_stat__print_shadow_stats(struct perf_stat_config *config, struct evsel *evsel, double avg, int aggr_idx, struct perf_stat_output_ctx *out, struct rblist *metric_events) perf_stat__print_shadow_stats() argument
700 perf_stat__skip_metric_event(struct evsel *evsel, struct rblist *metric_events, u64 ena, u64 run) perf_stat__skip_metric_event() argument
[all...]
H A Dbpf_counter.h14 struct evsel;
18 typedef int (*bpf_counter_evsel_op)(struct evsel *evsel);
19 typedef int (*bpf_counter_evsel_target_op)(struct evsel *evsel,
21 typedef int (*bpf_counter_evsel_install_pe_op)(struct evsel *evsel,
41 int bpf_counter__load(struct evsel *evsel, struct target *target);
42 int bpf_counter__enable(struct evsel *evse
[all...]
H A Devlist.c17 #include "evsel.h"
58 #include <perf/evsel.h>
110 struct evsel *evsel; in evlist__new_default() local
112 evlist__for_each_entry(evlist, evsel) in evlist__new_default()
113 evsel__set_sample_id(evsel, /*can_sample_identifier=*/false); in evlist__new_default()
140 struct evsel *first = evlist__first(evlist); in evlist__set_id_pos()
148 struct evsel *evsel; in evlist__update_id_pos() local
150 evlist__for_each_entry(evlist, evsel) in evlist__update_id_pos()
200 evlist__remove(struct evlist *evlist, struct evsel *evsel) evlist__remove() argument
209 struct evsel *evsel, *temp, *leader = NULL; evlist__splice_list_tail() local
235 struct evsel *evsel = evlist__find_tracepoint_by_name(evlist, assocs[i].name); __evlist__set_tracepoints_handlers() local
271 struct evsel *evsel = evlist__dummy_event(evlist); evlist__add_dummy() local
282 struct evsel *evsel = evlist__dummy_event(evlist); evlist__add_aux_dummy() local
301 struct evsel *evsel = evsel__newtp_idx("sched", "sched_switch", 0); evlist__add_sched_switch() local
319 struct evsel *evsel, *n; evlist__add_attrs() local
362 struct evsel *evsel; evlist__find_tracepoint_by_id() local
375 struct evsel *evsel; evlist__find_tracepoint_by_name() local
389 struct evsel *evsel = evsel__newtp(sys, name); evlist__add_newtp() local
838 struct evsel *evsel = container_of(_evsel, struct evsel, core); perf_evlist__mmap_cb_idx() local
1090 struct evsel *evsel; evlist__apply_filters() local
1123 struct evsel *evsel; evlist__set_tp_filter() local
1143 struct evsel *evsel; evlist__append_tp_filter() local
1236 struct evsel *evsel; __evlist__combined_sample_type() local
1255 struct evsel *evsel; evlist__combined_branch_type() local
1310 evlist__set_selected(struct evlist *evlist, struct evsel *evsel) evlist__set_selected() argument
1317 struct evsel *evsel; evlist__close() local
1381 struct evsel *evsel; evlist__open() local
1550 struct evsel *evsel = evlist__event2evsel(evlist, event); evlist__parse_sample() local
1571 struct evsel *evsel = evlist__event2evsel(evlist, event); evlist__parse_sample_timestamp() local
1664 struct evsel *evsel, *n; evlist__to_front() local
1680 struct evsel *evsel; evlist__get_tracking_event() local
1692 struct evsel *evsel; evlist__set_tracking_event() local
1707 struct evsel *evsel; evlist__find_evsel_by_str() local
1778 struct evsel *evsel; evlist__exclude_kernel() local
1803 evlist__reset_weak_group(struct evlist *evsel_list, struct evsel *evsel, bool close) evlist__reset_weak_group() argument
2068 struct evsel *evsel; evlist__ctlfd_enable() local
2109 struct evsel *evsel; evlist__ctlfd_list() local
2419 struct evsel *evsel; evlist__find_evsel() local
2430 struct evsel *evsel; evlist__scnprintf_evsels() local
2449 struct evsel *leader, *evsel, *pos; evlist__check_mem_load_aux() local
[all...]
H A Drecord.c4 #include "evsel.h"
26 static struct evsel *evsel__read_sampler(struct evsel *evsel, struct evlist *evlist) in evsel__read_sampler() argument
28 struct evsel *leader = evsel__leader(evsel); in evsel__read_sampler()
32 evlist__for_each_entry(evlist, evsel) { in evsel__read_sampler()
33 if (evsel__leader(evsel) == leader && evsel != evsel__leader(evsel)) in evsel__read_sampler()
41 evsel__config_term_mask(struct evsel *evsel) evsel__config_term_mask() argument
53 evsel__config_leader_sampling(struct evsel *evsel, struct evlist *evlist) evsel__config_leader_sampling() argument
97 struct evsel *evsel; evlist__config() local
224 struct evsel *evsel; evlist__can_select_event() local
[all...]
H A Dperf_api_probe.c6 #include "util/evsel.h"
12 typedef void (*setup_probe_fn_t)(struct evsel *evsel);
17 struct evsel *evsel; in perf_do_probe_api() local
29 evsel = evlist__first(evlist); in perf_do_probe_api()
32 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags); in perf_do_probe_api()
44 fn(evsel); in perf_do_probe_api()
46 fd = sys_perf_event_open(&evsel->core.attr, pid, cpu.cpu, -1, flags); in perf_do_probe_api()
82 static void perf_probe_sample_identifier(struct evsel *evse argument
87 perf_probe_comm_exec(struct evsel *evsel) perf_probe_comm_exec() argument
92 perf_probe_context_switch(struct evsel *evsel) perf_probe_context_switch() argument
97 perf_probe_text_poke(struct evsel *evsel) perf_probe_text_poke() argument
102 perf_probe_build_id(struct evsel *evsel) perf_probe_build_id() argument
107 perf_probe_cgroup(struct evsel *evsel) perf_probe_cgroup() argument
[all...]
H A Dbpf_counter_cgroup.c23 #include "evsel.h"
39 static struct evsel *cgrp_switch;
47 struct evsel *evsel; in bperf_load_program() local
112 evlist__for_each_entry(evlist, evsel) { in bperf_load_program()
113 if (cgrp == NULL || evsel->cgrp == leader_cgrp) { in bperf_load_program()
114 leader_cgrp = evsel->cgrp; in bperf_load_program()
115 evsel->cgrp = NULL; in bperf_load_program()
118 err = evsel__open_per_cpu(evsel, evsel in bperf_load_program()
170 bperf_cgrp__load(struct evsel *evsel, struct target *target __maybe_unused) bperf_cgrp__load() argument
211 bperf_cgrp__enable(struct evsel *evsel) bperf_cgrp__enable() argument
222 bperf_cgrp__disable(struct evsel *evsel) bperf_cgrp__disable() argument
233 bperf_cgrp__read(struct evsel *evsel) bperf_cgrp__read() argument
277 bperf_cgrp__destroy(struct evsel *evsel) bperf_cgrp__destroy() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dparse-events.c3 #include "evsel.h"
37 static bool test_config(const struct evsel *evsel, __u64 expected_config) in test_config() argument
39 __u32 type = evsel->core.attr.type; in test_config()
40 __u64 config = evsel->core.attr.config; in test_config()
52 static bool test_perf_config(const struct perf_evsel *evsel, __u64 expected_config) in test_perf_config() argument
54 return (evsel->attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_perf_config()
87 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint() local
91 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel in test__checkevent_tracepoint()
100 struct evsel *evsel; test__checkevent_tracepoint_multi() local
119 struct perf_evsel *evsel; test__checkevent_raw() local
157 struct evsel *evsel = evlist__first(evlist); test__checkevent_numeric() local
167 struct perf_evsel *evsel; test__checkevent_symbolic_name() local
181 struct perf_evsel *evsel; test__checkevent_symbolic_name_config() local
201 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias() local
211 struct perf_evsel *evsel; test__checkevent_genhw() local
224 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint() local
238 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x() local
251 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r() local
266 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w() local
281 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw() local
297 struct evsel *evsel = evlist__first(evlist); test__checkevent_tracepoint_modifier() local
310 struct perf_evsel *evsel; test__checkevent_tracepoint_multi_modifier() local
327 struct perf_evsel *evsel; test__checkevent_raw_modifier() local
340 struct perf_evsel *evsel; test__checkevent_numeric_modifier() local
353 struct perf_evsel *evsel; test__checkevent_symbolic_name_modifier() local
369 struct perf_evsel *evsel; test__checkevent_exclude_host_modifier() local
380 struct perf_evsel *evsel; test__checkevent_exclude_guest_modifier() local
391 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias_modifier() local
403 struct perf_evsel *evsel; test__checkevent_genhw_modifier() local
416 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier() local
431 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier_1() local
446 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_modifier() local
461 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x_modifier() local
475 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r_modifier() local
489 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w_modifier() local
503 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw_modifier() local
517 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_modifier_name() local
531 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x_modifier_name() local
545 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r_modifier_name() local
559 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w_modifier_name() local
573 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw_modifier_name() local
587 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_2_events() local
605 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu() local
625 struct evsel *evsel = evlist__first(evlist); test__checkevent_list() local
668 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_name() local
689 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_partial_time_callgraph() local
720 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_events() local
740 struct evsel *evsel = NULL; test__checkevent_pmu_events_mix() local
856 struct evsel *evsel, *leader; test__group1() local
899 struct evsel *evsel, *leader = NULL; test__group2() local
959 struct evsel *evsel, *group1_leader = NULL, *group2_leader = NULL; test__group3() local
1065 struct evsel *evsel, *leader; test__group4() local
1110 struct evsel *evsel = NULL, *leader; test__group5() local
1196 struct evsel *evsel = NULL, *leader; test__group_gh1() local
1237 struct evsel *evsel = NULL, *leader; test__group_gh2() local
1278 struct evsel *evsel = NULL, *leader; test__group_gh3() local
1319 struct evsel *evsel = NULL, *leader; test__group_gh4() local
1360 struct evsel *evsel = NULL, *leader; test__leader_sample1() local
1412 struct evsel *evsel = NULL, *leader; test__leader_sample2() local
1451 struct evsel *evsel = NULL; test__checkevent_pinned_modifier() local
1469 struct evsel *evsel = NULL, *leader; test__pinned_group() local
1501 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclusive_modifier() local
1514 struct evsel *evsel = NULL, *leader; test__exclusive_group() local
1545 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len() local
1560 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_w() local
1576 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_rw_modifier() local
1588 struct evsel *evsel = evlist__first(evlist); test__checkevent_precise_max_modifier() local
1599 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_symbol() local
1607 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_raw() local
1615 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_num() local
1623 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_cache() local
1651 struct evsel *evsel = evlist__first(evlist); test__intel_pt() local
1659 struct evsel *evsel = evlist__first(evlist); test__checkevent_complex_name() local
1669 struct evsel *evsel = evlist__first(evlist); test__checkevent_raw_pmu() local
1679 struct evsel *evsel = evlist__first(evlist); test__sym_event_slash() local
1689 struct evsel *evsel = evlist__first(evlist); test__sym_event_dc() local
1699 struct evsel *evsel = evlist__first(evlist); test__term_equal_term() local
1709 struct evsel *evsel = evlist__first(evlist); test__term_equal_legacy() local
[all...]
H A Devsel-tp-sched.c4 #include "evsel.h"
8 static int evsel__test_field(struct evsel *evsel, const char *name, int size, bool should_be_signed) in evsel__test_field() argument
10 struct tep_format_field *field = evsel__field(evsel, name); in evsel__test_field()
15 pr_debug("%s: \"%s\" field not found!\n", evsel->name, name); in evsel__test_field()
22 evsel->name, name, is_signed, should_be_signed); in evsel__test_field()
28 evsel->name, name, field->size, size); in evsel__test_field()
38 struct evsel *evsel = evsel__newtp("sched", "sched_switch"); in test__perf_evsel__tp_sched_test() local
41 if (IS_ERR(evsel)) { in test__perf_evsel__tp_sched_test()
[all...]
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dparse-events.c3 #include "evsel.h"
49 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint() local
53 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel->core.attr.type); in test__checkevent_tracepoint()
55 PERF_TP_SAMPLE_TYPE == evsel->core.attr.sample_type); in test__checkevent_tracepoint()
56 TEST_ASSERT_VAL("wrong sample_period", 1 == evsel->core.attr.sample_period); in test__checkevent_tracepoint()
62 struct evsel *evsel; in test__checkevent_tracepoint_multi() local
67 evlist__for_each_entry(evlist, evsel) { in test__checkevent_tracepoint_multi()
69 PERF_TYPE_TRACEPOINT == evsel in test__checkevent_tracepoint_multi()
80 struct evsel *evsel = evlist__first(evlist); test__checkevent_raw() local
90 struct evsel *evsel = evlist__first(evlist); test__checkevent_numeric() local
100 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_name() local
111 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_name_config() local
132 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias() local
143 struct evsel *evsel = evlist__first(evlist); test__checkevent_genhw() local
153 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint() local
167 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x() local
180 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r() local
195 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w() local
210 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw() local
225 struct evsel *evsel = evlist__first(evlist); test__checkevent_tracepoint_modifier() local
238 struct evsel *evsel; test__checkevent_tracepoint_multi_modifier() local
256 struct evsel *evsel = evlist__first(evlist); test__checkevent_raw_modifier() local
268 struct evsel *evsel = evlist__first(evlist); test__checkevent_numeric_modifier() local
280 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_name_modifier() local
292 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_host_modifier() local
302 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_guest_modifier() local
312 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias_modifier() local
324 struct evsel *evsel = evlist__first(evlist); test__checkevent_genhw_modifier() local
336 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier() local
351 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier_1() local
366 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_modifier() local
381 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x_modifier() local
395 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r_modifier() local
409 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w_modifier() local
423 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw_modifier() local
438 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu() local
456 struct evsel *evsel = evlist__first(evlist); test__checkevent_list() local
495 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_name() local
516 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_partial_time_callgraph() local
549 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_events() local
568 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_events_mix() local
670 struct evsel *evsel, *leader; test__group1() local
712 struct evsel *evsel, *leader; test__group2() local
767 struct evsel *evsel, *leader; test__group3() local
859 struct evsel *evsel, *leader; test__group4() local
903 struct evsel *evsel, *leader; test__group5() local
989 struct evsel *evsel, *leader; test__group_gh1() local
1029 struct evsel *evsel, *leader; test__group_gh2() local
1069 struct evsel *evsel, *leader; test__group_gh3() local
1109 struct evsel *evsel, *leader; test__group_gh4() local
1149 struct evsel *evsel, *leader; test__leader_sample1() local
1202 struct evsel *evsel, *leader; test__leader_sample2() local
1241 struct evsel *evsel = evlist__first(evlist); test__checkevent_pinned_modifier() local
1254 struct evsel *evsel, *leader; test__pinned_group() local
1285 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclusive_modifier() local
1298 struct evsel *evsel, *leader; test__exclusive_group() local
1328 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len() local
1343 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_w() local
1359 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_rw_modifier() local
1371 struct evsel *evsel = evlist__first(evlist); test__checkevent_precise_max_modifier() local
1382 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_symbol() local
1390 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_raw() local
1398 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_num() local
1406 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_cache() local
1419 struct evsel *evsel = evlist__first(evlist); test__intel_pt() local
1427 struct evsel *evsel = evlist__first(evlist); test__checkevent_complex_name() local
1435 struct evsel *evsel = evlist__first(evlist); test__checkevent_raw_pmu() local
1445 struct evsel *evsel = evlist__first(evlist); test__sym_event_slash() local
1455 struct evsel *evsel = evlist__first(evlist); test__sym_event_dc() local
[all...]
H A Devsel-tp-sched.c4 #include "evsel.h"
8 static int perf_evsel__test_field(struct evsel *evsel, const char *name, in perf_evsel__test_field() argument
11 struct tep_format_field *field = evsel__field(evsel, name); in perf_evsel__test_field()
16 pr_debug("%s: \"%s\" field not found!\n", evsel->name, name); in perf_evsel__test_field()
23 evsel->name, name, is_signed, should_be_signed); in perf_evsel__test_field()
29 evsel->name, name, field->size, size); in perf_evsel__test_field()
38 struct evsel *evsel = evsel__newtp("sched", "sched_switch"); in test__perf_evsel__tp_sched_test() local
41 if (IS_ERR(evsel)) { in test__perf_evsel__tp_sched_test()
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H A Devsel.h10 #include <internal/evsel.h>
11 #include <perf/evsel.h>
28 /** struct evsel - event selector
30 * @evlist - evlist this evsel is in, if it is in one.
31 * @core - libperf evsel object
43 struct evsel { struct
86 * references to other metric (evsel).
90 struct evsel **metric_events;
91 struct evsel *metric_leader;
114 struct evsel *leade
156 evsel__cpus(struct evsel *evsel) evsel__cpus() argument
161 evsel__nr_cpus(struct evsel *evsel) evsel__nr_cpus() argument
260 evsel__strval(struct evsel *evsel, struct perf_sample *sample, const char *name) evsel__strval() argument
292 evsel__read_on_cpu(struct evsel *evsel, int cpu, int thread) evsel__read_on_cpu() argument
304 evsel__read_on_cpu_scaled(struct evsel *evsel, int cpu, int thread) evsel__read_on_cpu_scaled() argument
315 evsel__next(struct evsel *evsel) evsel__next() argument
320 evsel__prev(struct evsel *evsel) evsel__prev() argument
332 evsel__is_group_leader(const struct evsel *evsel) evsel__is_group_leader() argument
345 evsel__is_group_event(struct evsel *evsel) evsel__is_group_event() argument
355 evsel__is_bpf_output(struct evsel *evsel) evsel__is_bpf_output() argument
360 evsel__is_clock(struct evsel *evsel) evsel__is_clock() argument
370 evsel__group_idx(struct evsel *evsel) evsel__group_idx() argument
387 evsel__has_branch_callstack(const struct evsel *evsel) evsel__has_branch_callstack() argument
392 evsel__has_branch_hw_idx(const struct evsel *evsel) evsel__has_branch_hw_idx() argument
397 evsel__has_callchain(const struct evsel *evsel) evsel__has_callchain() argument
407 evsel__has_br_stack(const struct evsel *evsel) evsel__has_br_stack() argument
417 evsel__is_dummy_event(struct evsel *evsel) evsel__is_dummy_event() argument
[all...]
H A Devsel.c26 #include <perf/evsel.h>
32 #include "evsel.h"
59 static int evsel__no_extra_init(struct evsel *evsel __maybe_unused) in evsel__no_extra_init()
66 static void evsel__no_extra_fini(struct evsel *evsel __maybe_unused) in evsel__no_extra_fini()
72 int (*init)(struct evsel *evsel);
73 void (*fini)(struct evsel *evsel);
80 evsel__object_config(size_t object_size, int (*init)(struct evsel *evsel), void (*fini)(struct evsel *evsel)) evsel__object_config() argument
180 evsel__calc_id_pos(struct evsel *evsel) evsel__calc_id_pos() argument
186 __evsel__set_sample_bit(struct evsel *evsel, enum perf_event_sample_format bit) __evsel__set_sample_bit() argument
196 __evsel__reset_sample_bit(struct evsel *evsel, enum perf_event_sample_format bit) __evsel__reset_sample_bit() argument
206 evsel__set_sample_id(struct evsel *evsel, bool can_sample_identifier) evsel__set_sample_id() argument
226 evsel__is_function_event(struct evsel *evsel) evsel__is_function_event() argument
236 evsel__init(struct evsel *evsel, struct perf_event_attr *attr, int idx) evsel__init() argument
264 struct evsel *evsel = zalloc(perf_evsel__object.size); evsel__new_idx() local
302 struct evsel *evsel; evsel__new_cycles() local
365 struct evsel *evsel; evsel__clone() local
443 struct evsel *evsel = zalloc(perf_evsel__object.size); evsel__newtp_idx() local
500 perf_evsel__add_modifiers(struct evsel *evsel, char *bf, size_t size) perf_evsel__add_modifiers() argument
536 evsel__hw_name(struct evsel *evsel, char *bf, size_t size) evsel__hw_name() argument
562 evsel__sw_name(struct evsel *evsel, char *bf, size_t size) evsel__sw_name() argument
586 evsel__bp_name(struct evsel *evsel, char *bf, size_t size) evsel__bp_name() argument
682 evsel__hw_cache_name(struct evsel *evsel, char *bf, size_t size) evsel__hw_cache_name() argument
688 evsel__raw_name(struct evsel *evsel, char *bf, size_t size) evsel__raw_name() argument
700 evsel__name(struct evsel *evsel) evsel__name() argument
752 evsel__group_name(struct evsel *evsel) evsel__group_name() argument
767 evsel__group_desc(struct evsel *evsel, char *buf, size_t size) evsel__group_desc() argument
787 __evsel__config_callchain(struct evsel *evsel, struct record_opts *opts, struct callchain_param *param) __evsel__config_callchain() argument
846 evsel__config_callchain(struct evsel *evsel, struct record_opts *opts, struct callchain_param *param) evsel__config_callchain() argument
854 perf_evsel__reset_callgraph(struct evsel *evsel, struct callchain_param *param) perf_evsel__reset_callgraph() argument
872 evsel__apply_config_terms(struct evsel *evsel, struct record_opts *opts, bool track) evsel__apply_config_terms() argument
1005 __evsel__get_config_term(struct evsel *evsel, enum evsel_term_type type) __evsel__get_config_term() argument
1056 evsel__config(struct evsel *evsel, struct record_opts *opts, struct callchain_param *callchain) evsel__config() argument
1286 evsel__set_filter(struct evsel *evsel, const char *filter) evsel__set_filter() argument
1299 evsel__append_filter(struct evsel *evsel, const char *fmt, const char *filter) evsel__append_filter() argument
1315 evsel__append_tp_filter(struct evsel *evsel, const char *filter) evsel__append_tp_filter() argument
1320 evsel__append_addr_filter(struct evsel *evsel, const char *filter) evsel__append_addr_filter() argument
1326 evsel__enable_cpu(struct evsel *evsel, int cpu) evsel__enable_cpu() argument
1331 evsel__enable(struct evsel *evsel) evsel__enable() argument
1341 evsel__disable_cpu(struct evsel *evsel, int cpu) evsel__disable_cpu() argument
1346 evsel__disable(struct evsel *evsel) evsel__disable() argument
1361 evsel__free_config_terms(struct evsel *evsel) evsel__free_config_terms() argument
1373 evsel__exit(struct evsel *evsel) evsel__exit() argument
1393 evsel__delete(struct evsel *evsel) evsel__delete() argument
1399 evsel__compute_deltas(struct evsel *evsel, int cpu, int thread, struct perf_counts_values *count) evsel__compute_deltas() argument
1439 evsel__read_one(struct evsel *evsel, int cpu, int thread) evsel__read_one() argument
1529 evsel__read_counter(struct evsel *evsel, int cpu, int thread) evsel__read_counter() argument
1539 __evsel__read_on_cpu(struct evsel *evsel, int cpu, int thread, bool scale) __evsel__read_on_cpu() argument
1559 get_group_fd(struct evsel *evsel, int cpu, int thread) get_group_fd() argument
1588 update_fds(struct evsel *evsel, int nr_cpus, int cpu_idx, int nr_threads, int thread_idx) update_fds() argument
1612 ignore_missing_thread(struct evsel *evsel, int nr_cpus, int cpu, struct perf_thread_map *threads, int thread, int err) ignore_missing_thread() argument
1665 perf_event_open(struct evsel *evsel, pid_t pid, int cpu, int group_fd, unsigned long flags) perf_event_open() argument
1702 evsel__open_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads, int start_cpu, int end_cpu) evsel__open_cpu() argument
1974 evsel__open(struct evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) evsel__open() argument
1980 evsel__close(struct evsel *evsel) evsel__close() argument
1986 evsel__open_per_cpu(struct evsel *evsel, struct perf_cpu_map *cpus, int cpu) evsel__open_per_cpu() argument
1995 evsel__open_per_thread(struct evsel *evsel, struct perf_thread_map *threads) evsel__open_per_thread() argument
2000 perf_evsel__parse_id_sample(const struct evsel *evsel, const union perf_event *event, struct perf_sample *sample) perf_evsel__parse_id_sample() argument
2090 evsel__parse_sample(struct evsel *evsel, union perf_event *event, struct perf_sample *data) evsel__parse_sample() argument
2393 evsel__parse_sample_timestamp(struct evsel *evsel, union perf_event *event, u64 *timestamp) evsel__parse_sample_timestamp() argument
2436 evsel__field(struct evsel *evsel, const char *name) evsel__field() argument
2441 evsel__rawptr(struct evsel *evsel, struct perf_sample *sample, const char *name) evsel__rawptr() argument
2498 evsel__intval(struct evsel *evsel, struct perf_sample *sample, const char *name) evsel__intval() argument
2508 evsel__fallback(struct evsel *evsel, int err, char *msg, size_t msgsize) evsel__fallback() argument
2600 evsel__open_strerror(struct evsel *evsel, struct target *target, int err, char *msg, size_t size) evsel__open_strerror() argument
2705 evsel__env(struct evsel *evsel) evsel__env() argument
2712 store_evsel_ids(struct evsel *evsel, struct evlist *evlist) store_evsel_ids() argument
2730 evsel__store_ids(struct evsel *evsel, struct evlist *evlist) evsel__store_ids() argument
[all...]
H A Dstat.c14 #include "evsel.h"
78 bool __perf_evsel_stat__is(struct evsel *evsel, in __perf_evsel_stat__is() argument
81 struct perf_stat_evsel *ps = evsel->stats; in __perf_evsel_stat__is()
107 static void perf_stat_evsel_id_init(struct evsel *evsel) in perf_stat_evsel_id_init() argument
109 struct perf_stat_evsel *ps = evsel->stats; in perf_stat_evsel_id_init()
115 if (!strcmp(evsel__name(evsel), id_str[i])) { in perf_stat_evsel_id_init()
122 static void evsel__reset_stat_priv(struct evsel *evsel) in evsel__reset_stat_priv() argument
133 evsel__alloc_stat_priv(struct evsel *evsel) evsel__alloc_stat_priv() argument
142 evsel__free_stat_priv(struct evsel *evsel) evsel__free_stat_priv() argument
151 evsel__alloc_prev_raw_counts(struct evsel *evsel, int ncpus, int nthreads) evsel__alloc_prev_raw_counts() argument
162 evsel__free_prev_raw_counts(struct evsel *evsel) evsel__free_prev_raw_counts() argument
168 evsel__reset_prev_raw_counts(struct evsel *evsel) evsel__reset_prev_raw_counts() argument
174 evsel__alloc_stats(struct evsel *evsel, bool alloc_raw) evsel__alloc_stats() argument
189 struct evsel *evsel; perf_evlist__alloc_stats() local
205 struct evsel *evsel; perf_evlist__free_stats() local
216 struct evsel *evsel; perf_evlist__reset_stats() local
226 struct evsel *evsel; perf_evlist__reset_prev_raw_counts() local
232 perf_evsel__copy_prev_raw_counts(struct evsel *evsel) perf_evsel__copy_prev_raw_counts() argument
250 struct evsel *evsel; perf_evlist__copy_prev_raw_counts() local
258 struct evsel *evsel; perf_evlist__save_aggr_prev_raw_counts() local
325 process_counter_values(struct perf_stat_config *config, struct evsel *evsel, int cpu, int thread, struct perf_counts_values *count) process_counter_values() argument
511 create_perf_stat_counter(struct evsel *evsel, struct perf_stat_config *config, struct target *target, int cpu) create_perf_stat_counter() argument
[all...]
H A Drecord.c4 #include "evsel.h"
24 static struct evsel *evsel__read_sampler(struct evsel *evsel, struct evlist *evlist) in evsel__read_sampler() argument
26 struct evsel *leader = evsel->leader; in evsel__read_sampler()
29 evlist__for_each_entry(evlist, evsel) { in evsel__read_sampler()
30 if (evsel->leader == leader && evsel != evsel in evsel__read_sampler()
38 evsel__config_term_mask(struct evsel *evsel) evsel__config_term_mask() argument
50 evsel__config_leader_sampling(struct evsel *evsel, struct evlist *evlist) evsel__config_leader_sampling() argument
95 struct evsel *evsel; perf_evlist__config() local
223 struct evsel *evsel; perf_evlist__can_select_event() local
[all...]
/kernel/linux/linux-6.6/tools/lib/perf/
H A Devsel.c5 #include <perf/evsel.h>
9 #include <internal/evsel.h>
22 void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr, in perf_evsel__init() argument
25 INIT_LIST_HEAD(&evsel->node); in perf_evsel__init()
26 evsel->attr = *attr; in perf_evsel__init()
27 evsel->idx = idx; in perf_evsel__init()
28 evsel->leader = evsel; in perf_evsel__init()
33 struct perf_evsel *evsel = zalloc(sizeof(*evsel)); in perf_evsel__new() local
41 perf_evsel__delete(struct perf_evsel *evsel) perf_evsel__delete() argument
52 perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) perf_evsel__alloc_fd() argument
72 perf_evsel__alloc_mmap(struct perf_evsel *evsel, int ncpus, int nthreads) perf_evsel__alloc_mmap() argument
87 get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) get_group_fd() argument
113 perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) perf_evsel__open() argument
180 perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu_map_idx) perf_evsel__close_fd_cpu() argument
194 perf_evsel__close_fd(struct perf_evsel *evsel) perf_evsel__close_fd() argument
200 perf_evsel__free_fd(struct perf_evsel *evsel) perf_evsel__free_fd() argument
206 perf_evsel__close(struct perf_evsel *evsel) perf_evsel__close() argument
215 perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu_map_idx) perf_evsel__close_cpu() argument
223 perf_evsel__munmap(struct perf_evsel *evsel) perf_evsel__munmap() argument
245 perf_evsel__mmap(struct perf_evsel *evsel, int pages) perf_evsel__mmap() argument
282 perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread) perf_evsel__mmap_base() argument
292 perf_evsel__read_size(struct perf_evsel *evsel) perf_evsel__read_size() argument
321 perf_evsel__read_group(struct perf_evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) perf_evsel__read_group() argument
366 perf_evsel__adjust_values(struct perf_evsel *evsel, u64 *buf, struct perf_counts_values *count) perf_evsel__adjust_values() argument
387 perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread, struct perf_counts_values *count) perf_evsel__read() argument
415 perf_evsel__ioctl(struct perf_evsel *evsel, int ioc, void *arg, int cpu_map_idx, int thread) perf_evsel__ioctl() argument
426 perf_evsel__run_ioctl(struct perf_evsel *evsel, int ioc, void *arg, int cpu_map_idx) perf_evsel__run_ioctl() argument
442 perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu_map_idx) perf_evsel__enable_cpu() argument
447 perf_evsel__enable_thread(struct perf_evsel *evsel, int thread) perf_evsel__enable_thread() argument
462 perf_evsel__enable(struct perf_evsel *evsel) perf_evsel__enable() argument
472 perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu_map_idx) perf_evsel__disable_cpu() argument
477 perf_evsel__disable(struct perf_evsel *evsel) perf_evsel__disable() argument
487 perf_evsel__apply_filter(struct perf_evsel *evsel, const char *filter) perf_evsel__apply_filter() argument
498 perf_evsel__cpus(struct perf_evsel *evsel) perf_evsel__cpus() argument
503 perf_evsel__threads(struct perf_evsel *evsel) perf_evsel__threads() argument
508 perf_evsel__attr(struct perf_evsel *evsel) perf_evsel__attr() argument
513 perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) perf_evsel__alloc_id() argument
532 perf_evsel__free_id(struct perf_evsel *evsel) perf_evsel__free_id() argument
[all...]
H A Devlist.c3 #include <perf/evsel.h>
9 #include <internal/evsel.h>
37 struct perf_evsel *evsel) in __perf_evlist__propagate_maps()
39 if (evsel->system_wide) { in __perf_evlist__propagate_maps()
40 /* System wide: set the cpu map of the evsel to all online CPUs. */ in __perf_evlist__propagate_maps()
41 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
42 evsel->cpus = perf_cpu_map__new(NULL); in __perf_evlist__propagate_maps()
43 } else if (evlist->has_user_cpus && evsel->is_pmu_core) { in __perf_evlist__propagate_maps()
48 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
49 evsel in __perf_evlist__propagate_maps()
36 __perf_evlist__propagate_maps(struct perf_evlist *evlist, struct perf_evsel *evsel) __perf_evlist__propagate_maps() argument
83 struct perf_evsel *evsel; perf_evlist__propagate_maps() local
91 perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *evsel) perf_evlist__add() argument
102 perf_evlist__remove(struct perf_evlist *evlist, struct perf_evsel *evsel) perf_evlist__remove() argument
200 struct perf_evsel *evsel; perf_evlist__open() local
218 struct perf_evsel *evsel; perf_evlist__close() local
226 struct perf_evsel *evsel; perf_evlist__enable() local
234 struct perf_evsel *evsel; perf_evlist__disable() local
249 perf_evlist__id_hash(struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu, int thread, u64 id) perf_evlist__id_hash() argument
270 perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu, int thread, u64 id) perf_evlist__id_add() argument
278 perf_evlist__id_add_fd(struct perf_evlist *evlist, struct perf_evsel *evsel, int cpu, int thread, int fd) perf_evlist__id_add_fd() argument
324 struct perf_evsel *evsel; perf_evlist__alloc_pollfd() local
400 perf_evsel__set_sid_idx(struct perf_evsel *evsel, int idx, int cpu, int thread) perf_evsel__set_sid_idx() argument
454 struct perf_evsel *evsel; mmap_per_evsel() local
637 struct perf_evsel *evsel; perf_evlist__mmap_ops() local
705 struct perf_evsel *evsel; __perf_evlist__set_leader() local
727 struct perf_evsel *evsel; perf_evlist__nr_groups() local
[all...]
/kernel/linux/linux-6.6/tools/perf/arch/x86/tests/
H A Dhybrid.c5 #include "evsel.h"
10 static bool test_config(const struct evsel *evsel, __u64 expected_config) in test_config() argument
12 return (evsel->core.attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_config()
15 static bool test_perf_config(const struct perf_evsel *evsel, __u64 expected_config) in test_perf_config() argument
17 return (evsel->attr.config & PERF_HW_EVENT_MASK) == expected_config; in test_perf_config()
20 static bool test_hybrid_type(const struct evsel *evsel, __u64 expected_config) in test_hybrid_type() argument
22 return (evsel->core.attr.config >> PERF_PMU_TYPE_SHIFT) == expected_config; in test_hybrid_type()
27 struct evsel *evse in test__hybrid_hw_event_with_pmu() local
38 struct evsel *evsel, *leader; test__hybrid_hw_group_event() local
57 struct evsel *evsel, *leader; test__hybrid_sw_hw_group_event() local
74 struct evsel *evsel, *leader; test__hybrid_hw_sw_group_event() local
91 struct evsel *evsel, *leader; test__hybrid_group_modifier1() local
114 struct perf_evsel *evsel; test__hybrid_raw1() local
128 struct evsel *evsel = evlist__first(evlist); test__hybrid_raw2() local
138 struct evsel *evsel = evlist__first(evlist); test__hybrid_cache_event() local
149 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu() local
[all...]
/kernel/linux/linux-5.10/tools/lib/perf/
H A Devsel.c5 #include <perf/evsel.h>
9 #include <internal/evsel.h>
19 void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr) in perf_evsel__init() argument
21 INIT_LIST_HEAD(&evsel->node); in perf_evsel__init()
22 evsel->attr = *attr; in perf_evsel__init()
27 struct perf_evsel *evsel = zalloc(sizeof(*evsel)); in perf_evsel__new() local
29 if (evsel != NULL) in perf_evsel__new()
30 perf_evsel__init(evsel, attr); in perf_evsel__new()
32 return evsel; in perf_evsel__new()
35 perf_evsel__delete(struct perf_evsel *evsel) perf_evsel__delete() argument
42 perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) perf_evsel__alloc_fd() argument
66 perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, struct perf_thread_map *threads) perf_evsel__open() argument
117 perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu) perf_evsel__close_fd_cpu() argument
128 perf_evsel__close_fd(struct perf_evsel *evsel) perf_evsel__close_fd() argument
136 perf_evsel__free_fd(struct perf_evsel *evsel) perf_evsel__free_fd() argument
142 perf_evsel__close(struct perf_evsel *evsel) perf_evsel__close() argument
151 perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu) perf_evsel__close_cpu() argument
159 perf_evsel__read_size(struct perf_evsel *evsel) perf_evsel__read_size() argument
184 perf_evsel__read(struct perf_evsel *evsel, int cpu, int thread, struct perf_counts_values *count) perf_evsel__read() argument
200 perf_evsel__run_ioctl(struct perf_evsel *evsel, int ioc, void *arg, int cpu) perf_evsel__run_ioctl() argument
217 perf_evsel__enable_cpu(struct perf_evsel *evsel, int cpu) perf_evsel__enable_cpu() argument
222 perf_evsel__enable(struct perf_evsel *evsel) perf_evsel__enable() argument
232 perf_evsel__disable_cpu(struct perf_evsel *evsel, int cpu) perf_evsel__disable_cpu() argument
237 perf_evsel__disable(struct perf_evsel *evsel) perf_evsel__disable() argument
247 perf_evsel__apply_filter(struct perf_evsel *evsel, const char *filter) perf_evsel__apply_filter() argument
258 perf_evsel__cpus(struct perf_evsel *evsel) perf_evsel__cpus() argument
263 perf_evsel__threads(struct perf_evsel *evsel) perf_evsel__threads() argument
268 perf_evsel__attr(struct perf_evsel *evsel) perf_evsel__attr() argument
273 perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads) perf_evsel__alloc_id() argument
295 perf_evsel__free_id(struct perf_evsel *evsel) perf_evsel__free_id() argument
[all...]
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/
H A Devsel.c4 #include "util/evsel.h"
9 #include "evsel.h"
16 void arch_evsel__set_sample_weight(struct evsel *evsel) in arch_evsel__set_sample_weight() argument
18 evsel__set_sample_bit(evsel, WEIGHT_STRUCT); in arch_evsel__set_sample_weight()
21 /* Check whether the evsel's PMU supports the perf metrics */
22 bool evsel__sys_has_perf_metrics(const struct evsel *evsel) in evsel__sys_has_perf_metrics() argument
24 const char *pmu_name = evsel->pmu_name ? evsel in evsel__sys_has_perf_metrics()
41 arch_evsel__must_be_in_group(const struct evsel *evsel) arch_evsel__must_be_in_group() argument
50 arch_evsel__hw_name(struct evsel *evsel, char *bf, size_t size) arch_evsel__hw_name() argument
77 arch__post_evsel_config(struct evsel *evsel, struct perf_event_attr *attr) arch__post_evsel_config() argument
105 arch_evsel__open_strerror(struct evsel *evsel, char *msg, size_t size) arch_evsel__open_strerror() argument
[all...]
H A Dkvm-stat.c5 #include "../../../util/evsel.h"
30 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
33 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
34 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
41 static bool mmio_event_begin(struct evsel *evsel, in mmio_event_begin() argument
45 if (kvm_exit_event(evsel)) in mmio_event_begin()
49 if (evsel__name_is(evsel, "kvm:kvm_mmio") && in mmio_event_begin()
50 evsel__intval(evsel, sampl in mmio_event_begin()
58 mmio_event_end(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) mmio_event_end() argument
92 ioport_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) ioport_event_get_key() argument
100 ioport_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) ioport_event_begin() argument
112 ioport_event_end(struct evsel *evsel, struct perf_sample *sample __maybe_unused, struct event_key *key __maybe_unused) ioport_event_end() argument
136 msr_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) msr_event_get_key() argument
144 msr_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) msr_event_begin() argument
156 msr_event_end(struct evsel *evsel, struct perf_sample *sample __maybe_unused, struct event_key *key __maybe_unused) msr_event_end() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/
H A Dkvm-stat.c5 #include "../../../util/evsel.h"
31 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
34 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
35 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
42 static bool mmio_event_begin(struct evsel *evsel, in mmio_event_begin() argument
46 if (kvm_exit_event(evsel)) in mmio_event_begin()
50 if (!strcmp(evsel->name, "kvm:kvm_mmio") && in mmio_event_begin()
51 evsel__intval(evsel, sampl in mmio_event_begin()
59 mmio_event_end(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) mmio_event_end() argument
93 ioport_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) ioport_event_get_key() argument
101 ioport_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) ioport_event_begin() argument
113 ioport_event_end(struct evsel *evsel, struct perf_sample *sample __maybe_unused, struct event_key *key __maybe_unused) ioport_event_end() argument
[all...]

Completed in 19 milliseconds

12345678910>>...14