| /linux/tools/perf/util/ |
| H A D | evsel.h | 45 struct evsel { struct 46 struct perf_evsel core; argument 55 * Please check evsel__clone() to copy them properly so that argument 74 * This point to the first evsel with the same name, intended to store the argument 103 struct evsel **metric_events; argument 104 struct evsel *metric_leader; argument 110 struct perf_stat_evsel *stats; argument 131 evsel__sb_cb_t *cb; argument 135 * For reporting purposes, an evsel sample can have a callchain argument 141 __u64 synth_sample_type; [all …]
|
| H A D | evsel.c | 221 int evsel__object_config(size_t object_size, int (*init)(struct evsel *evsel), in evsel__object_config() 222 void (*fini)(struct evsel *evsel)) in evsel__object_config() 243 const char *evsel__pmu_name(const struct evsel *evsel) in evsel__pmu_name() 331 void evsel__calc_id_pos(struct evsel *evsel) in evsel__calc_id_pos() 337 void __evsel__set_sample_bit(struct evsel *evsel, in __evsel__set_sample_bit() 347 void __evsel__reset_sample_bit(struct evsel *evsel, in __evsel__reset_sample_bit() 357 void evsel__set_sample_id(struct evsel *evsel, in evsel__set_sample_id() 377 bool evsel__is_function_event(struct evsel *evsel) in evsel__is_function_event() 387 void evsel__init(struct evsel *evsel, in evsel__init() 417 struct evsel *evsel = zalloc(perf_evsel__object.size); in evsel__new_idx() local [all …]
|
| H A D | stat.c | 80 static void evsel__reset_aggr_stats(struct evsel *evsel) in evsel__reset_aggr_stats() 89 static void evsel__reset_stat_priv(struct evsel *evsel) in evsel__reset_stat_priv() 97 static int evsel__alloc_aggr_stats(struct evsel *evsel, int nr_aggr) in evsel__alloc_aggr_stats() 114 struct evsel *evsel; in evlist__alloc_aggr_stats() local 123 static int evsel__alloc_stat_priv(struct evsel *evsel, int nr_aggr) in evsel__alloc_stat_priv() 143 static void evsel__free_stat_priv(struct evsel *evsel) in evsel__free_stat_priv() 154 static int evsel__alloc_prev_raw_counts(struct evsel *evsel) in evsel__alloc_prev_raw_counts() 167 static void evsel__free_prev_raw_counts(struct evsel *evsel) in evsel__free_prev_raw_counts() 173 static void evsel__reset_prev_raw_counts(struct evsel *evsel) in evsel__reset_prev_raw_counts() 179 static int evsel__alloc_stats(struct evsel *evsel, int nr_aggr, bool alloc_raw) in evsel__alloc_stats() [all …]
|
| H A D | bpf_counter.c | 106 static int bpf_program_profiler__destroy(struct evsel *evsel) 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() 227 static int bpf_program_profiler__load(struct evsel *evsel, struct target *target) in bpf_program_profiler__load() 259 static int bpf_program_profiler__enable(struct evsel *evsel) in bpf_program_profiler__enable() 275 static int bpf_program_profiler__disable(struct evsel *evsel) in bpf_program_profiler__disable() 286 static int bpf_program_profiler__read(struct evsel *evsel) in bpf_program_profiler__read() 334 static int bpf_program_profiler__install_pe(struct evsel *evsel, int cpu_map_idx, in bpf_program_profiler__install_pe() 424 static int bperf_check_target(struct evsel *evsel, in bperf_check_target() 457 static int bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd, in bperf_reload_leader_program() 526 static int bperf__load(struct evsel *evsel, struct target *target) in bperf__load() [all …]
|
| H A D | stat-shadow.c | 56 static int evsel_context(const struct evsel *evsel) in evsel_context() 80 static enum stat_type evsel__stat_type(struct evsel *evsel) in evsel__stat_type() 150 static double find_stat(const struct evsel *evsel, int aggr_idx, enum stat_type type) in find_stat() 193 const struct evsel *evsel, int aggr_idx, in print_ratio() 214 const struct evsel *evsel, in print_stalled_cycles_front() 225 const struct evsel *evsel, in print_stalled_cycles_back() 236 const struct evsel *evsel, in print_branch_miss() 247 const struct evsel *evsel, in print_l1d_miss() 258 const struct evsel *evsel, in print_l1i_miss() 269 const struct evsel *evsel, in print_ll_miss() [all …]
|
| H A D | perf_api_probe.c | 17 struct evsel *evsel; in perf_do_probe_api() local 82 static void perf_probe_sample_identifier(struct evsel *evsel) in perf_probe_sample_identifier() 87 static void perf_probe_comm_exec(struct evsel *evsel) in perf_probe_comm_exec() 92 static void perf_probe_context_switch(struct evsel *evsel) in perf_probe_context_switch() 97 static void perf_probe_text_poke(struct evsel *evsel) in perf_probe_text_poke() 102 static void perf_probe_build_id(struct evsel *evsel) in perf_probe_build_id() 107 static void perf_probe_cgroup(struct evsel *evsel) in perf_probe_cgroup()
|
| H A D | evlist.h | 239 struct perf_evsel *evsel = perf_evlist__first(&evlist->core); in evlist__first() local 246 struct perf_evsel *evsel = perf_evlist__last(&evlist->core); in evlist__last() local 267 #define __evlist__for_each_entry(list, evsel) \ argument 275 #define evlist__for_each_entry(evlist, evsel) \ argument 283 #define __evlist__for_each_entry_continue(list, evsel) \ argument 291 #define evlist__for_each_entry_continue(evlist, evsel) \ argument 299 #define __evlist__for_each_entry_from(list, evsel) \ argument 307 #define evlist__for_each_entry_from(evlist, evsel) \ argument 315 #define __evlist__for_each_entry_reverse(list, evsel) \ argument 323 #define evlist__for_each_entry_reverse(evlist, evsel) \ argument [all …]
|
| H A D | intel-tpebs.c | 44 struct evsel *evsel; member 71 static int evsel__tpebs_start_perf_record(struct evsel *evsel) in evsel__tpebs_start_perf_record() 188 struct evsel *evsel, in process_sample_event() 355 static int evsel__tpebs_event(struct evsel *evsel, char **event) in evsel__tpebs_event() 389 static struct tpebs_retire_lat *tpebs_retire_lat__new(struct evsel *evsel) in tpebs_retire_lat__new() 412 static struct tpebs_retire_lat *tpebs_retire_lat__find(struct evsel *evsel) in tpebs_retire_lat__find() 452 static int evsel__tpebs_prepare(struct evsel *evsel) in evsel__tpebs_prepare() 494 int evsel__tpebs_open(struct evsel *evsel) in evsel__tpebs_open() 559 int evsel__tpebs_read(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__tpebs_read() 647 void evsel__tpebs_close(struct evsel *evsel) in evsel__tpebs_close()
|
| H A D | evlist.c | 117 struct evsel *evsel; in evlist__new_default() local 155 struct evsel *evsel; in evlist__update_id_pos() local 208 void evlist__remove(struct evlist *evlist, struct evsel *evsel) in evlist__remove() 217 struct evsel *evsel, *temp, *leader = NULL; in evlist__splice_list_tail() local 243 struct evsel *evsel = evlist__find_tracepoint_by_name(evlist, assocs[i].name); in __evlist__set_tracepoints_handlers() local 279 struct evsel *evsel = evlist__dummy_event(evlist); in evlist__add_dummy() local 290 struct evsel *evsel = evlist__dummy_event(evlist); in evlist__add_aux_dummy() local 309 struct evsel *evsel = evsel__newtp_idx("sched", "sched_switch", 0, in evlist__add_sched_switch() local 328 struct evsel *evsel; in evlist__find_tracepoint_by_name() local 342 struct evsel *evsel = evsel__newtp(sys, name); in evlist__add_newtp() local [all …]
|
| H A D | bpf_counter_cgroup.c | 48 struct evsel *evsel; in bperf_load_program() local 170 static int bperf_cgrp__load(struct evsel *evsel, in bperf_cgrp__load() 212 static int bperf_cgrp__enable(struct evsel *evsel) in bperf_cgrp__enable() 223 static int bperf_cgrp__disable(struct evsel *evsel) in bperf_cgrp__disable() 234 static int bperf_cgrp__read(struct evsel *evsel) in bperf_cgrp__read() 278 static int bperf_cgrp__destroy(struct evsel *evsel) in bperf_cgrp__destroy()
|
| H A D | tool_pmu.c | 91 bool evsel__is_tool(const struct evsel *evsel) in evsel__is_tool() 96 enum tool_pmu_event evsel__tool_event(const struct evsel *evsel) in evsel__tool_event() 104 const char *evsel__tool_pmu_event_name(const struct evsel *evsel) in evsel__tool_pmu_event_name() 201 int evsel__tool_pmu_prepare_open(struct evsel *evsel, in evsel__tool_pmu_prepare_open() 219 int evsel__tool_pmu_open(struct evsel *evsel, in evsel__tool_pmu_open() 332 bool tool_pmu__read_event(enum tool_pmu_event ev, struct evsel *evsel, u64 *result) in tool_pmu__read_event() 434 int evsel__tool_pmu_read(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__tool_pmu_read()
|
| H A D | record.c | 26 static struct evsel *evsel__read_sampler(struct evsel *evsel, struct evlist *evlist) in evsel__read_sampler() argument 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...] |
| /linux/tools/perf/tests/ |
| H A D | parse-events.c | 37 static bool test_config(const struct evsel *evsel, __u64 expected_config) in test_config() 52 static bool test_perf_config(const struct perf_evsel *evsel, __u64 expected_config) in test_perf_config() 85 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint() local 98 struct evsel *evsel; in test__checkevent_tracepoint_multi() local 116 struct perf_evsel *evsel; in test__checkevent_raw() local 154 struct evsel *evsel = evlist__first(evlist); in test__checkevent_numeric() local 163 static int assert_hw(struct perf_evsel *evsel, enum perf_hw_id id, const char *name) in assert_hw() 180 struct perf_evsel *evsel; in test__checkevent_symbolic_name() local 196 struct perf_evsel *evsel; in test__checkevent_symbolic_name_config() local 218 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_alias() local [all …]
|
| H A D | event-times.c | 19 struct evsel *evsel = evlist__last(evlist); in attach__enable_on_exec() local 59 struct evsel *evsel = evlist__last(evlist); in attach__current_disabled() local 85 struct evsel *evsel = evlist__last(evlist); in attach__current_enabled() local 105 struct evsel *evsel = evlist__last(evlist); in detach__disable() local 112 struct evsel *evsel = evlist__last(evlist); in attach__cpu_disabled() local 141 struct evsel *evsel = evlist__last(evlist); in attach__cpu_enabled() local 166 struct evsel *evsel; in test_times() local
|
| H A D | hists_output.c | 53 struct evsel *evsel = hists_to_evsel(hists); in add_hist_entries() local 138 static int test1(struct evsel *evsel, struct machine *machine) in test1() 240 static int test2(struct evsel *evsel, struct machine *machine) in test2() 296 static int test3(struct evsel *evsel, struct machine *machine) in test3() 370 static int test4(struct evsel *evsel, struct machine *machine) in test4() 472 static int test5(struct evsel *evsel, struct machine *machine) in test5() 596 struct evsel *evsel; in test__hists_output() local
|
| /linux/tools/lib/perf/ |
| H A D | evsel.c | 23 void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr, in perf_evsel__init() 35 struct perf_evsel *evsel = zalloc(sizeof(*evsel)); in perf_evsel__new() local 43 void perf_evsel__exit(struct perf_evsel *evsel) in perf_evsel__exit() 53 void perf_evsel__delete(struct perf_evsel *evsel) in perf_evsel__delete() 65 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd() 85 static int perf_evsel__alloc_mmap(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_mmap() 100 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) in get_group_fd() 126 int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, in perf_evsel__open() 193 static void perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu_map_idx) in perf_evsel__close_fd_cpu() 207 void perf_evsel__close_fd(struct perf_evsel *evsel) in perf_evsel__close_fd() [all …]
|
| H A D | evlist.c | 37 struct perf_evsel *evsel) in __perf_evlist__propagate_maps() 136 struct perf_evsel *evsel, *n; in perf_evlist__propagate_maps() local 149 struct perf_evsel *evsel) in perf_evlist__add() 160 struct perf_evsel *evsel) in perf_evlist__remove() 257 struct perf_evsel *evsel; in perf_evlist__open() local 275 struct perf_evsel *evsel; in perf_evlist__close() local 283 struct perf_evsel *evsel; in perf_evlist__enable() local 291 struct perf_evsel *evsel; in perf_evlist__disable() local 307 struct perf_evsel *evsel, in perf_evlist__id_hash() 328 struct perf_evsel *evsel, in perf_evlist__id_add() [all …]
|
| /linux/tools/perf/arch/x86/tests/ |
| H A D | hybrid.c | 10 static bool test_config(const struct evsel *evsel, __u64 expected_config) in test_config() 15 static bool test_perf_config(const struct perf_evsel *evsel, __u64 expected_config) in test_perf_config() 20 static bool test_hybrid_type(const struct evsel *evsel, __u64 expected_config) in test_hybrid_type() 27 struct evsel *evsel = evlist__first(evlist); in test__hybrid_hw_event_with_pmu() local 38 struct evsel *evsel, *leader; in test__hybrid_hw_group_event() local 57 struct evsel *evsel, *leader; in test__hybrid_sw_hw_group_event() local 74 struct evsel *evsel, *leader; in test__hybrid_hw_sw_group_event() local 91 struct evsel *evsel, *leader; in test__hybrid_group_modifier1() local 114 struct perf_evsel *evsel; in test__hybrid_raw1() local 128 struct evsel *evsel = evlist__first(evlist); in test__hybrid_raw2() local [all …]
|
| /linux/tools/perf/arch/x86/util/ |
| H A D | evsel.c | 22 void arch_evsel__set_sample_weight(struct evsel *evsel) in arch_evsel__set_sample_weight() 28 bool evsel__sys_has_perf_metrics(const struct evsel *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() 55 int arch_evsel__hw_name(struct evsel *evsel, char *bf, size_t size) in arch_evsel__hw_name() 75 void arch_evsel__apply_ratio_to_prev(struct evsel *evsel, in arch_evsel__apply_ratio_to_prev() 133 void arch__post_evsel_config(struct evsel *evsel, struct perf_event_attr *attr) in arch__post_evsel_config() 161 static int amd_evsel__open_strerror(struct evsel *evsel, char *msg, size_t size) in amd_evsel__open_strerror() 182 static int intel_evsel__open_strerror(struct evsel *evsel, int err, char *msg, size_t size) in intel_evsel__open_strerror() 224 int arch_evsel__open_strerror(struct evsel *evsel, int err, char *msg, size_t size) in arch_evsel__open_strerror()
|
| H A D | kvm-stat.c | 32 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() 43 static bool mmio_event_begin(struct evsel *evsel, in mmio_event_begin() 60 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, in mmio_event_end() 94 static void ioport_event_get_key(struct evsel *evsel, in ioport_event_get_key() 102 static bool ioport_event_begin(struct evsel *evsel, in ioport_event_begin() 114 static bool ioport_event_end(struct evsel *evsel, in ioport_event_end() 138 static void msr_event_get_key(struct evsel *evsel, in msr_event_get_key() 146 static bool msr_event_begin(struct evsel *evsel, in msr_event_begin() 158 static bool msr_event_end(struct evsel *evsel, in msr_event_end()
|
| H A D | topdown.c | 36 bool arch_is_topdown_slots(const struct evsel *evsel) in arch_is_topdown_slots() 43 bool arch_is_topdown_metrics(const struct evsel *evsel) in arch_is_topdown_metrics() 59 struct evsel *evsel; in arch_topdown_sample_read() local 88 struct evsel *evsel = evsel__new_idx(&metric_event->core.attr, idx); in topdown_insert_slots_event() local
|
| /linux/tools/lib/perf/include/internal/ |
| H A D | evlist.h | 70 #define __perf_evlist__for_each_entry(list, evsel) \ argument 78 #define perf_evlist__for_each_entry(evlist, evsel) \ argument 86 #define __perf_evlist__for_each_entry_reverse(list, evsel) \ argument 94 #define perf_evlist__for_each_entry_reverse(evlist, evsel) \ argument 103 #define __perf_evlist__for_each_entry_safe(list, tmp, evsel) \ argument 112 #define perf_evlist__for_each_entry_safe(evlist, tmp, evsel) \ argument
|
| /linux/tools/perf/arch/s390/util/ |
| H A D | kvm-stat.c | 26 static void event_icpt_insn_get_key(struct evsel *evsel, in event_icpt_insn_get_key() 37 static void event_sigp_get_key(struct evsel *evsel, in event_sigp_get_key() 45 static void event_diag_get_key(struct evsel *evsel, in event_diag_get_key() 53 static void event_icpt_prog_get_key(struct evsel *evsel, in event_icpt_prog_get_key()
|
| /linux/tools/perf/ |
| H A D | builtin-kwork.c | 451 struct evsel *evsel, in work_push_atom() 510 struct evsel *evsel, in work_pop_atom() 602 struct evsel *evsel, in report_entry_event() 613 struct evsel *evsel, in report_exit_event() 657 struct evsel *evsel, in latency_raise_event() 668 struct evsel *evsel, in latency_entry_event() 691 struct evsel *evsel, in timehist_save_callchain() 816 struct evsel *evsel, in timehist_raise_event() 827 struct evsel *evsel, in timehist_entry_event() 848 struct evsel *evsel, in timehist_exit_event() [all …]
|
| /linux/tools/lib/perf/tests/ |
| H A D | test-evsel.c | 23 struct perf_evsel *evsel; in test_stat_cpu() local 57 struct perf_evsel *evsel; in test_stat_thread() local 89 struct perf_evsel *evsel; in test_stat_thread_enable() local 131 struct perf_evsel *evsel; in test_stat_user_read() local 197 struct perf_evsel *evsel; in test_stat_read_format_single() local
|