Home
last modified time | relevance | path

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

1234567

/linux/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()
85 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint() local
89 TEST_ASSERT_VAL("wrong type", PERF_TYPE_TRACEPOINT == evsel in test__checkevent_tracepoint()
98 struct evsel *evsel; test__checkevent_tracepoint_multi() local
116 struct perf_evsel *evsel; test__checkevent_raw() local
154 struct evsel *evsel = evlist__first(evlist); test__checkevent_numeric() local
163 assert_hw(struct perf_evsel * evsel,enum perf_hw_id id,const char * name) assert_hw() argument
180 struct perf_evsel *evsel; test__checkevent_symbolic_name() local
196 struct perf_evsel *evsel; test__checkevent_symbolic_name_config() local
218 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias() local
228 struct perf_evsel *evsel; test__checkevent_genhw() local
241 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint() local
255 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x() local
268 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r() local
283 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w() local
298 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw() local
313 struct evsel *evsel = evlist__first(evlist); test__checkevent_tracepoint_modifier() local
326 struct perf_evsel *evsel; test__checkevent_tracepoint_multi_modifier() local
342 struct perf_evsel *evsel; test__checkevent_raw_modifier() local
355 struct perf_evsel *evsel; test__checkevent_numeric_modifier() local
368 struct perf_evsel *evsel; test__checkevent_symbolic_name_modifier() local
384 struct perf_evsel *evsel; test__checkevent_exclude_host_modifier() local
395 struct perf_evsel *evsel; test__checkevent_exclude_guest_modifier() local
406 struct evsel *evsel = evlist__first(evlist); test__checkevent_symbolic_alias_modifier() local
418 struct perf_evsel *evsel; test__checkevent_genhw_modifier() local
431 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier() local
446 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclude_idle_modifier_1() local
461 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_modifier() local
475 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x_modifier() local
488 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r_modifier() local
501 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w_modifier() local
514 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw_modifier() local
527 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_modifier_name() local
540 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_x_modifier_name() local
553 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_r_modifier_name() local
566 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_w_modifier_name() local
579 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_rw_modifier_name() local
592 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_2_events() local
610 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu() local
629 struct evsel *evsel = evlist__first(evlist); test__checkevent_list() local
671 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_name() local
691 struct evsel *evsel = evlist__first(evlist); test__checkevent_pmu_partial_time_callgraph() local
722 struct evsel *evsel; test__checkevent_pmu_events() local
742 struct evsel *evsel = NULL; test__checkevent_pmu_events_mix() local
858 struct evsel *evsel, *leader; test__group1() local
906 struct evsel *evsel, *leader = NULL; test__group2() local
969 struct evsel *evsel, *group1_leader = NULL, *group2_leader = NULL; test__group3() local
1076 struct evsel *evsel, *leader; test__group4() local
1125 struct evsel *evsel = NULL, *leader; test__group5() local
1222 struct evsel *evsel = NULL, *leader; test__group_gh1() local
1269 struct evsel *evsel = NULL, *leader; test__group_gh2() local
1316 struct evsel *evsel = NULL, *leader; test__group_gh3() local
1363 struct evsel *evsel = NULL, *leader; test__group_gh4() local
1410 struct evsel *evsel = NULL, *leader; test__leader_sample1() local
1470 struct evsel *evsel = NULL, *leader; test__leader_sample2() local
1515 struct evsel *evsel = NULL; test__checkevent_pinned_modifier() local
1533 struct evsel *evsel = NULL, *leader; test__pinned_group() local
1574 struct evsel *evsel = evlist__first(evlist); test__checkevent_exclusive_modifier() local
1587 struct evsel *evsel = NULL, *leader; test__exclusive_group() local
1627 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len() local
1642 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_w() local
1658 struct evsel *evsel = evlist__first(evlist); test__checkevent_breakpoint_len_rw_modifier() local
1670 struct evsel *evsel = evlist__first(evlist); test__checkevent_precise_max_modifier() local
1681 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_symbol() local
1689 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_raw() local
1697 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_num() local
1705 struct evsel *evsel = evlist__first(evlist); test__checkevent_config_cache() local
1733 struct evsel *evsel = evlist__first(evlist); test__intel_pt() local
1741 struct evsel *evsel = evlist__first(evlist); test__checkevent_complex_name() local
1751 struct evsel *evsel = evlist__first(evlist); test__checkevent_raw_pmu() local
1761 struct evsel *evsel = evlist__first(evlist); test__sym_event_slash() local
1773 struct evsel *evsel = evlist__first(evlist); test__sym_event_dc() local
1785 struct evsel *evsel = evlist__first(evlist); test__term_equal_term() local
1797 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...]
H A Devent-times.c11 #include "evsel.h"
19 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 *evse in attach__current_enabled() local
105 struct evsel *evsel = evlist__last(evlist); detach__disable() local
112 struct evsel *evsel = evlist__last(evlist); attach__cpu_disabled() local
141 struct evsel *evsel = evlist__last(evlist); attach__cpu_enabled() local
166 struct evsel *evsel; test_times() local
[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...]
/linux/tools/perf/util/
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
720 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()
169 bpf_program_profiler__load(struct evsel * evsel,struct target * target) bpf_program_profiler__load() argument
201 bpf_program_profiler__enable(struct evsel * evsel) bpf_program_profiler__enable() argument
217 bpf_program_profiler__disable(struct evsel * evsel) bpf_program_profiler__disable() argument
228 bpf_program_profiler__read(struct evsel * evsel) bpf_program_profiler__read() argument
276 bpf_program_profiler__install_pe(struct evsel * evsel,int cpu_map_idx,int fd) bpf_program_profiler__install_pe() argument
365 bperf_check_target(struct evsel * evsel,struct target * target,enum bperf_filter_type * filter_type,__u32 * filter_entry_cnt) bperf_check_target() argument
399 bperf_reload_leader_program(struct evsel * evsel,int attr_map_fd,struct perf_event_attr_map_entry * entry) bperf_reload_leader_program() argument
468 bperf__load(struct evsel * evsel,struct target * target) bperf__load() argument
598 bperf__install_pe(struct evsel * evsel,int cpu_map_idx,int fd) bperf__install_pe() argument
610 bperf_sync_counters(struct evsel * evsel) bperf_sync_counters() argument
622 bperf__enable(struct evsel * evsel) bperf__enable() argument
628 bperf__disable(struct evsel * evsel) bperf__disable() argument
634 bperf__read(struct evsel * evsel) bperf__read() argument
694 bperf__destroy(struct evsel * evsel) bperf__destroy() argument
788 bpf_counter_skip(struct evsel * evsel) bpf_counter_skip() argument
793 bpf_counter__install_pe(struct evsel * evsel,int cpu_map_idx,int fd) bpf_counter__install_pe() argument
800 bpf_counter__load(struct evsel * evsel,struct target * target) bpf_counter__load() argument
815 bpf_counter__enable(struct evsel * evsel) bpf_counter__enable() argument
822 bpf_counter__disable(struct evsel * evsel) bpf_counter__disable() argument
829 bpf_counter__read(struct evsel * evsel) bpf_counter__read() argument
836 bpf_counter__destroy(struct evsel * evsel) bpf_counter__destroy() argument
[all...]
H A Dstat-shadow.c4 #include "evsel.h"
56 static int evsel_context(const struct evsel *evsel) in evsel_context() argument
60 if (evsel->core.attr.exclude_kernel) in evsel_context()
62 if (evsel->core.attr.exclude_user) in evsel_context()
64 if (evsel->core.attr.exclude_hv) in evsel_context()
66 if (evsel->core.attr.exclude_host) in evsel_context()
68 if (evsel->core.attr.exclude_idle) in evsel_context()
80 static enum stat_type evsel__stat_type(struct evsel *evsel) in evsel__stat_type() argument
150 find_stat(const struct evsel * evsel,int aggr_idx,enum stat_type type) find_stat() argument
193 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 thresh_ratios[3],const char * _unit) print_ratio() argument
214 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
225 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
236 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
247 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
258 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
269 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
280 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
291 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
302 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
313 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
339 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
357 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
375 prepare_metric(const struct metric_expr * mexp,const struct evsel * evsel,struct expr_parse_ctx * pctx,int aggr_idx) prepare_metric() argument
489 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
587 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
634 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
684 perf_stat__print_shadow_stats(struct perf_stat_config * config,struct evsel * evsel,double avg,int aggr_idx,struct perf_stat_output_ctx * out) perf_stat__print_shadow_stats() argument
749 perf_stat__skip_metric_event(struct evsel * evsel,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 Dtool_pmu.c5 #include "evsel.h"
91 bool evsel__is_tool(const struct evsel *evsel) in evsel__is_tool() argument
93 return perf_pmu__is_tool(evsel->pmu); in evsel__is_tool()
96 enum tool_pmu_event evsel__tool_event(const struct evsel *evsel) in evsel__tool_event() argument
98 if (!evsel__is_tool(evsel)) in evsel__tool_event()
101 return (enum tool_pmu_event)evsel->core.attr.config; in evsel__tool_event()
104 const char *evsel__tool_pmu_event_name(const struct evsel *evsel) in evsel__tool_pmu_event_name() argument
201 evsel__tool_pmu_prepare_open(struct evsel * evsel,struct perf_cpu_map * cpus,int nthreads) evsel__tool_pmu_prepare_open() argument
219 evsel__tool_pmu_open(struct evsel * evsel,struct perf_thread_map * threads,int start_cpu_map_idx,int end_cpu_map_idx) evsel__tool_pmu_open() argument
335 tool_pmu__read_event(enum tool_pmu_event ev,struct evsel * evsel,u64 * result) tool_pmu__read_event() argument
437 evsel__tool_pmu_read(struct evsel * evsel,int cpu_map_idx,int thread) evsel__tool_pmu_read() 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 Dintel-tpebs.c18 #include "evsel.h"
43 /** @evsel: The evsel that opened the retire_lat event. */
44 struct evsel *evsel; member
68 static struct tpebs_retire_lat *tpebs_retire_lat__find(struct evsel *evsel)
71 static int evsel__tpebs_start_perf_record(struct evsel *evsel) in evsel__tpebs_start_perf_record() argument
98 if (!perf_cpu_map__is_any_cpu_or_is_empty(evsel in evsel__tpebs_start_perf_record()
188 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
355 evsel__tpebs_event(struct evsel * evsel,char ** event) evsel__tpebs_event() argument
389 tpebs_retire_lat__new(struct evsel * evsel) tpebs_retire_lat__new() argument
412 tpebs_retire_lat__find(struct evsel * evsel) tpebs_retire_lat__find() argument
452 evsel__tpebs_prepare(struct evsel * evsel) evsel__tpebs_prepare() argument
494 evsel__tpebs_open(struct evsel * evsel) evsel__tpebs_open() argument
559 evsel__tpebs_read(struct evsel * evsel,int cpu_map_idx,int thread) evsel__tpebs_read() argument
647 evsel__tpebs_close(struct evsel * evsel) evsel__tpebs_close() argument
[all...]
H A Dannotate.h18 #include "evsel.h"
124 struct evsel *evsel; member
207 struct evsel *evsel,
211 void symbol__calc_percent(struct symbol *sym, struct evsel *evsel);
269 * @nr_histograms: This may not be the same as evsel->evlist->core.nr_entries if
272 * sets src->nr_histograms to evsel->nr_members.
386 const struct evsel *evse in annotated_source__histogram() argument
392 annotation__histogram(struct annotation * notes,const struct evsel * evsel) annotation__histogram() argument
398 annotated_source__hist_entry(struct annotated_source * src,const struct evsel * evsel,u64 offset) annotated_source__hist_entry() argument
[all...]
H A Dsideband_evlist.c5 #include "util/evsel.h"
18 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 in perf_evlist__poll_thread() local
86 struct evsel *evsel; evlist__set_cb() local
[all...]
H A Dkvm-stat.c3 #include "evsel.h"
8 bool kvm_exit_event(struct evsel *evsel) in kvm_exit_event() argument
10 return evsel__name_is(evsel, kvm_exit_trace); in kvm_exit_event()
13 void exit_event_get_key(struct evsel *evsel, in exit_event_get_key() argument
18 key->key = evsel__intval(evsel, sample, kvm_exit_reason); in exit_event_get_key()
22 bool exit_event_begin(struct evsel *evsel, in exit_event_begin() argument
25 if (kvm_exit_event(evsel)) { in exit_event_begin()
33 kvm_entry_event(struct evsel * evsel) kvm_entry_event() argument
38 exit_event_end(struct evsel * evsel,struct perf_sample * sample __maybe_unused,struct event_key * key __maybe_unused) exit_event_end() argument
[all...]
H A Dtool_pmu.h7 struct evsel;
37 bool tool_pmu__read_event(enum tool_pmu_event ev, struct evsel *evsel, u64 *result);
43 bool evsel__is_tool(const struct evsel *evsel);
44 enum tool_pmu_event evsel__tool_event(const struct evsel *evsel);
45 const char *evsel__tool_pmu_event_name(const struct evsel *evsel);
46 int evsel__tool_pmu_prepare_open(struct evsel *evse
[all...]
H A Dcounts.c5 #include "evsel.h"
53 void evsel__reset_counts(struct evsel *evsel) in evsel__reset_counts() argument
55 perf_counts__reset(evsel->counts); in evsel__reset_counts()
58 int evsel__alloc_counts(struct evsel *evsel) in evsel__alloc_counts() argument
60 struct perf_cpu_map *cpus = evsel__cpus(evsel); in evsel__alloc_counts()
61 int nthreads = perf_thread_map__nr(evsel->core.threads); in evsel__alloc_counts()
63 evsel->counts = perf_counts__new(perf_cpu_map__nr(cpus), nthreads); in evsel__alloc_counts()
64 return evsel in evsel__alloc_counts()
67 evsel__free_counts(struct evsel * evsel) evsel__free_counts() argument
[all...]
H A Dkvm-stat.h18 struct evsel;
57 void (*get_key)(struct evsel *evsel,
64 bool (*is_begin_event)(struct evsel *evsel,
67 bool (*is_end_event)(struct evsel *evsel,
120 void exit_event_get_key(struct evsel *evsel,
123 bool exit_event_begin(struct evsel *evse
[all...]
/linux/tools/perf/arch/x86/util/
H A Dtopdown.c7 #include "evsel.h"
36 bool arch_is_topdown_slots(const struct evsel *evsel) in arch_is_topdown_slots() argument
38 return evsel->core.attr.type == PERF_TYPE_RAW && in arch_is_topdown_slots()
39 evsel->core.attr.config == TOPDOWN_SLOTS && in arch_is_topdown_slots()
40 evsel->core.attr.config1 == 0; in arch_is_topdown_slots()
43 bool arch_is_topdown_metrics(const struct evsel *evsel) in arch_is_topdown_metrics() argument
46 return evsel->core.attr.type == PERF_TYPE_RAW && in arch_is_topdown_metrics()
47 (evsel in arch_is_topdown_metrics()
59 struct evsel *evsel; arch_topdown_sample_read() local
88 struct evsel *evsel = evsel__new_idx(&metric_event->core.attr, idx); topdown_insert_slots_event() local
[all...]
H A Devsel.c4 #include "util/evsel.h"
10 #include "evsel.h"
17 void arch_evsel__set_sample_weight(struct evsel *evsel) in arch_evsel__set_sample_weight() argument
19 evsel__set_sample_bit(evsel, WEIGHT_STRUCT); in arch_evsel__set_sample_weight()
22 /* Check whether the evsel's PMU supports the perf metrics */
23 bool evsel__sys_has_perf_metrics(const struct evsel *evsel) in evsel__sys_has_perf_metrics() argument
38 pmu = evsel__find_pmu(evsel); in evsel__sys_has_perf_metrics()
42 bool arch_evsel__must_be_in_group(const struct evsel *evse 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...]
/linux/tools/lib/perf/tests/
H A Dtest-evlist.c17 #include <perf/evsel.h>
23 #include <internal/evsel.h>
38 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 in test_stat_cpu()
97 struct perf_evsel *evsel, *leader; test_stat_thread() local
152 struct perf_evsel *evsel, *leader; test_stat_thread_enable() local
216 struct perf_evsel *evsel; test_mmap_thread() local
327 struct perf_evsel *evsel; test_mmap_cpus() local
445 struct perf_evsel *evsel; test_stat_multiplexing() local
[all...]
H A Dtest-evsel.c9 #include <perf/evsel.h>
10 #include <internal/evsel.h>
23 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()
37 __T("failed to open evsel", err == 0); in test_stat_cpu()
42 perf_evsel__read(evsel, idx, 0, &counts); in test_stat_cpu()
43 __T("failed to read value for evsel", count in test_stat_cpu()
57 struct perf_evsel *evsel; test_stat_thread() local
89 struct perf_evsel *evsel; test_stat_thread_enable() local
131 struct perf_evsel *evsel; test_stat_user_read() local
197 struct perf_evsel *evsel; test_stat_read_format_single() local
[all...]
/linux/tools/lib/perf/include/perf/
H A Devsel.h29 LIBPERF_API void perf_evsel__delete(struct perf_evsel *evsel);
30 LIBPERF_API int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus,
32 LIBPERF_API void perf_evsel__close(struct perf_evsel *evsel);
33 LIBPERF_API void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu_map_idx);
34 LIBPERF_API int perf_evsel__mmap(struct perf_evsel *evsel, int pages);
35 LIBPERF_API void perf_evsel__munmap(struct perf_evsel *evsel);
36 LIBPERF_API void *perf_evsel__mmap_base(struct perf_evsel *evsel, int cpu_map_idx, int thread);
37 LIBPERF_API int perf_evsel__read(struct perf_evsel *evsel, int cpu_map_idx, int thread,
39 LIBPERF_API int perf_evsel__enable(struct perf_evsel *evsel);
40 LIBPERF_API int perf_evsel__enable_cpu(struct perf_evsel *evsel, in
[all...]
/linux/tools/perf/arch/x86/tests/
H A Dtopdown.c15 struct evsel *evsel; in event_cb() local
28 evlist__for_each_entry(evlist, evsel) { in event_cb()
30 bool p_core_pmu = evsel->pmu->type == PERF_TYPE_RAW; in event_cb()
31 const char *name = evsel__name(evsel); in event_cb()
39 if (arch_is_topdown_slots(evsel) || arch_is_topdown_metrics(evsel)) in event_cb()
42 if (arch_is_topdown_slots(evsel) != p_core_pmu || in event_cb()
43 arch_is_topdown_metrics(evsel)) in event_cb()
46 if (arch_is_topdown_slots(evsel) || in event_cb()
[all...]
/linux/tools/lib/perf/include/internal/
H A Devlist.h8 #include <internal/evsel.h>
27 /** The union of all evsel cpu maps. */
68 * @evsel: struct perf_evsel iterator
70 #define __perf_evlist__for_each_entry(list, evsel) \ argument
71 list_for_each_entry(evsel, list, node)
76 * @evsel: struct perf_evsel iterator
78 #define perf_evlist__for_each_entry(evlist, evsel) \ argument
79 __perf_evlist__for_each_entry(&(evlist)->entries, evsel)
84 * @evsel: struct evsel iterato
86 __perf_evlist__for_each_entry_reverse(list,evsel) global() argument
94 perf_evlist__for_each_entry_reverse(evlist,evsel) global() argument
103 __perf_evlist__for_each_entry_safe(list,tmp,evsel) global() argument
112 perf_evlist__for_each_entry_safe(evlist,tmp,evsel) global() argument
[all...]

1234567