Home
last modified time | relevance | path

Searched refs:evsel (Results 1 – 25 of 202) sorted by relevance

123456789

/linux/tools/perf/tests/
H A Dparse-events.c3 #include "evsel.h"
41 static bool check_evsel(const char *test, int line, bool cond, struct evsel *evsel) in check_evsel() argument
48 pr_debug("FAILED %s:%d: %s\nFor evsel: ", __FILE__, line, test); in check_evsel()
49 evsel__fprintf(evsel, &details, debug_file()); in check_evsel()
52 #define TEST_ASSERT_EVSEL(test, cond, evsel) \ argument
53 if (!check_evsel(test, __LINE__, cond, evsel)) \
65 struct evsel *evsel; in num_core_entries() local
67 evlist__for_each_entry(evlist, evsel) { in num_core_entries()
77 test_hw_config(const struct evsel * evsel,__u64 expected_config) test_hw_config() argument
110 struct evsel *evsel = evlist__first(evlist); test__checkevent_tracepoint() local
123 struct evsel *evsel; test__checkevent_tracepoint_multi() local
144 struct evsel *evsel; test__checkevent_raw() local
183 struct evsel *evsel = evlist__first(evlist); test__checkevent_numeric() local
194 struct evsel *evsel; test__checkevent_symbolic_name() local
208 struct evsel *evsel; test__checkevent_symbolic_name_config() local
229 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias() local
239 struct evsel *evsel; test__checkevent_genhw() local
252 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint() local
266 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x() local
279 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r() local
291 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w() local
303 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw() local
317 struct evsel *evsel = evlist__first(evlist); test__checkevent_tracepoint_modifier() local
331 struct evsel *evsel; test__checkevent_tracepoint_multi_modifier() local
347 struct evsel *evsel; test__checkevent_raw_modifier() local
362 struct evsel *evsel; test__checkevent_numeric_modifier() local
377 struct evsel *evsel; test__checkevent_symbolic_name_modifier() local
394 struct evsel *evsel; test__checkevent_exclude_host_modifier() local
409 struct evsel *evsel; test__checkevent_exclude_guest_modifier() local
424 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias_modifier() local
437 struct evsel *evsel; test__checkevent_genhw_modifier() local
454 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier() local
473 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier_1() local
492 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_modifier() local
506 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x_modifier() local
519 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r_modifier() local
532 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w_modifier() local
545 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw_modifier() local
558 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_modifier_name() local
571 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x_modifier_name() local
584 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r_modifier_name() local
597 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w_modifier_name() local
610 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw_modifier_name() local
623 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_2_events() local
641 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu() local
662 struct evsel *evsel = evlist__first(evlist); test__checkevent_list() local
705 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_name() local
728 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_partial_time_callgraph() local
760 struct evsel *evsel; test__checkevent_pmu_events() local
784 struct evsel *evsel = NULL; test__checkevent_pmu_events_mix() local
905 struct evsel *evsel = NULL, *leader; test__group1() local
950 struct evsel *evsel, *leader = NULL; test__group2() local
1018 struct evsel *evsel, *group1_leader = NULL, *group2_leader = NULL; test__group3() local
1144 struct evsel *evsel = NULL, *leader; test__group4() local
1191 struct evsel *evsel = NULL, *leader; test__group5() local
1284 struct evsel *evsel = NULL, *leader; test__group_gh1() local
1329 struct evsel *evsel = NULL, *leader; test__group_gh2() local
1374 struct evsel *evsel = NULL, *leader; test__group_gh3() local
1419 struct evsel *evsel = NULL, *leader; test__group_gh4() local
1464 struct evsel *evsel = NULL, *leader; test__leader_sample1() local
1520 struct evsel *evsel = NULL, *leader; test__leader_sample2() local
1562 struct evsel *evsel = NULL; test__checkevent_pinned_modifier() local
1581 struct evsel *evsel = NULL, *leader; test__pinned_group() local
1618 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclusive_modifier() local
1634 struct evsel *evsel = NULL, *leader; test__exclusive_group() local
1670 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len() local
1685 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_w() local
1699 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_rw_modifier() local
1712 struct evsel *evsel = evlist__first(evlist); test__checkevent_precise_max_modifier() local
1723 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_symbol() local
1734 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_raw() local
1743 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_num() local
1752 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_cache() local
1778 struct evsel *evsel = evlist__first(evlist); test__intel_pt() local
1799 struct evsel *evsel; test__ratio_to_prev() local
1835 struct evsel *evsel = evlist__first(evlist); test__checkevent_complex_name() local
1849 struct evsel *evsel = evlist__first(evlist); test__checkevent_raw_pmu() local
1859 struct evsel *evsel = evlist__first(evlist); test__sym_event_slash() local
1871 struct evsel *evsel = evlist__first(evlist); test__sym_event_dc() local
1883 struct evsel *evsel = evlist__first(evlist); test__term_equal_term() local
1895 struct evsel *evsel = evlist__first(evlist); test__term_equal_legacy() local
[all...]
H A Devent-times.c19 struct evsel *evsel = evlist__last(evlist); in attach__enable_on_exec() local
39 evsel->core.attr.enable_on_exec = 1; in attach__enable_on_exec()
59 struct evsel *evsel = evlist__last(evlist); in attach__current_disabled() local
71 evsel->core.attr.disabled = 1; in attach__current_disabled()
73 err = evsel__open_per_thread(evsel, threads); in attach__current_disabled()
80 return evsel__enable(evsel) == 0 ? TEST_OK : TEST_FAIL; in attach__current_disabled()
85 struct evsel *evsel = evlist__last(evlist); in attach__current_enabled() local
97 err = evsel__open_per_thread(evsel, threads); in attach__current_enabled()
105 struct evsel *evsel = evlist__last(evlist); in detach__disable() local
107 return evsel__enable(evsel); in detach__disable()
[all …]
/linux/tools/perf/util/
H A Devsel.h10 #include <internal/evsel.h>
11 #include <perf/evsel.h>
30 /** struct evsel - event selector
32 * @evlist - evlist this evsel is in, if it is in one.
33 * @core - libperf evsel object
45 struct evsel { struct
74 * This point to the first evsel with the same name, intended to store the argument
77 struct evsel *first_wildcard_match;
101 * references to other metric (evsel).
103 struct evsel *metric_leade argument
46 coreevsel global() argument
55 is_posevsel global() argument
109 statsevsel global() argument
131 db_idevsel global() argument
135 side_bandevsel global() argument
141 synth_sample_typeevsel global() argument
153 br_cntr_idxevsel global() argument
154 br_cntr_nrevsel global() argument
155 abbr_nameevsel global() argument
162 bpf_counter_opsevsel global() argument
164 bpf_counter_listevsel global() argument
165 bpf_filtersevsel global() argument
168 bperf_leader_prog_fdevsel global() argument
169 bperf_leader_link_fdevsel global() argument
170 __anon6347bf94030aevsel global() argument
175 open_flagsevsel global() argument
176 precise_ip_originalevsel global() argument
179 pmuevsel global() argument
183 __anon6347bf94040aevsel global() argument
199 pid_statevsel global() argument
233 evsel__cpus(struct evsel * evsel) evsel__cpus() argument
238 evsel__nr_cpus(struct evsel * evsel) evsel__nr_cpus() argument
298 evsel__is_bpf(struct evsel * evsel) evsel__is_bpf() argument
303 evsel__is_bperf(struct evsel * evsel) evsel__is_bperf() argument
324 evsel__is_retire_lat(const struct evsel * evsel) evsel__is_retire_lat() argument
335 evsel__set_sample_bit(evsel,bit) global() argument
338 evsel__reset_sample_bit(evsel,bit) global() argument
377 evsel__strval(struct evsel * evsel,struct perf_sample * sample,const char * name) evsel__strval() argument
392 evsel__match(evsel,t,c) global() argument
405 evsel__read_on_cpu(struct evsel * evsel,int cpu_map_idx,int thread) evsel__read_on_cpu() argument
417 evsel__read_on_cpu_scaled(struct evsel * evsel,int cpu_map_idx,int thread) evsel__read_on_cpu_scaled() argument
430 evsel__next(struct evsel * evsel) evsel__next() argument
435 evsel__prev(struct evsel * evsel) evsel__prev() argument
447 evsel__is_group_leader(const struct evsel * evsel) evsel__is_group_leader() argument
460 evsel__is_group_event(struct evsel * evsel) evsel__is_group_event() argument
470 evsel__is_bpf_output(struct evsel * evsel) evsel__is_bpf_output() argument
475 evsel__is_clock(const struct evsel * evsel) evsel__is_clock() argument
486 evsel__group_idx(struct evsel * evsel) evsel__group_idx() argument
511 evsel__has_branch_callstack(const struct evsel * evsel) evsel__has_branch_callstack() argument
516 evsel__has_branch_hw_idx(const struct evsel * evsel) evsel__has_branch_hw_idx() argument
521 evsel__has_callchain(const struct evsel * evsel) evsel__has_callchain() argument
531 evsel__has_br_stack(const struct evsel * evsel) evsel__has_br_stack() argument
541 evsel__is_dummy_event(struct evsel * evsel) evsel__is_dummy_event() argument
[all...]
H A Devsel.c31 #include <perf/evsel.h>
39 #include "evsel.h"
85 static int evsel__no_extra_init(struct evsel *evsel __maybe_unused) in evsel__no_extra_init()
208 static void evsel__no_extra_fini(struct evsel *evsel __maybe_unused) in evsel__no_extra_fini()
214 int (*init)(struct evsel *evsel);
215 void (*fini)(struct evsel *evsel);
222 evsel__object_config(size_t object_size,int (* init)(struct evsel * evsel),void (* fini)(struct evsel * evsel)) evsel__object_config() argument
223 evsel__object_config(size_t object_size,int (* init)(struct evsel * evsel),void (* fini)(struct evsel * evsel)) evsel__object_config() argument
244 evsel__pmu_name(const struct evsel * evsel) evsel__pmu_name() argument
332 evsel__calc_id_pos(struct evsel * evsel) evsel__calc_id_pos() argument
338 __evsel__set_sample_bit(struct evsel * evsel,enum perf_event_sample_format bit) __evsel__set_sample_bit() argument
348 __evsel__reset_sample_bit(struct evsel * evsel,enum perf_event_sample_format bit) __evsel__reset_sample_bit() argument
358 evsel__set_sample_id(struct evsel * evsel,bool can_sample_identifier) evsel__set_sample_id() argument
378 evsel__is_function_event(struct evsel * evsel) evsel__is_function_event() argument
388 evsel__init(struct evsel * evsel,struct perf_event_attr * attr,int idx) evsel__init() argument
417 struct evsel *evsel = zalloc(perf_evsel__object.size); evsel__new_idx() local
474 struct evsel *evsel; evsel__clone() local
588 struct evsel *evsel = zalloc(perf_evsel__object.size); evsel__newtp_idx() local
634 evsel__tp_format(struct evsel * evsel) evsel__tp_format() argument
705 evsel__add_modifiers(struct evsel * evsel,char * bf,size_t size) evsel__add_modifiers() argument
738 arch_evsel__hw_name(struct evsel * evsel,char * bf,size_t size) arch_evsel__hw_name() argument
743 evsel__hw_name(struct evsel * evsel,char * bf,size_t size) evsel__hw_name() argument
769 evsel__sw_name(struct evsel * evsel,char * bf,size_t size) evsel__sw_name() argument
793 evsel__bp_name(struct evsel * evsel,char * bf,size_t size) evsel__bp_name() argument
889 evsel__hw_cache_name(struct evsel * evsel,char * bf,size_t size) evsel__hw_cache_name() argument
895 evsel__raw_name(struct evsel * evsel,char * bf,size_t size) evsel__raw_name() argument
901 evsel__name(struct evsel * evsel) evsel__name() argument
954 evsel__name_is(struct evsel * evsel,const char * name) evsel__name_is() argument
959 evsel__metric_id(const struct evsel * evsel) evsel__metric_id() argument
970 evsel__group_name(struct evsel * evsel) evsel__group_name() argument
985 evsel__group_desc(struct evsel * evsel,char * buf,size_t size) evsel__group_desc() argument
1011 evsel__e_machine(struct evsel * evsel,uint32_t * e_flags) evsel__e_machine() argument
1018 __evsel__config_callchain(struct evsel * evsel,struct record_opts * opts,struct callchain_param * param) __evsel__config_callchain() argument
1083 evsel__config_callchain(struct evsel * evsel,struct record_opts * opts,struct callchain_param * param) evsel__config_callchain() argument
1090 evsel__reset_callgraph(struct evsel * evsel,struct callchain_param * param) evsel__reset_callgraph() argument
1107 evsel__apply_ratio_to_prev(struct evsel * evsel,struct perf_event_attr * attr,struct record_opts * opts,const char * buf) evsel__apply_ratio_to_prev() argument
1172 evsel__apply_config_terms(struct evsel * evsel,struct record_opts * opts,bool track) evsel__apply_config_terms() argument
1318 __evsel__get_config_term(struct evsel * evsel,enum evsel_term_type type) __evsel__get_config_term() argument
1338 evsel__set_config_if_unset(struct evsel * evsel,const char * config_name,u64 val) evsel__set_config_if_unset() argument
1394 evsel__get_config_val(const struct evsel * evsel,const char * config_name,u64 * val) evsel__get_config_val() argument
1433 arch_evsel__set_sample_weight(struct evsel * evsel) arch_evsel__set_sample_weight() argument
1459 evsel__is_offcpu_event(struct evsel * evsel) evsel__is_offcpu_event() argument
1493 evsel__config(struct evsel * evsel,struct record_opts * opts,struct callchain_param * callchain) evsel__config() argument
1750 evsel__set_filter(struct evsel * evsel,const char * filter) evsel__set_filter() argument
1763 evsel__append_filter(struct evsel * evsel,const char * fmt,const char * filter) evsel__append_filter() argument
1779 evsel__append_tp_filter(struct evsel * evsel,const char * filter) evsel__append_tp_filter() argument
1784 evsel__append_addr_filter(struct evsel * evsel,const char * filter) evsel__append_addr_filter() argument
1790 evsel__enable_cpu(struct evsel * evsel,int cpu_map_idx) evsel__enable_cpu() argument
1795 evsel__enable(struct evsel * evsel) evsel__enable() argument
1805 evsel__disable_cpu(struct evsel * evsel,int cpu_map_idx) evsel__disable_cpu() argument
1810 evsel__disable(struct evsel * evsel) evsel__disable() argument
1837 evsel__free_config_terms(struct evsel * evsel) evsel__free_config_terms() argument
1851 evsel__exit(struct evsel * evsel) evsel__exit() argument
1886 evsel__delete(struct evsel * evsel) evsel__delete() argument
1895 evsel__compute_deltas(struct evsel * evsel,int cpu_map_idx,int thread,struct perf_counts_values * count) evsel__compute_deltas() argument
1911 evsel__read_one(struct evsel * evsel,int cpu_map_idx,int thread) evsel__read_one() argument
1941 struct evsel *evsel; evsel__group_has_tpebs() local
1953 struct evsel *evsel; evsel__group_read_nr_members() local
2057 __evsel__match(const struct evsel * evsel,u32 type,u64 config) __evsel__match() argument
2078 evsel__read_counter(struct evsel * evsel,int cpu_map_idx,int thread) evsel__read_counter() argument
2098 __evsel__read_on_cpu(struct evsel * evsel,int cpu_map_idx,int thread,bool scale) __evsel__read_on_cpu() argument
2118 evsel__match_other_cpu(struct evsel * evsel,struct evsel * other,int cpu_map_idx) evsel__match_other_cpu() argument
2127 evsel__hybrid_group_cpu_map_idx(struct evsel * evsel,int cpu_map_idx) evsel__hybrid_group_cpu_map_idx() argument
2139 get_group_fd(struct evsel * evsel,int cpu_map_idx,int thread) get_group_fd() argument
2174 update_fds(struct evsel * evsel,int nr_cpus,int cpu_map_idx,int nr_threads,int thread_idx) update_fds() argument
2198 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
2251 evsel__precise_ip_fallback(struct evsel * evsel) evsel__precise_ip_fallback() argument
2278 __evsel__prepare_open(struct evsel * evsel,struct perf_cpu_map * cpus,struct perf_thread_map * threads) __evsel__prepare_open() argument
2322 evsel__disable_missing_features(struct evsel * evsel) evsel__disable_missing_features() argument
2366 evsel__prepare_open(struct evsel * evsel,struct perf_cpu_map * cpus,struct perf_thread_map * threads) evsel__prepare_open() argument
2425 evsel__detect_missing_pmu_features(struct evsel * evsel) evsel__detect_missing_pmu_features() argument
2464 evsel__detect_missing_brstack_features(struct evsel * evsel) evsel__detect_missing_brstack_features() argument
2513 evsel__probe_aux_action(struct evsel * evsel,struct perf_cpu cpu) evsel__probe_aux_action() argument
2536 evsel__detect_missing_aux_action_feature(struct evsel * evsel,struct perf_cpu cpu) evsel__detect_missing_aux_action_feature() argument
2571 evsel__detect_missing_features(struct evsel * evsel,struct perf_cpu cpu) evsel__detect_missing_features() argument
2782 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
2958 evsel__open(struct evsel * evsel,struct perf_cpu_map * cpus,struct perf_thread_map * threads) evsel__open() argument
2964 evsel__close(struct evsel * evsel) evsel__close() argument
2972 evsel__open_per_cpu_and_thread(struct evsel * evsel,struct perf_cpu_map * cpus,int cpu_map_idx,struct perf_thread_map * threads) evsel__open_per_cpu_and_thread() argument
2982 evsel__open_per_cpu(struct evsel * evsel,struct perf_cpu_map * cpus,int cpu_map_idx) evsel__open_per_cpu() argument
2991 evsel__open_per_thread(struct evsel * evsel,struct perf_thread_map * threads) evsel__open_per_thread() argument
3000 perf_evsel__parse_id_sample(const struct evsel * evsel,const union perf_event * event,struct perf_sample * sample) perf_evsel__parse_id_sample() argument
3158 evsel__has_branch_counters(const struct evsel * evsel) evsel__has_branch_counters() argument
3204 evsel__parse_sample(struct evsel * evsel,union perf_event * event,struct perf_sample * data) evsel__parse_sample() argument
3591 evsel__parse_sample_timestamp(struct evsel * evsel,union perf_event * event,u64 * timestamp) evsel__parse_sample_timestamp() argument
3634 evsel__id_hdr_size(const struct evsel * evsel) evsel__id_hdr_size() argument
3661 evsel__field(struct evsel * evsel,const char * name) evsel__field() argument
3668 evsel__common_field(struct evsel * evsel,const char * name) evsel__common_field() argument
3675 evsel__rawptr(struct evsel * evsel,struct perf_sample * sample,const char * name) evsel__rawptr() argument
3734 evsel__intval(struct evsel * evsel,struct perf_sample * sample,const char * name) evsel__intval() argument
3741 evsel__intval_common(struct evsel * evsel,struct perf_sample * sample,const char * name) evsel__intval_common() argument
3748 evsel__taskstate(struct evsel * evsel,struct perf_sample * sample,const char * name) evsel__taskstate() argument
3783 evsel__fallback(struct evsel * evsel,struct target * target,int err,char * msg,size_t msgsize) evsel__fallback() argument
3979 evsel__open_strerror(struct evsel * evsel,struct target * target,int err,char * msg,size_t size) evsel__open_strerror() argument
4122 evsel__session(struct evsel * evsel) evsel__session() argument
4127 evsel__env(struct evsel * evsel) evsel__env() argument
4134 store_evsel_ids(struct evsel * evsel,struct evlist * evlist) store_evsel_ids() argument
4158 evsel__store_ids(struct evsel * evsel,struct evlist * evlist) evsel__store_ids() argument
4169 evsel__zero_per_pkg(struct evsel * evsel) evsel__zero_per_pkg() argument
4187 evsel__is_hybrid(const struct evsel * evsel) evsel__is_hybrid() argument
4195 evsel__leader(const struct evsel * evsel) evsel__leader() argument
4202 evsel__has_leader(struct evsel * evsel,struct evsel * leader) evsel__has_leader() argument
4207 evsel__is_leader(struct evsel * evsel) evsel__is_leader() argument
4212 evsel__set_leader(struct evsel * evsel,struct evsel * leader) evsel__set_leader() argument
4217 evsel__is_aux_event(const struct evsel * evsel) evsel__is_aux_event() argument
4228 evsel__source_count(const struct evsel * evsel) evsel__source_count() argument
4250 evsel__remove_from_group(struct evsel * evsel,struct evsel * leader) evsel__remove_from_group() argument
4261 struct evsel *evsel; evsel__set_needs_uniquify() local
4384 evsel__warn_user_requested_cpus(struct evsel * evsel,struct perf_cpu_map * user_requested_cpus) evsel__warn_user_requested_cpus() 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
539 evsel__merge_aliases(struct evsel * evsel) evsel__merge_aliases() argument
553 evsel__should_merge_hybrid(const struct evsel * evsel,const struct perf_stat_config * config) evsel__should_merge_hybrid() argument
559 evsel__merge_stats(struct evsel * evsel,struct perf_stat_config * config) evsel__merge_stats() argument
568 struct evsel *evsel; perf_stat_merge_counters() local
577 evsel__update_percore_stats(struct evsel * evsel,struct aggr_cpu_id * core_id) evsel__update_percore_stats() argument
615 evsel__process_percore(struct evsel * evsel) evsel__process_percore() argument
639 struct evsel *evsel; perf_stat_process_percore() local
[all...]
H A Dbpf_counter.c23 #include "evsel.h"
106 static int bpf_program_profiler__destroy(struct evsel *evsel) in bpf_program_profiler__destroy() argument
111 &evsel->bpf_counter_list, list) { in bpf_program_profiler__destroy()
116 assert(list_empty(&evsel->bpf_counter_list)); in bpf_program_profiler__destroy()
160 static int bpf_program_profiler_load_one(struct evsel *evsel, u32 prog_id) in bpf_program_profiler_load_one() argument
186 skel->rodata->num_cpu = evsel__nr_cpus(evsel); in bpf_program_profiler_load_one()
188 bpf_map__set_max_entries(skel->maps.events, evsel__nr_cpus(evsel)); in bpf_program_profiler_load_one()
215 list_add(&counter->list, &evsel in bpf_program_profiler_load_one()
227 bpf_program_profiler__load(struct evsel * evsel,struct target * target) bpf_program_profiler__load() argument
259 bpf_program_profiler__enable(struct evsel * evsel) bpf_program_profiler__enable() argument
275 bpf_program_profiler__disable(struct evsel * evsel) bpf_program_profiler__disable() argument
286 bpf_program_profiler__read(struct evsel * evsel) bpf_program_profiler__read() argument
334 bpf_program_profiler__install_pe(struct evsel * evsel,int cpu_map_idx,int fd) bpf_program_profiler__install_pe() argument
424 bperf_check_target(struct evsel * evsel,struct target * target,enum bperf_filter_type * filter_type,__u32 * filter_entry_cnt) bperf_check_target() argument
457 bperf_reload_leader_program(struct evsel * evsel,int attr_map_fd,struct perf_event_attr_map_entry * entry) bperf_reload_leader_program() argument
531 bperf__load(struct evsel * evsel,struct target * target) bperf__load() argument
655 bperf__install_pe(struct evsel * evsel,int cpu_map_idx,int fd) bperf__install_pe() argument
668 bperf_sync_counters(struct evsel * evsel) bperf_sync_counters() argument
679 bperf__enable(struct evsel * evsel) bperf__enable() argument
685 bperf__disable(struct evsel * evsel) bperf__disable() argument
691 bperf__read(struct evsel * evsel) bperf__read() argument
751 bperf__destroy(struct evsel * evsel) bperf__destroy() argument
845 bpf_counter_skip(struct evsel * evsel) bpf_counter_skip() argument
850 bpf_counter__install_pe(struct evsel * evsel,int cpu_map_idx,int fd) bpf_counter__install_pe() argument
857 bpf_counter__load(struct evsel * evsel,struct target * target) bpf_counter__load() argument
872 bpf_counter__enable(struct evsel * evsel) bpf_counter__enable() argument
879 bpf_counter__disable(struct evsel * evsel) bpf_counter__disable() argument
886 bpf_counter__read(struct evsel * evsel) bpf_counter__read() argument
893 bpf_counter__destroy(struct evsel * evsel) bpf_counter__destroy() argument
[all...]
H A Dbpf_counter.h5 struct evsel;
10 typedef int (*bpf_counter_evsel_op)(struct evsel *evsel);
11 typedef int (*bpf_counter_evsel_target_op)(struct evsel *evsel,
13 typedef int (*bpf_counter_evsel_install_pe_op)(struct evsel *evsel,
27 int bpf_counter__load(struct evsel *evsel, struct target *target);
28 int bpf_counter__enable(struct evsel *evsel);
29 int bpf_counter__disable(struct evsel *evsel);
30 int bpf_counter__read(struct evsel *evsel);
31 void bpf_counter__destroy(struct evsel *evsel);
32 int bpf_counter__install_pe(struct evsel *evsel, int cpu_map_idx, int fd);
[all …]
H A Devlist.c18 #include "evsel.h"
64 #include <perf/evsel.h>
107 struct evsel *evsel; in evlist__new_default()
135 evlist__for_each_entry(evlist, evsel) in evlist__new_dummy()
136 evsel__set_sample_id(evsel, /*can_sample_identifier=*/false); in evlist__new_dummy()
166 struct evsel *first = evlist__first(evlist); in evlist__update_id_pos()
174 struct evsel *evsel; in evlist__purge()
176 evlist__for_each_entry(evlist, evsel) in evlist__purge()
126 struct evsel *evsel; evlist__new_default() local
164 struct evsel *evsel; evlist__update_id_pos() local
217 evlist__remove(struct evlist * evlist,struct evsel * evsel) evlist__remove() argument
226 struct evsel *evsel, *temp, *leader = NULL; evlist__splice_list_tail() local
252 struct evsel *evsel = evlist__find_tracepoint_by_name(evlist, assocs[i].name); __evlist__set_tracepoints_handlers() local
288 struct evsel *evsel = evlist__dummy_event(evlist); evlist__add_dummy() local
299 struct evsel *evsel = evlist__dummy_event(evlist); evlist__add_aux_dummy() local
318 struct evsel *evsel = evsel__newtp_idx("sched", "sched_switch", 0, evlist__add_sched_switch() local
337 struct evsel *evsel; evlist__find_tracepoint_by_name() local
351 struct evsel *evsel = evsel__newtp(sys, name); evlist__add_newtp() local
850 struct evsel *evsel = container_of(_evsel, struct evsel, core); perf_evlist__mmap_cb_idx() local
1102 struct evsel *evsel; evlist__apply_filters() local
1135 struct evsel *evsel; evlist__set_tp_filter() local
1155 struct evsel *evsel; evlist__append_tp_filter() local
1243 struct evsel *evsel; __evlist__combined_sample_type() local
1262 struct evsel *evsel; evlist__combined_branch_type() local
1318 struct evsel *evsel, *dup; evlist__update_br_cntr() local
1383 evlist__set_selected(struct evlist * evlist,struct evsel * evsel) evlist__set_selected() argument
1390 struct evsel *evsel; evlist__close() local
1439 struct evsel *evsel; evlist__open() local
1622 struct evsel *evsel = evlist__event2evsel(evlist, event); evlist__parse_sample() local
1643 struct evsel *evsel = evlist__event2evsel(evlist, event); evlist__parse_sample_timestamp() local
1739 struct evsel *evsel, *n; evlist__to_front() local
1755 struct evsel *evsel; evlist__get_tracking_event() local
1767 struct evsel *evsel; evlist__set_tracking_event() local
1782 struct evsel *evsel; evlist__findnew_tracking_event() local
1800 struct evsel *evsel; evlist__find_evsel_by_str() local
1871 struct evsel *evsel; evlist__exclude_kernel() local
1896 evlist__reset_weak_group(struct evlist * evsel_list,struct evsel * evsel,bool close) evlist__reset_weak_group() argument
2162 struct evsel *evsel; evlist__ctlfd_enable() local
2203 struct evsel *evsel; evlist__ctlfd_list() local
2513 struct evsel *evsel; evlist__find_evsel() local
2524 struct evsel *evsel, *leader = NULL; evlist__format_evsels() local
2556 struct evsel *leader, *evsel, *pos; evlist__check_mem_load_aux() local
2661 struct evsel *evsel; evlist__has_bpf_output() local
2673 struct evsel *evsel; evlist__needs_bpf_sb_event() local
[all...]
H A Dbpf_counter_cgroup.c24 #include "evsel.h"
41 static struct evsel *cgrp_switch;
98 struct evsel *evsel; in bperf_load_program()
146 evlist__for_each_entry(evlist, evsel) { in bperf_load_program()
147 if (cgrp == NULL || evsel->cgrp == leader_cgrp) { in bperf_load_program()
150 leader_cgrp = evsel->cgrp; in bperf_load_program()
151 evsel->cgrp = NULL; in bperf_load_program()
154 err = evsel__open_per_cpu(evsel, evsel in bperf_load_program()
99 struct evsel *evsel; bperf_load_program() local
204 bperf_cgrp__load(struct evsel * evsel,struct target * target __maybe_unused) bperf_cgrp__load() argument
246 bperf_cgrp__enable(struct evsel * evsel) bperf_cgrp__enable() argument
257 bperf_cgrp__disable(struct evsel * evsel) bperf_cgrp__disable() argument
268 bperf_cgrp__read(struct evsel * evsel) bperf_cgrp__read() argument
312 bperf_cgrp__destroy(struct evsel * evsel) bperf_cgrp__destroy() argument
[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 Dtool_pmu.c94 bool evsel__is_tool(const struct evsel *evsel) in evsel__is_tool() argument
96 return perf_pmu__is_tool(evsel->pmu); in evsel__is_tool()
99 enum tool_pmu_event evsel__tool_event(const struct evsel *evsel) in evsel__tool_event() argument
101 if (!evsel__is_tool(evsel)) in evsel__tool_event()
104 return (enum tool_pmu_event)evsel->core.attr.config; in evsel__tool_event()
107 const char *evsel__tool_pmu_event_name(const struct evsel *evsel) in evsel__tool_pmu_event_name() argument
109 return tool_pmu__event_to_str(evsel->core.attr.config); in evsel__tool_pmu_event_name()
204 int evsel__tool_pmu_prepare_open(struct evsel *evsel, in evsel__tool_pmu_prepare_open() argument
208 if ((evsel__tool_event(evsel) == TOOL_PMU__EVENT_SYSTEM_TIME || in evsel__tool_pmu_prepare_open()
209 evsel__tool_event(evsel) == TOOL_PMU__EVENT_USER_TIME) && in evsel__tool_pmu_prepare_open()
[all …]
H A Devlist.h11 #include <internal/evsel.h>
15 #include "evsel.h"
74 struct evsel *selected;
114 void evlist__add(struct evlist *evlist, struct evsel *entry);
115 void evlist__remove(struct evlist *evlist, struct evsel *evsel);
117 int arch_evlist__cmp(const struct evsel *lhs, const struct evsel *rhs);
121 struct evsel *evlist__add_aux_dummy(struct evlist *evlist, bool system_wide);
122 static inline struct evsel *evlist__add_dummy_on_all_cpu
243 struct perf_evsel *evsel = perf_evlist__first(&evlist->core); evlist__first() local
250 struct perf_evsel *evsel = perf_evlist__last(&evlist->core); evlist__last() local
271 __evlist__for_each_entry(list,evsel) global() argument
279 evlist__for_each_entry(evlist,evsel) global() argument
287 __evlist__for_each_entry_continue(list,evsel) global() argument
295 evlist__for_each_entry_continue(evlist,evsel) global() argument
303 __evlist__for_each_entry_from(list,evsel) global() argument
311 evlist__for_each_entry_from(evlist,evsel) global() argument
319 __evlist__for_each_entry_reverse(list,evsel) global() argument
327 evlist__for_each_entry_reverse(evlist,evsel) global() argument
336 __evlist__for_each_entry_safe(list,tmp,evsel) global() argument
345 evlist__for_each_entry_safe(evlist,tmp,evsel) global() argument
353 struct evsel *evsel; global() member
[all...]
H A Dstat-shadow.c5 #include "evsel.h"
21 const struct evsel *evsel, int *tool_aggr_idx) in tool_pmu__is_time_event()
23 enum tool_pmu_event event = evsel__tool_event(evsel); in tool_pmu__is_time_event()
46 const struct evsel *evsel, in prepare_metric()
50 struct evsel * const *metric_events = mexp->metric_events; in prepare_metric()
67 if (evsel && evsel->metric_leader && in prepare_metric()
68 evsel in prepare_metric()
22 tool_pmu__is_time_event(const struct perf_stat_config * config,const struct evsel * evsel,int * tool_aggr_idx) tool_pmu__is_time_event() argument
47 prepare_metric(struct perf_stat_config * config,const struct metric_expr * mexp,const struct evsel * evsel,struct expr_parse_ctx * pctx,int aggr_idx) prepare_metric() argument
129 generic_metric(struct perf_stat_config * config,struct metric_expr * mexp,struct evsel * evsel,int aggr_idx,struct perf_stat_output_ctx * out) generic_metric() argument
227 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
272 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) perf_stat__print_shadow_stats_metricgroup() argument
322 perf_stat__print_shadow_stats(struct perf_stat_config * config,struct evsel * evsel,int aggr_idx,struct perf_stat_output_ctx * out) perf_stat__print_shadow_stats() argument
346 perf_stat__skip_metric_event(struct evsel * evsel) perf_stat__skip_metric_event() argument
[all...]
H A Dperf_api_probe.c12 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()
93 static void perf_probe_sample_identifier(struct evsel *evsel) in perf_probe_sample_identifier() argument
95 evsel->core.attr.sample_type |= PERF_SAMPLE_IDENTIFIER; in perf_probe_sample_identifier()
98 static void perf_probe_comm_exec(struct evsel *evsel) in perf_probe_comm_exec() argument
100 evsel->core.attr.comm_exec = 1; in perf_probe_comm_exec()
[all …]
H A Dintel-tpebs.c18 #include "evsel.h"
43 /** @evsel: The evsel that opened the retire_lat event. */
44 struct evsel *evsel;
68 static struct tpebs_retire_lat *tpebs_retire_lat__find(struct evsel *evsel)
71 static int evsel__tpebs_start_perf_record(struct evsel *evsel)
98 if (!perf_cpu_map__is_any_cpu_or_is_empty(evsel in evsel__tpebs_start_perf_record()
45 struct evsel *evsel; global() member
72 evsel__tpebs_start_perf_record(struct evsel * evsel) evsel__tpebs_start_perf_record() argument
189 process_sample_event(const struct perf_tool * tool __maybe_unused,union perf_event * event __maybe_unused,struct perf_sample * sample,struct evsel * evsel,struct machine * machine __maybe_unused) process_sample_event() argument
357 evsel__tpebs_event(struct evsel * evsel,char ** event) evsel__tpebs_event() argument
391 tpebs_retire_lat__new(struct evsel * evsel) tpebs_retire_lat__new() argument
414 tpebs_retire_lat__find(struct evsel * evsel) tpebs_retire_lat__find() argument
454 evsel__tpebs_prepare(struct evsel * evsel) evsel__tpebs_prepare() argument
496 evsel__tpebs_open(struct evsel * evsel) evsel__tpebs_open() argument
561 evsel__tpebs_read(struct evsel * evsel,int cpu_map_idx,int thread) evsel__tpebs_read() argument
649 evsel__tpebs_close(struct evsel * evsel) evsel__tpebs_close() argument
[all...]
H A Dannotate.h124 struct evsel *evsel; member
204 struct evsel *evsel; member
219 struct evsel *evsel,
223 void symbol__calc_percent(struct symbol *sym, struct evsel *evsel);
398 const struct evsel *evsel) in annotated_source__histogram() argument
400 return &src->histograms[evsel->core.idx]; in annotated_source__histogram()
404 const struct evsel *evsel) in annotation__histogram() argument
406 return annotated_source__histogram(notes->src, evsel); in annotation__histogram()
410 annotated_source__hist_entry(struct annotated_source *src, const struct evsel *evsel, u64 offset) in annotated_source__hist_entry() argument
413 long key = offset << 16 | evsel->core.idx; in annotated_source__hist_entry()
[all …]
H A Dsideband_evlist.c18 struct evsel *evsel; in evlist__add_sb_event() local
25 evsel = evsel__new_idx(attr, evlist->core.nr_entries); in evlist__add_sb_event()
26 if (!evsel) in evlist__add_sb_event()
29 evsel->side_band.cb = cb; in evlist__add_sb_event()
30 evsel->side_band.data = data; in evlist__add_sb_event()
31 evlist__add(evlist, evsel); in evlist__add_sb_event()
65 struct evsel *evsel = evlist__event2evsel(evlist, event); in perf_evlist__poll_thread() local
67 if (evsel && evsel->side_band.cb) in perf_evlist__poll_thread()
68 evsel->side_band.cb(event, evsel->side_band.data); in perf_evlist__poll_thread()
86 struct evsel *evsel; in evlist__set_cb() local
[all …]
/linux/tools/perf/arch/x86/tests/
H A Dhybrid.c10 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 *evsel = evlist__first(evlist); in test__hybrid_hw_event_with_pmu() local
30 TEST_ASSERT_VAL("wrong type", PERF_TYPE_HARDWARE == evsel->core.attr.type); in test__hybrid_hw_event_with_pmu()
31 TEST_ASSERT_VAL("wrong hybrid type", test_hybrid_type(evsel, PERF_TYPE_RAW)); in test__hybrid_hw_event_with_pmu()
32 TEST_ASSERT_VAL("wrong config", test_config(evsel, PERF_COUNT_HW_CPU_CYCLES)); in test__hybrid_hw_event_with_pmu()
[all …]
/linux/tools/lib/perf/
H A Devsel.c5 #include <perf/evsel.h>
10 #include <internal/evsel.h>
23 void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr, in perf_evsel__init() argument
26 INIT_LIST_HEAD(&evsel->node); in perf_evsel__init()
27 INIT_LIST_HEAD(&evsel->per_stream_periods); in perf_evsel__init()
28 evsel->attr = *attr; in perf_evsel__init()
29 evsel->idx = idx; in perf_evsel__init()
30 evsel->leader = evsel; in perf_evsel__init()
35 struct perf_evsel *evsel in perf_evsel__new() local
43 perf_evsel__exit(struct perf_evsel * evsel) perf_evsel__exit() argument
53 perf_evsel__delete(struct perf_evsel * evsel) perf_evsel__delete() argument
65 perf_evsel__alloc_fd(struct perf_evsel * evsel,int ncpus,int nthreads) perf_evsel__alloc_fd() argument
85 perf_evsel__alloc_mmap(struct perf_evsel * evsel,int ncpus,int nthreads) perf_evsel__alloc_mmap() argument
100 get_group_fd(struct perf_evsel * evsel,int cpu_map_idx,int thread,int * group_fd) get_group_fd() argument
126 perf_evsel__open(struct perf_evsel * evsel,struct perf_cpu_map * cpus,struct perf_thread_map * threads) perf_evsel__open() argument
193 perf_evsel__close_fd_cpu(struct perf_evsel * evsel,int cpu_map_idx) perf_evsel__close_fd_cpu() argument
207 perf_evsel__close_fd(struct perf_evsel * evsel) perf_evsel__close_fd() argument
213 perf_evsel__free_fd(struct perf_evsel * evsel) perf_evsel__free_fd() argument
219 perf_evsel__close(struct perf_evsel * evsel) perf_evsel__close() argument
228 perf_evsel__close_cpu(struct perf_evsel * evsel,int cpu_map_idx) perf_evsel__close_cpu() argument
236 perf_evsel__munmap(struct perf_evsel * evsel) perf_evsel__munmap() argument
258 perf_evsel__mmap(struct perf_evsel * evsel,int pages) perf_evsel__mmap() argument
295 perf_evsel__mmap_base(struct perf_evsel * evsel,int cpu_map_idx,int thread) perf_evsel__mmap_base() argument
305 perf_evsel__read_size(struct perf_evsel * evsel) perf_evsel__read_size() argument
334 perf_evsel__read_group(struct perf_evsel * evsel,int cpu_map_idx,int thread,struct perf_counts_values * count) perf_evsel__read_group() argument
379 perf_evsel__adjust_values(struct perf_evsel * evsel,u64 * buf,struct perf_counts_values * count) perf_evsel__adjust_values() argument
400 perf_evsel__read(struct perf_evsel * evsel,int cpu_map_idx,int thread,struct perf_counts_values * count) perf_evsel__read() argument
428 perf_evsel__ioctl(struct perf_evsel * evsel,int ioc,void * arg,int cpu_map_idx,int thread) perf_evsel__ioctl() argument
439 perf_evsel__run_ioctl(struct perf_evsel * evsel,int ioc,void * arg,int cpu_map_idx) perf_evsel__run_ioctl() argument
455 perf_evsel__enable_cpu(struct perf_evsel * evsel,int cpu_map_idx) perf_evsel__enable_cpu() argument
460 perf_evsel__enable_thread(struct perf_evsel * evsel,int thread) perf_evsel__enable_thread() argument
475 perf_evsel__enable(struct perf_evsel * evsel) perf_evsel__enable() argument
485 perf_evsel__disable_cpu(struct perf_evsel * evsel,int cpu_map_idx) perf_evsel__disable_cpu() argument
490 perf_evsel__disable(struct perf_evsel * evsel) perf_evsel__disable() argument
500 perf_evsel__apply_filter(struct perf_evsel * evsel,const char * filter) perf_evsel__apply_filter() argument
511 perf_evsel__cpus(struct perf_evsel * evsel) perf_evsel__cpus() argument
516 perf_evsel__threads(struct perf_evsel * evsel) perf_evsel__threads() argument
521 perf_evsel__attr(struct perf_evsel * evsel) perf_evsel__attr() argument
526 perf_evsel__alloc_id(struct perf_evsel * evsel,int ncpus,int nthreads) perf_evsel__alloc_id() argument
545 perf_evsel__free_id(struct perf_evsel * evsel) perf_evsel__free_id() argument
560 perf_evsel__attr_has_per_thread_sample_period(struct perf_evsel * evsel) perf_evsel__attr_has_per_thread_sample_period() argument
[all...]
H A Devlist.c37 struct perf_evsel *evsel) in __perf_evlist__propagate_maps() argument
39 if (perf_cpu_map__is_empty(evsel->cpus)) { in __perf_evlist__propagate_maps()
40 if (perf_cpu_map__is_empty(evsel->pmu_cpus)) { in __perf_evlist__propagate_maps()
45 evsel->pmu_cpus = perf_cpu_map__new_online_cpus(); in __perf_evlist__propagate_maps()
47 if (evlist->has_user_cpus && !evsel->system_wide) { in __perf_evlist__propagate_maps()
52 evsel->cpus = perf_cpu_map__get(evlist->user_requested_cpus); in __perf_evlist__propagate_maps()
58 evsel->cpus = perf_cpu_map__get(evsel->pmu_cpus); in __perf_evlist__propagate_maps()
65 if (evsel->requires_cpu && perf_cpu_map__has_any_cpu(evsel->cpus)) { in __perf_evlist__propagate_maps()
66 perf_cpu_map__put(evsel->cpus); in __perf_evlist__propagate_maps()
67 evsel->cpus = perf_cpu_map__get(evsel->pmu_cpus); in __perf_evlist__propagate_maps()
[all …]
/linux/tools/perf/arch/x86/util/
H A Devsel.c22 void arch_evsel__set_sample_weight(struct evsel *evsel) in arch_evsel__set_sample_weight() argument
24 evsel__set_sample_bit(evsel, WEIGHT_STRUCT); in arch_evsel__set_sample_weight()
28 bool evsel__sys_has_perf_metrics(const struct evsel *evsel) in evsel__sys_has_perf_metrics() argument
43 pmu = evsel__find_pmu(evsel); in evsel__sys_has_perf_metrics()
47 bool arch_evsel__must_be_in_group(const struct evsel *evsel) in arch_evsel__must_be_in_group() argument
49 if (!evsel__sys_has_perf_metrics(evsel)) in arch_evsel__must_be_in_group()
52 return arch_is_topdown_metrics(evsel) || arch_is_topdown_slots(evsel); in arch_evsel__must_be_in_group()
55 int arch_evsel__hw_name(struct evsel *evsel, char *bf, size_t size) in arch_evsel__hw_name() argument
57 u64 event = evsel->core.attr.config & PERF_HW_EVENT_MASK; in arch_evsel__hw_name()
58 u64 pmu = evsel->core.attr.config >> PERF_PMU_TYPE_SHIFT; in arch_evsel__hw_name()
[all …]
H A Dtopdown.c37 bool arch_is_topdown_slots(const struct evsel *evsel) in arch_is_topdown_slots() argument
39 return evsel->core.attr.type == PERF_TYPE_RAW && in arch_is_topdown_slots()
40 evsel->core.attr.config == TOPDOWN_SLOTS && in arch_is_topdown_slots()
41 evsel->core.attr.config1 == 0; in arch_is_topdown_slots()
44 bool arch_is_topdown_metrics(const struct evsel *evsel) in arch_is_topdown_metrics() argument
47 return evsel->core.attr.type == PERF_TYPE_RAW && in arch_is_topdown_metrics()
48 (evsel->core.attr.config & 0xFFFFF8FF) == 0x8000 && in arch_is_topdown_metrics()
49 evsel->core.attr.config1 == 0; in arch_is_topdown_metrics()
58 bool arch_topdown_sample_read(struct evsel *leader) in arch_topdown_sample_read()
60 struct evsel *evsel; in arch_topdown_sample_read() local
[all …]
/linux/tools/perf/util/kvm-stat-arch/
H A Dkvm-stat-x86.c27 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
30 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
31 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
38 static bool mmio_event_begin(struct evsel *evsel, in mmio_event_begin() argument
42 if (kvm_exit_event(evsel)) in mmio_event_begin()
46 if (evsel__name_is(evsel, "kvm:kvm_mmio") && in mmio_event_begin()
47 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin()
48 mmio_event_get_key(evsel, sample, key); in mmio_event_begin()
55 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, in mmio_event_end() argument
59 if (kvm_entry_event(evsel)) in mmio_event_end()
[all …]
/linux/tools/lib/perf/tests/
H A Dtest-evlist.c38 struct perf_evsel *evsel, *leader; in test_stat_cpu() local
55 evsel = leader = perf_evsel__new(&attr1); in test_stat_cpu()
56 __T("failed to create evsel1", evsel); in test_stat_cpu()
58 perf_evlist__add(evlist, evsel); in test_stat_cpu()
60 evsel = perf_evsel__new(&attr2); in test_stat_cpu()
61 __T("failed to create evsel2", evsel); in test_stat_cpu()
63 perf_evlist__add(evlist, evsel); in test_stat_cpu()
67 __T("failed to set leader", evsel->leader == leader); in test_stat_cpu()
74 perf_evlist__for_each_evsel(evlist, evsel) { in test_stat_cpu()
75 cpus = perf_evsel__cpus(evsel); in test_stat_cpu()
[all …]
H A Dtest-evsel.c23 struct perf_evsel *evsel; in test_stat_cpu() local
33 evsel = perf_evsel__new(&attr); in test_stat_cpu()
34 __T("failed to create evsel", evsel); in test_stat_cpu()
36 err = perf_evsel__open(evsel, cpus, NULL); in test_stat_cpu()
42 perf_evsel__read(evsel, idx, 0, &counts); in test_stat_cpu()
46 perf_evsel__close(evsel); in test_stat_cpu()
47 perf_evsel__delete(evsel); in test_stat_cpu()
57 struct perf_evsel *evsel; in test_stat_thread() local
69 evsel = perf_evsel__new(&attr); in test_stat_thread()
70 __T("failed to create evsel", evsel); in test_stat_thread()
[all …]

123456789