Home
last modified time | relevance | path

Searched defs:evsel (Results 1 – 25 of 242) sorted by relevance

12345678910

/kernel/linux/linux-5.10/tools/perf/util/
Devsel.h43 struct evsel { struct
44 struct perf_evsel core; argument
54 * Please check evsel__clone() to copy them properly so that argument
57 struct {
90 struct evsel **metric_events; argument
91 struct evsel *metric_leader; argument
97 struct perf_stat_evsel *stats; argument
114 struct evsel *leader; argument
123 * For reporting purposes, an evsel sample can have a callchain argument
129 __u64 synth_sample_type;
[all …]
Devsel.c80 int evsel__object_config(size_t object_size, int (*init)(struct evsel *evsel), in evsel__object_config()
81 void (*fini)(struct evsel *evsel)) in evsel__object_config()
180 void evsel__calc_id_pos(struct evsel *evsel) in evsel__calc_id_pos()
186 void __evsel__set_sample_bit(struct evsel *evsel, in __evsel__set_sample_bit()
196 void __evsel__reset_sample_bit(struct evsel *evsel, in __evsel__reset_sample_bit()
206 void evsel__set_sample_id(struct evsel *evsel, in evsel__set_sample_id()
226 bool evsel__is_function_event(struct evsel *evsel) in evsel__is_function_event()
236 void evsel__init(struct evsel *evsel, in evsel__init()
264 struct evsel *evsel = zalloc(perf_evsel__object.size); in evsel__new_idx() local
302 struct evsel *evsel; in evsel__new_cycles() local
[all …]
Dstat.c78 bool __perf_evsel_stat__is(struct evsel *evsel, in __perf_evsel_stat__is()
107 static void perf_stat_evsel_id_init(struct evsel *evsel) in perf_stat_evsel_id_init()
122 static void evsel__reset_stat_priv(struct evsel *evsel) in evsel__reset_stat_priv()
133 static int evsel__alloc_stat_priv(struct evsel *evsel) in evsel__alloc_stat_priv()
142 static void evsel__free_stat_priv(struct evsel *evsel) in evsel__free_stat_priv()
151 static int evsel__alloc_prev_raw_counts(struct evsel *evsel, int ncpus, int nthreads) in evsel__alloc_prev_raw_counts()
162 static void evsel__free_prev_raw_counts(struct evsel *evsel) in evsel__free_prev_raw_counts()
168 static void evsel__reset_prev_raw_counts(struct evsel *evsel) in evsel__reset_prev_raw_counts()
174 static int evsel__alloc_stats(struct evsel *evsel, bool alloc_raw) in evsel__alloc_stats()
189 struct evsel *evsel; in perf_evlist__alloc_stats() local
[all …]
Devlist.c122 struct evsel *evsel; in perf_evlist__update_id_pos() local
174 void evlist__remove(struct evlist *evlist, struct evsel *evsel) in evlist__remove()
183 struct evsel *evsel, *temp; in perf_evlist__splice_list_tail() local
194 struct evsel *evsel; in __evlist__set_tracepoints_handlers() local
217 struct evsel *evsel, *leader; in __perf_evlist__set_leader() local
239 struct evsel *evsel = evsel__new_cycles(precise); in __evlist__add_default() local
255 struct evsel *evsel = evsel__new_idx(&attr, evlist->core.nr_entries); in evlist__add_dummy() local
266 struct evsel *evsel, *n; in evlist__add_attrs() local
300 struct evsel *evsel; in perf_evlist__find_tracepoint_by_id() local
315 struct evsel *evsel; in perf_evlist__find_tracepoint_by_name() local
[all …]
Devlist.h257 struct perf_evsel *evsel = perf_evlist__first(&evlist->core); in evlist__first() local
264 struct perf_evsel *evsel = perf_evlist__last(&evlist->core); in evlist__last() local
281 #define __evlist__for_each_entry(list, evsel) \ argument
289 #define evlist__for_each_entry(evlist, evsel) \ argument
297 #define __evlist__for_each_entry_continue(list, evsel) \ argument
305 #define evlist__for_each_entry_continue(evlist, evsel) \ argument
313 #define __evlist__for_each_entry_reverse(list, evsel) \ argument
321 #define evlist__for_each_entry_reverse(evlist, evsel) \ argument
330 #define __evlist__for_each_entry_safe(list, tmp, evsel) \ argument
339 #define evlist__for_each_entry_safe(evlist, tmp, evsel) \ argument
/kernel/linux/linux-6.6/tools/perf/util/
Devsel.h59 struct evsel { struct
60 struct perf_evsel core; argument
69 * Please check evsel__clone() to copy them properly so that argument
72 struct {
110 struct evsel **metric_events; argument
111 struct evsel *metric_leader; argument
117 struct perf_stat_evsel *stats; argument
138 evsel__sb_cb_t *cb; argument
142 * For reporting purposes, an evsel sample can have a callchain argument
148 __u64 synth_sample_type;
[all …]
Devsel.c117 int evsel__object_config(size_t object_size, int (*init)(struct evsel *evsel), in evsel__object_config()
118 void (*fini)(struct evsel *evsel)) in evsel__object_config()
217 void evsel__calc_id_pos(struct evsel *evsel) in evsel__calc_id_pos()
223 void __evsel__set_sample_bit(struct evsel *evsel, in __evsel__set_sample_bit()
233 void __evsel__reset_sample_bit(struct evsel *evsel, in __evsel__reset_sample_bit()
243 void evsel__set_sample_id(struct evsel *evsel, in evsel__set_sample_id()
263 bool evsel__is_function_event(struct evsel *evsel) in evsel__is_function_event()
273 void evsel__init(struct evsel *evsel, in evsel__init()
301 struct evsel *evsel = zalloc(perf_evsel__object.size); in evsel__new_idx() local
358 struct evsel *evsel; in evsel__clone() local
[all …]
Dstat.c80 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 …]
Dbpf_counter.c48 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()
273 static int bpf_program_profiler__install_pe(struct evsel *evsel, int cpu_map_idx, in bpf_program_profiler__install_pe()
362 static int bperf_check_target(struct evsel *evsel, in bperf_check_target()
395 static int bperf_reload_leader_program(struct evsel *evsel, int attr_map_fd, in bperf_reload_leader_program()
444 static int bperf__load(struct evsel *evsel, struct target *target) in bperf__load()
[all …]
Dstat-shadow.c55 static int evsel_context(const struct evsel *evsel) in evsel_context()
79 static enum stat_type evsel__stat_type(const struct evsel *evsel) in evsel__stat_type()
153 static double find_stat(const struct evsel *evsel, int aggr_idx, enum stat_type type) in find_stat()
196 const struct evsel *evsel, int aggr_idx, in print_ratio()
213 const struct evsel *evsel, in print_stalled_cycles_front()
224 const struct evsel *evsel, in print_stalled_cycles_back()
235 const struct evsel *evsel, in print_branch_miss()
246 const struct evsel *evsel, in print_l1d_miss()
257 const struct evsel *evsel, in print_l1i_miss()
268 const struct evsel *evsel, in print_ll_miss()
[all …]
Dperf_api_probe.c17 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()
Devlist.h240 struct perf_evsel *evsel = perf_evlist__first(&evlist->core); in evlist__first() local
247 struct perf_evsel *evsel = perf_evlist__last(&evlist->core); in evlist__last() local
268 #define __evlist__for_each_entry(list, evsel) \ argument
276 #define evlist__for_each_entry(evlist, evsel) \ argument
284 #define __evlist__for_each_entry_continue(list, evsel) \ argument
292 #define evlist__for_each_entry_continue(evlist, evsel) \ argument
300 #define __evlist__for_each_entry_from(list, evsel) \ argument
308 #define evlist__for_each_entry_from(evlist, evsel) \ argument
316 #define __evlist__for_each_entry_reverse(list, evsel) \ argument
324 #define evlist__for_each_entry_reverse(evlist, evsel) \ argument
[all …]
Dbpf_counter_cgroup.c47 struct evsel *evsel; in bperf_load_program() local
170 static int bperf_cgrp__load(struct evsel *evsel, in bperf_cgrp__load()
211 static int bperf_cgrp__enable(struct evsel *evsel) in bperf_cgrp__enable()
222 static int bperf_cgrp__disable(struct evsel *evsel) in bperf_cgrp__disable()
233 static int bperf_cgrp__read(struct evsel *evsel) in bperf_cgrp__read()
277 static int bperf_cgrp__destroy(struct evsel *evsel) in bperf_cgrp__destroy()
/kernel/linux/linux-5.10/tools/perf/tests/
Dparse-events.c49 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint() local
62 struct evsel *evsel; in test__checkevent_tracepoint_multi() local
80 struct evsel *evsel = evlist__first(evlist); in test__checkevent_raw() local
90 struct evsel *evsel = evlist__first(evlist); in test__checkevent_numeric() local
100 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_name() local
111 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_name_config() local
132 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_alias() local
143 struct evsel *evsel = evlist__first(evlist); in test__checkevent_genhw() local
153 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint() local
167 struct evsel *evsel = evlist__first(evlist); in test__checkevent_breakpoint_x() local
[all …]
Devent-times.c19 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
/kernel/linux/linux-6.6/tools/perf/tests/
Dparse-events.c37 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()
87 struct evsel *evsel = evlist__first(evlist); in test__checkevent_tracepoint() local
100 struct evsel *evsel; in test__checkevent_tracepoint_multi() local
119 struct perf_evsel *evsel; in test__checkevent_raw() local
157 struct evsel *evsel = evlist__first(evlist); in test__checkevent_numeric() local
167 struct perf_evsel *evsel; in test__checkevent_symbolic_name() local
181 struct perf_evsel *evsel; in test__checkevent_symbolic_name_config() local
201 struct evsel *evsel = evlist__first(evlist); in test__checkevent_symbolic_alias() local
211 struct perf_evsel *evsel; in test__checkevent_genhw() local
[all …]
Devent-times.c19 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
/kernel/linux/linux-5.10/tools/lib/perf/
Devsel.c19 void perf_evsel__init(struct perf_evsel *evsel, struct perf_event_attr *attr) in perf_evsel__init()
27 struct perf_evsel *evsel = zalloc(sizeof(*evsel)); in perf_evsel__new() local
35 void perf_evsel__delete(struct perf_evsel *evsel) in perf_evsel__delete()
42 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd()
66 int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, in perf_evsel__open()
117 static void perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu) in perf_evsel__close_fd_cpu()
128 void perf_evsel__close_fd(struct perf_evsel *evsel) in perf_evsel__close_fd()
136 void perf_evsel__free_fd(struct perf_evsel *evsel) in perf_evsel__free_fd()
142 void perf_evsel__close(struct perf_evsel *evsel) in perf_evsel__close()
151 void perf_evsel__close_cpu(struct perf_evsel *evsel, int cpu) in perf_evsel__close_cpu()
[all …]
Devlist.c39 struct perf_evsel *evsel) in __perf_evlist__propagate_maps()
63 struct perf_evsel *evsel; in perf_evlist__propagate_maps() local
70 struct perf_evsel *evsel) in perf_evlist__add()
78 struct perf_evsel *evsel) in perf_evlist__remove()
178 struct perf_evsel *evsel; in perf_evlist__open() local
196 struct perf_evsel *evsel; in perf_evlist__close() local
204 struct perf_evsel *evsel; in perf_evlist__enable() local
212 struct perf_evsel *evsel; in perf_evlist__disable() local
228 struct perf_evsel *evsel, in perf_evlist__id_hash()
241 struct perf_evsel *evsel, in perf_evlist__id_add()
[all …]
/kernel/linux/linux-6.6/tools/lib/perf/
Devsel.c22 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()
52 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_fd()
72 static int perf_evsel__alloc_mmap(struct perf_evsel *evsel, int ncpus, int nthreads) in perf_evsel__alloc_mmap()
87 static int get_group_fd(struct perf_evsel *evsel, int cpu_map_idx, int thread, int *group_fd) in get_group_fd()
113 int perf_evsel__open(struct perf_evsel *evsel, struct perf_cpu_map *cpus, in perf_evsel__open()
180 static void perf_evsel__close_fd_cpu(struct perf_evsel *evsel, int cpu_map_idx) in perf_evsel__close_fd_cpu()
194 void perf_evsel__close_fd(struct perf_evsel *evsel) in perf_evsel__close_fd()
200 void perf_evsel__free_fd(struct perf_evsel *evsel) in perf_evsel__free_fd()
[all …]
Devlist.c37 struct perf_evsel *evsel) in __perf_evlist__propagate_maps()
83 struct perf_evsel *evsel; in perf_evlist__propagate_maps() local
92 struct perf_evsel *evsel) in perf_evlist__add()
103 struct perf_evsel *evsel) in perf_evlist__remove()
200 struct perf_evsel *evsel; in perf_evlist__open() local
218 struct perf_evsel *evsel; in perf_evlist__close() local
226 struct perf_evsel *evsel; in perf_evlist__enable() local
234 struct perf_evsel *evsel; in perf_evlist__disable() local
250 struct perf_evsel *evsel, in perf_evlist__id_hash()
271 struct perf_evsel *evsel, in perf_evlist__id_add()
[all …]
/kernel/linux/linux-6.6/tools/perf/arch/x86/tests/
Dhybrid.c10 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 …]
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/
Dkvm-stat.c30 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key()
41 static bool mmio_event_begin(struct evsel *evsel, in mmio_event_begin()
58 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, in mmio_event_end()
92 static void ioport_event_get_key(struct evsel *evsel, in ioport_event_get_key()
100 static bool ioport_event_begin(struct evsel *evsel, in ioport_event_begin()
112 static bool ioport_event_end(struct evsel *evsel, in ioport_event_end()
136 static void msr_event_get_key(struct evsel *evsel, in msr_event_get_key()
144 static bool msr_event_begin(struct evsel *evsel, in msr_event_begin()
156 static bool msr_event_end(struct evsel *evsel, in msr_event_end()
Devsel.c16 void arch_evsel__set_sample_weight(struct evsel *evsel) in arch_evsel__set_sample_weight()
22 bool evsel__sys_has_perf_metrics(const struct evsel *evsel) in evsel__sys_has_perf_metrics()
41 bool arch_evsel__must_be_in_group(const struct evsel *evsel) in arch_evsel__must_be_in_group()
50 int arch_evsel__hw_name(struct evsel *evsel, char *bf, size_t size) in arch_evsel__hw_name()
77 void arch__post_evsel_config(struct evsel *evsel, struct perf_event_attr *attr) in arch__post_evsel_config()
105 int arch_evsel__open_strerror(struct evsel *evsel, char *msg, size_t size) in arch_evsel__open_strerror()
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/
Dkvm-stat.c31 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()

12345678910