/Linux-v5.15/tools/perf/util/ |
D | evsel.h | 48 struct evsel { struct 49 struct perf_evsel core; argument 58 * Please check evsel__clone() to copy them properly so that argument 61 struct { 97 struct evsel **metric_events; argument 98 struct evsel *metric_leader; argument 104 struct perf_stat_evsel *stats; argument 128 * For reporting purposes, an evsel sample can have a callchain argument 134 __u64 synth_sample_type; 141 struct bpf_counter_ops *bpf_counter_ops; [all …]
|
D | evsel.c | 83 int evsel__object_config(size_t object_size, int (*init)(struct evsel *evsel), in evsel__object_config() 84 void (*fini)(struct evsel *evsel)) in evsel__object_config() 183 void evsel__calc_id_pos(struct evsel *evsel) in evsel__calc_id_pos() 189 void __evsel__set_sample_bit(struct evsel *evsel, in __evsel__set_sample_bit() 199 void __evsel__reset_sample_bit(struct evsel *evsel, in __evsel__reset_sample_bit() 209 void evsel__set_sample_id(struct evsel *evsel, in evsel__set_sample_id() 229 bool evsel__is_function_event(struct evsel *evsel) in evsel__is_function_event() 239 void evsel__init(struct evsel *evsel, in evsel__init() 266 struct evsel *evsel = zalloc(perf_evsel__object.size); in evsel__new_idx() local 304 struct evsel *evsel; in evsel__new_cycles() local [all …]
|
D | bpf_counter.c | 47 static int bpf_program_profiler__destroy(struct evsel *evsel) 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() 167 static int bpf_program_profiler__load(struct evsel *evsel, struct target *target) in bpf_program_profiler__load() 198 static int bpf_program_profiler__enable(struct evsel *evsel) in bpf_program_profiler__enable() 214 static int bpf_program_profiler__disable(struct evsel *evsel) in bpf_program_profiler__disable() 225 static int bpf_program_profiler__read(struct evsel *evsel) in bpf_program_profiler__read() 268 static int bpf_program_profiler__install_pe(struct evsel *evsel, int cpu, in bpf_program_profiler__install_pe() 357 static int bperf_check_target(struct evsel *evsel, in bperf_check_target() 390 static int bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd, in bperf_reload_leader_program() 439 static int bperf__load(struct evsel *evsel, struct target *target) in bperf__load() [all …]
|
D | stat.c | 79 bool __perf_stat_evsel__is(struct evsel *evsel, enum perf_stat_evsel_id id) in __perf_stat_evsel__is() 111 static void perf_stat_evsel_id_init(struct evsel *evsel) in perf_stat_evsel_id_init() 126 static void evsel__reset_stat_priv(struct evsel *evsel) in evsel__reset_stat_priv() 137 static int evsel__alloc_stat_priv(struct evsel *evsel) in evsel__alloc_stat_priv() 146 static void evsel__free_stat_priv(struct evsel *evsel) in evsel__free_stat_priv() 155 static int evsel__alloc_prev_raw_counts(struct evsel *evsel, int ncpus, int nthreads) in evsel__alloc_prev_raw_counts() 166 static void evsel__free_prev_raw_counts(struct evsel *evsel) in evsel__free_prev_raw_counts() 172 static void evsel__reset_prev_raw_counts(struct evsel *evsel) in evsel__reset_prev_raw_counts() 178 static int evsel__alloc_stats(struct evsel *evsel, bool alloc_raw) in evsel__alloc_stats() 193 struct evsel *evsel; in evlist__alloc_stats() local [all …]
|
D | perf_api_probe.c | 17 struct evsel *evsel; in perf_do_probe_api() local 81 static void perf_probe_sample_identifier(struct evsel *evsel) in perf_probe_sample_identifier() 86 static void perf_probe_comm_exec(struct evsel *evsel) in perf_probe_comm_exec() 91 static void perf_probe_context_switch(struct evsel *evsel) in perf_probe_context_switch() 96 static void perf_probe_text_poke(struct evsel *evsel) in perf_probe_text_poke() 101 static void perf_probe_build_id(struct evsel *evsel) in perf_probe_build_id() 106 static void perf_probe_cgroup(struct evsel *evsel) in perf_probe_cgroup()
|
D | evlist.h | 228 struct perf_evsel *evsel = perf_evlist__first(&evlist->core); in evlist__first() local 235 struct perf_evsel *evsel = perf_evlist__last(&evlist->core); in evlist__last() local 251 #define __evlist__for_each_entry(list, evsel) \ argument 259 #define evlist__for_each_entry(evlist, evsel) \ argument 267 #define __evlist__for_each_entry_continue(list, evsel) \ argument 275 #define evlist__for_each_entry_continue(evlist, evsel) \ argument 283 #define __evlist__for_each_entry_from(list, evsel) \ argument 291 #define evlist__for_each_entry_from(evlist, evsel) \ argument 299 #define __evlist__for_each_entry_reverse(list, evsel) \ argument 307 #define evlist__for_each_entry_reverse(evlist, evsel) \ argument [all …]
|
D | evlist.c | 127 struct evsel *evsel; in evlist__update_id_pos() local 177 void evlist__remove(struct evlist *evlist, struct evsel *evsel) in evlist__remove() 186 struct evsel *evsel, *temp, *leader = NULL; in evlist__splice_list_tail() local 212 struct evsel *evsel = evlist__find_tracepoint_by_name(evlist, assocs[i].name); in __evlist__set_tracepoints_handlers() local 234 struct evsel *evsel; in __evlist__add_default() local 252 struct evsel *evsel = evsel__new_idx(&attr, evlist->core.nr_entries); in evlist__add_dummy() local 263 struct evsel *evsel, *n; in evlist__add_attrs() local 301 struct evsel *evsel; in evlist__find_tracepoint_by_id() local 314 struct evsel *evsel; in evlist__find_tracepoint_by_name() local 327 struct evsel *evsel = evsel__newtp(sys, name); in evlist__add_newtp() local [all …]
|
D | bpf_counter_cgroup.c | 47 struct evsel *evsel; in bperf_load_program() local 179 static int bperf_cgrp__load(struct evsel *evsel, in bperf_cgrp__load() 222 static int bperf_cgrp__enable(struct evsel *evsel) in bperf_cgrp__enable() 233 static int bperf_cgrp__disable(struct evsel *evsel) in bperf_cgrp__disable() 244 static int bperf_cgrp__read(struct evsel *evsel) in bperf_cgrp__read() 289 static int bperf_cgrp__destroy(struct evsel *evsel) in bperf_cgrp__destroy()
|
D | evlist-hybrid.c | 21 struct evsel *evsel; in evlist__add_default_hybrid() local 63 struct evsel *evsel; in evlist__warn_hybrid_group() local 78 struct evsel *evsel; in evlist__has_hybrid() local 93 struct evsel *evsel, *tmp; in evlist__fix_hybrid_cpus() local
|
D | record.c | 26 static struct evsel *evsel__read_sampler(struct evsel *evsel, struct evlist *evlist) in evsel__read_sampler() 41 static u64 evsel__config_term_mask(struct evsel *evsel) in evsel__config_term_mask() 53 static void evsel__config_leader_sampling(struct evsel *evsel, struct evlist *evlist) in evsel__config_leader_sampling() 97 struct evsel *evsel; in evlist__config() local 231 struct evsel *evsel; in evlist__can_select_event() local
|
D | counts.c | 53 void evsel__reset_counts(struct evsel *evsel) in evsel__reset_counts() 58 int evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads) in evsel__alloc_counts() 64 void evsel__free_counts(struct evsel *evsel) in evsel__free_counts()
|
D | sideband_evlist.c | 18 struct evsel *evsel; in evlist__add_sb_event() local 65 struct evsel *evsel = evlist__event2evsel(evlist, event); in perf_evlist__poll_thread() local 86 struct evsel *evsel; in evlist__set_cb() local
|
/Linux-v5.15/tools/perf/tests/ |
D | parse-events.c | 51 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint() local 64 struct evsel *evsel; in test__checkevent_tracepoint_multi() local 82 struct evsel *evsel = evlist__first(evlist); in test__checkevent_raw() local 92 struct evsel *evsel = evlist__first(evlist); in test__checkevent_numeric() local 102 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_name() local 113 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_name_config() local 134 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_alias() local 145 struct evsel *evsel = evlist__first(evlist); in test__checkevent_genhw() local 155 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint() local 169 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_x() local [all …]
|
D | event-times.c | 19 struct evsel *evsel = evlist__last(evlist); in attach__enable_on_exec() local 61 struct evsel *evsel = evlist__last(evlist); in attach__current_disabled() local 87 struct evsel *evsel = evlist__last(evlist); in attach__current_enabled() local 107 struct evsel *evsel = evlist__last(evlist); in detach__disable() local 114 struct evsel *evsel = evlist__last(evlist); in attach__cpu_disabled() local 143 struct evsel *evsel = evlist__last(evlist); in attach__cpu_enabled() local 168 struct evsel *evsel; in test_times() local
|
D | hists_output.c | 53 struct evsel *evsel = hists_to_evsel(hists); in add_hist_entries() local 125 static int test1(struct evsel *evsel, struct machine *machine) in test1() 227 static int test2(struct evsel *evsel, struct machine *machine) in test2() 283 static int test3(struct evsel *evsel, struct machine *machine) in test3() 357 static int test4(struct evsel *evsel, struct machine *machine) in test4() 459 static int test5(struct evsel *evsel, struct machine *machine) in test5() 583 struct evsel *evsel; in test__hists_output() local
|
D | hists_cumulate.c | 83 struct evsel *evsel = hists_to_evsel(hists); in add_hist_entries() local 250 static int test1(struct evsel *evsel, struct machine *machine) in test1() 301 static int test2(struct evsel *evsel, struct machine *machine) in test2() 449 static int test3(struct evsel *evsel, struct machine *machine) in test3() 506 static int test4(struct evsel *evsel, struct machine *machine) in test4() 697 struct evsel *evsel; in test__hists_cumulate() local
|
/Linux-v5.15/tools/lib/perf/ |
D | evsel.c | 22 void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr, in perf_evsel__init() 33 struct perf_evsel *evsel = zalloc(sizeof(*evsel)); in perf_evsel__new() local 41 void perf_evsel__delete(struct perf_evsel *evsel) in perf_evsel__delete() 49 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd() 68 static int perf_evsel__alloc_mmap(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_mmap() 83 static int get_group_fd(struct perf_evsel *evsel, int cpu, int thread, int *group_fd) in get_group_fd() 109 int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, in perf_evsel__open() 168 static void perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu) in perf_evsel__close_fd_cpu() 182 void perf_evsel__close_fd(struct perf_evsel *evsel) in perf_evsel__close_fd() 190 void perf_evsel__free_fd(struct perf_evsel *evsel) in perf_evsel__free_fd() [all …]
|
D | evlist.c | 36 struct perf_evsel *evsel) in __perf_evlist__propagate_maps() 60 struct perf_evsel *evsel; in perf_evlist__propagate_maps() local 67 struct perf_evsel *evsel) in perf_evlist__add() 76 struct perf_evsel *evsel) in perf_evlist__remove() 176 struct perf_evsel *evsel; in perf_evlist__open() local 194 struct perf_evsel *evsel; in perf_evlist__close() local 202 struct perf_evsel *evsel; in perf_evlist__enable() local 210 struct perf_evsel *evsel; in perf_evlist__disable() local 226 struct perf_evsel *evsel, in perf_evlist__id_hash() 247 struct perf_evsel *evsel, in perf_evlist__id_add() [all …]
|
/Linux-v5.15/tools/perf/arch/x86/util/ |
D | kvm-stat.c | 31 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() 42 static bool mmio_event_begin(struct evsel *evsel, in mmio_event_begin() 59 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, in mmio_event_end() 93 static void ioport_event_get_key(struct evsel *evsel, in ioport_event_get_key() 101 static bool ioport_event_begin(struct evsel *evsel, in ioport_event_begin() 113 static bool ioport_event_end(struct evsel *evsel, in ioport_event_end() 137 static void msr_event_get_key(struct evsel *evsel, in msr_event_get_key() 145 static bool msr_event_begin(struct evsel *evsel, in msr_event_begin() 157 static bool msr_event_end(struct evsel *evsel, in msr_event_end()
|
/Linux-v5.15/tools/lib/perf/include/internal/ |
D | evlist.h | 63 #define __perf_evlist__for_each_entry(list, evsel) \ argument 71 #define perf_evlist__for_each_entry(evlist, evsel) \ argument 79 #define __perf_evlist__for_each_entry_reverse(list, evsel) \ argument 87 #define perf_evlist__for_each_entry_reverse(evlist, evsel) \ argument 96 #define __perf_evlist__for_each_entry_safe(list, tmp, evsel) \ argument 105 #define perf_evlist__for_each_entry_safe(evlist, tmp, evsel) \ argument
|
/Linux-v5.15/tools/perf/arch/s390/util/ |
D | kvm-stat.c | 27 static void event_icpt_insn_get_key(struct evsel *evsel, in event_icpt_insn_get_key() 38 static void event_sigp_get_key(struct evsel *evsel, in event_sigp_get_key() 46 static void event_diag_get_key(struct evsel *evsel, in event_diag_get_key() 54 static void event_icpt_prog_get_key(struct evsel *evsel, in event_icpt_prog_get_key()
|
/Linux-v5.15/tools/lib/perf/tests/ |
D | test-evsel.c | 20 struct perf_evsel *evsel; in test_stat_cpu() local 54 struct perf_evsel *evsel; in test_stat_thread() local 86 struct perf_evsel *evsel; in test_stat_thread_enable() local 128 struct perf_evsel *evsel; in test_stat_user_read() local
|
D | test-evlist.c | 34 struct perf_evsel *evsel, *leader; in test_stat_cpu() local 93 struct perf_evsel *evsel, *leader; in test_stat_thread() local 148 struct perf_evsel *evsel, *leader; in test_stat_thread_enable() local 212 struct perf_evsel *evsel; in test_mmap_thread() local 323 struct perf_evsel *evsel; in test_mmap_cpus() local
|
/Linux-v5.15/tools/perf/arch/arm64/util/ |
D | kvm-stat.c | 25 static void event_get_key(struct evsel *evsel, in event_get_key() 44 static bool event_begin(struct evsel *evsel, in event_begin() 51 static bool event_end(struct evsel *evsel, in event_end()
|
/Linux-v5.15/tools/perf/ |
D | builtin-annotate.c | 163 struct evsel *evsel = iter->evsel; in hist_iter__branch_callback() local 178 static int process_branch_callback(struct evsel *evsel, in process_branch_callback() 215 static int evsel__add_sample(struct evsel *evsel, struct perf_sample *sample, in evsel__add_sample() 262 struct evsel *evsel, in process_sample_event() 298 struct evsel *evsel, in hist_entry__tty_annotate() 308 struct evsel *evsel, in hists__find_annotations()
|