/linux-master/tools/perf/ui/gtk/ |
H A D | annotate.c | 6 #include "util/evsel.h" 103 struct evsel *evsel, 141 if (evsel__is_group_event(evsel)) { 142 for (i = 0; i < evsel->core.nr_members; i++) { 146 evsel->core.idx + i); 151 evsel->core.idx); 172 static int symbol__gtk_annotate(struct map_symbol *ms, struct evsel *evsel, argument 186 err = symbol__annotate(ms, evsel, NUL 102 perf_gtk__annotate_symbol(GtkWidget *window, struct map_symbol *ms, struct evsel *evsel, struct hist_browser_timer *hbt __maybe_unused) argument 252 hist_entry__gtk_annotate(struct hist_entry *he, struct evsel *evsel, struct hist_browser_timer *hbt) argument [all...] |
H A D | gtk.h | 55 struct evsel; 63 struct evsel *evsel,
|
/linux-master/tools/perf/arch/x86/util/ |
H A D | iostat.c | 309 struct evsel *evsel = NULL; local 325 evlist__for_each_entry(evl, evsel) { 326 evsel->priv = list->rps[evsel->core.idx / metrics_count]; 375 struct evsel *evsel; local 378 evlist__for_each_entry(evlist, evsel) { 379 if (rp != evsel->priv) { 380 rp = evsel 388 struct evsel *evsel; local 427 iostat_print_metric(struct perf_stat_config *config, struct evsel *evsel, struct perf_stat_output_ctx *out) argument [all...] |
H A D | intel-pt.c | 20 #include "../../../util/evsel.h" 115 struct evsel *evsel; local 124 evlist__for_each_entry(evlist, evsel) { 125 if (evsel->core.attr.type == intel_pt_pmu->type) { 126 *res = intel_pt_masked_bits(mask, evsel->core.attr.config); 275 struct evsel *evsel; local 277 evlist__for_each_entry(evlist, evsel) { 278 if (evsel 411 struct evsel *evsel; local 517 intel_pt_validate_config(struct perf_pmu *intel_pt_pmu, struct evsel *evsel) argument 564 struct evsel *evsel; local 584 struct evsel *evsel; local 606 struct evsel *evsel, *intel_pt_evsel = NULL; local 885 struct evsel *evsel; local 898 struct evsel *evsel; local [all...] |
H A D | intel-bts.c | 16 #include "../../../util/evsel.h" 112 struct evsel *evsel, *intel_bts_evsel = NULL; local 124 evlist__for_each_entry(evlist, evsel) { 125 if (evsel->core.attr.type == intel_bts_pmu->type) { 130 evsel->core.attr.freq = 0; 131 evsel->core.attr.sample_period = 1; 132 evsel->needs_auxtrace_mmap = true; 133 intel_bts_evsel = evsel; 233 struct evsel *tracking_evse 326 struct evsel *evsel; local 339 struct evsel *evsel; local [all...] |
/linux-master/tools/perf/util/ |
H A D | s390-sample-raw.c | 242 static void s390_pai_all_dump(struct evsel *evsel, struct perf_sample *sample) argument 261 ev_name = get_counter_name(evsel->core.attr.config, 262 pai_data.event_nr, evsel->pmu); 290 struct evsel *evsel; local 295 evsel = evlist__event2evsel(evlist, event); 296 if (!evsel) 304 if (evsel->core.attr.config == PERF_EVENT_CPUM_CF_DIAG) { 305 if (!evsel [all...] |
H A D | parse-events.c | 12 #include "evsel.h" 226 static struct evsel * 234 struct evsel *evsel; local 254 evsel = evsel__new_idx(attr, *idx); 255 if (!evsel) { 261 evsel->core.cpus = cpus; 262 evsel->core.own_cpus = perf_cpu_map__get(cpus); 263 evsel->core.requires_cpu = pmu ? pmu->is_uncore : false; 264 evsel 305 struct evsel *evsel; local 528 struct evsel *evsel = evsel__newtp_idx(sys_name, evt_name, (*idx)++); local 1396 struct evsel *evsel; local 1671 get_event_modifier(struct event_modifier *mod, char *str, struct evsel *evsel) argument 1795 struct evsel *evsel; local 1835 struct evsel *evsel; local 1898 evsel__compute_group_pmu_name(struct evsel *evsel, const struct list_head *head) argument 2375 foreach_evsel_in_last_glob(struct evlist *evlist, int (*func)(struct evsel *evsel, const void *arg), const void *arg) argument 2407 set_filter(struct evsel *evsel, const void *arg) argument 2461 add_exclude_perf_filter(struct evsel *evsel, const void *arg __maybe_unused) argument [all...] |
H A D | hist.h | 7 #include "evsel.h" 136 struct evsel *evsel; member in struct:hist_entry_iter 193 void evsel__output_resort_cb(struct evsel *evsel, struct ui_progress *prog, 195 void evsel__output_resort(struct evsel *evsel, struct ui_progress *prog); 242 struct evsel evsel; member in struct:hists_evsel 246 static inline struct evsel *hists_to_evse 252 evsel__hists(struct evsel *evsel) argument [all...] |
H A D | iostat.c | 35 struct evsel *evsel __maybe_unused,
|
H A D | tool.h | 12 struct evsel; 20 struct evsel *evsel, struct machine *machine);
|
H A D | cgroup.c | 3 #include "evsel.h" 103 struct evsel *counter; 155 struct evsel *counter; 201 static void evsel__set_default_cgroup(struct evsel *evsel, struct cgroup *cgroup) argument 203 if (evsel->cgrp == NULL) 204 evsel->cgrp = cgroup__get(cgroup); 209 struct evsel *evsel; local 211 evlist__for_each_entry(evlist, evsel) 420 struct evsel *pos, *evsel, *leader; local [all...] |
H A D | python.c | 14 #include "evsel.h" 96 struct perf_pmu *evsel__find_pmu(const struct evsel *evsel __maybe_unused) 111 bool evsel__is_aux_event(const struct evsel *evsel __maybe_unused) 140 * XXX: All these evsel destructors need some better mechanism, like a linked 148 void bpf_counter__destroy(struct evsel *evsel); 149 int bpf_counter__install_pe(struct evsel *evsel, in 226 struct evsel *evsel; member in struct:pyrf_event 519 struct evsel *evsel = pevent->evsel; local 813 struct evsel evsel; member in struct:pyrf_evsel 934 struct evsel *evsel = &pevsel->evsel; local 1105 struct evsel *evsel; local 1157 struct evsel *evsel; local [all...] |
/linux-master/tools/perf/arch/x86/tests/ |
H A D | sample-parsing.c | 11 #include "evsel.h" 40 struct evsel evsel = { local 90 evsel.sample_size = __evsel__sample_size(sample_type); 92 err = evsel__parse_sample(&evsel, event, &sample_out);
|
/linux-master/tools/lib/perf/include/perf/ |
H A D | evlist.h | 14 struct perf_evsel *evsel); 16 struct perf_evsel *evsel); 20 struct perf_evsel *evsel);
|
/linux-master/tools/perf/ |
H A D | builtin-annotate.c | 21 #include "util/evsel.h" 177 struct evsel *evsel = iter->evsel; local 181 err = addr_map_symbol__inc_samples(&bi->from, sample, evsel); 186 err = addr_map_symbol__inc_samples(&bi->to, sample, evsel); 192 static int process_branch_callback(struct evsel *evsel, argument 199 .evsel = evsel, 235 evsel__add_sample(struct evsel *evsel, struct perf_sample *sample, struct addr_location *al, struct perf_annotate *ann, struct machine *machine) argument 280 process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument 320 hist_entry__tty_annotate(struct hist_entry *he, struct evsel *evsel, struct perf_annotate *ann) argument 330 print_annotated_data_header(struct hist_entry *he, struct evsel *evsel) argument 360 print_annotated_data_type(struct annotated_data_type *mem_type, struct annotated_member *member, struct evsel *evsel, int indent) argument 474 hists__find_annotations(struct hists *hists, struct evsel *evsel, struct perf_annotate *ann) argument [all...] |
H A D | builtin-script.c | 20 #include "util/evsel.h" 339 static inline struct evsel_script *evsel_script(struct evsel *evsel) argument 341 return (struct evsel_script *)evsel->priv; 344 static struct evsel_script *evsel_script__new(struct evsel *evsel, struct perf_data *data) argument 349 if (asprintf(&es->filename, "%s.%s.dump", data->file.path, evsel__name(evsel)) < 0) 420 static int evsel__do_check_stype(struct evsel *evsel, u64 sample_type, const char *sample_msg, argument 423 struct perf_event_attr *attr = &evsel 450 evsel__check_stype(struct evsel *evsel, u64 sample_type, const char *sample_msg, enum perf_output_field field) argument 456 evsel__check_attr(struct evsel *evsel, struct perf_session *session) argument 595 struct evsel *evsel; local 614 struct evsel *evsel; local 776 perf_sample__fprintf_start(struct perf_script *script, struct perf_sample *sample, struct thread *thread, struct evsel *evsel, u32 type, FILE *fp) argument 1423 resolve_branch_sym(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, u64 *ip) argument 1453 perf_sample__fprintf_callindent(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, FILE *fp) argument 1556 perf_sample__fprintf_bts(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, struct machine *machine, FILE *fp) argument 1976 perf_sample__fprintf_synth(struct perf_sample *sample, struct evsel *evsel, FILE *fp) argument 2007 struct evsel *evsel; local 2039 struct evsel *evsel; member in struct:metric_ctx 2072 perf_sample__fprint_metric(struct perf_script *script, struct thread *thread, struct evsel *evsel, struct perf_sample *sample, FILE *fp) argument 2111 show_event(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al) argument 2153 process_event(struct perf_script *script, struct perf_sample *sample, struct evsel *evsel, struct addr_location *al, struct addr_location *addr_al, struct machine *machine) argument 2364 process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument 2456 struct evsel *evsel, *pos; local 2525 struct evsel *evsel = evlist__id2evsel(session->evlist, sample->id); local 2740 struct evsel *evsel; local 2752 struct evsel *evsel; local 2779 struct evsel *evsel; local 2794 struct evsel *evsel; local [all...] |
H A D | builtin-timechart.c | 18 #include "util/evsel.h" 570 struct evsel *evsel, 577 struct evsel *evsel, 582 if (evsel->core.attr.sample_type & PERF_SAMPLE_TIME) { 589 if (evsel->handler != NULL) { 590 tracepoint_handler f = evsel->handler; 591 return f(tchart, evsel, sample, 600 struct evsel *evse 574 process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument 599 process_sample_cpu_idle(struct timechart *tchart __maybe_unused, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 615 process_sample_cpu_frequency(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 628 process_sample_sched_wakeup(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace) argument 642 process_sample_sched_switch(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace) argument 658 process_sample_power_start(struct timechart *tchart __maybe_unused, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 681 process_sample_power_frequency(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument 851 process_enter_read(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 861 process_exit_read(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 871 process_enter_write(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 881 process_exit_write(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 891 process_enter_sync(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 901 process_exit_sync(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 911 process_enter_tx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 921 process_exit_tx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 931 process_enter_rx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 941 process_exit_rx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 951 process_enter_poll(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument 961 process_exit_poll(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument [all...] |
/linux-master/tools/perf/tests/ |
H A D | hists_output.c | 8 #include "util/evsel.h" 53 struct evsel *evsel = hists_to_evsel(hists); local 60 .evsel = evsel, 129 typedef int (*test_fn_t)(struct evsel *, struct machine *); 138 static int test1(struct evsel *evsel, struct machine *machine) argument 141 struct hists *hists = evsel__hists(evsel); 171 evsel__output_resort(evsel, NUL 240 test2(struct evsel *evsel, struct machine *machine) argument 296 test3(struct evsel *evsel, struct machine *machine) argument 370 test4(struct evsel *evsel, struct machine *machine) argument 472 test5(struct evsel *evsel, struct machine *machine) argument 596 struct evsel *evsel; local [all...] |
H A D | sw-clock.c | 12 #include "util/evsel.h" 36 struct evsel *evsel; local 58 evsel = evsel__new(&attr); 59 if (evsel == NULL) { 63 evlist__add(evlist, evsel);
|
H A D | hists_filter.c | 6 #include "util/evsel.h" 52 struct evsel *evsel; local 59 * each evsel will have 10 samples but the 4th sample 63 evlist__for_each_entry(evlist, evsel) { 66 .evsel = evsel, 71 struct hists *hists = evsel__hists(evsel); 121 struct evsel *evsel; local [all...] |
H A D | parse-metric.c | 35 struct evsel *evsel; local 39 evlist__for_each_entry(evlist, evsel) { 40 count = find_value(evsel->name, vals); 41 evsel->supported = true; 42 evsel->stats->aggr->counts.val = count; 43 if (evsel__name_is(evsel, "duration_time")) 53 struct evsel *evsel; local 55 evlist__for_each_entry(evlist, evsel) { [all...] |
H A D | perf-time-to-tsc.c | 17 #include "evsel.h" 82 struct evsel *evsel = NULL; local 109 evlist__for_each_entry(evlist, evsel) { 110 evsel->core.attr.comm = 1; 111 evsel->core.attr.disabled = 1; 112 evsel->core.attr.enable_on_exec = 0; 162 CHECK_NOT_NULL__(evsel = evlist__event2evsel(evlist, event)); 163 CHECK__(evsel__parse_sample(evsel, event, &sample)); 167 CHECK_NOT_NULL__(evsel [all...] |
/linux-master/tools/lib/perf/Documentation/examples/ |
H A D | sampling.c | 3 #include <perf/evsel.h> 26 struct perf_evsel *evsel; local 54 evsel = perf_evsel__new(&attr); 55 if (!evsel) { 60 perf_evlist__add(evlist, evsel);
|
/linux-master/tools/perf/ui/browsers/ |
H A D | scripts.c | 86 struct evsel *evsel) 107 if (evsel) 108 attr_to_script(scriptc.extra_format, &evsel->core.attr); 173 int script_browse(const char *script_opt, struct evsel *evsel) argument 179 if (list_scripts(script_name, &custom, evsel)) 85 list_scripts(char *script_name, bool *custom, struct evsel *evsel) argument
|
/linux-master/tools/perf/arch/arm/util/ |
H A D | cs-etm.c | 25 #include "../../../util/evsel.h" 73 struct evsel *evsel, int cpu) 81 u64 contextid = evsel->core.attr.config & 144 struct evsel *evsel, int cpu) 153 if (!(evsel->core.attr.config & 198 struct evsel *evsel) 201 struct perf_cpu_map *event_cpus = evsel 72 cs_etm_validate_context_id(struct auxtrace_record *itr, struct evsel *evsel, int cpu) argument 143 cs_etm_validate_timestamp(struct auxtrace_record *itr, struct evsel *evsel, int cpu) argument 197 cs_etm_validate_config(struct auxtrace_record *itr, struct evsel *evsel) argument 257 cs_etm_set_sink_attr(struct perf_pmu *pmu, struct evsel *evsel) argument 308 struct evsel *evsel, *cs_etm_evsel = NULL; local 479 struct evsel *evsel; local 861 struct evsel *evsel; local 874 struct evsel *evsel; local [all...] |