| /tools/perf/util/ |
| D | tool.c | 81 static int process_event_synth_attr_stub(const struct perf_tool *tool __maybe_unused, in process_event_synth_attr_stub() 90 static int process_event_synth_event_update_stub(const struct perf_tool *tool __maybe_unused, in process_event_synth_event_update_stub() 102 int process_event_sample_stub(const struct perf_tool *tool __maybe_unused, in process_event_sample_stub() 112 static int process_event_stub(const struct perf_tool *tool __maybe_unused, in process_event_stub() 121 static int process_finished_round_stub(const struct perf_tool *tool __maybe_unused, in process_finished_round_stub() 233 void perf_tool__init(struct perf_tool *tool, bool ordered_events) in perf_tool__init() argument 235 tool->ordered_events = ordered_events; in perf_tool__init() 236 tool->ordering_requires_timestamps = false; in perf_tool__init() 237 tool->namespace_events = false; in perf_tool__init() 238 tool->cgroup_events = false; in perf_tool__init() [all …]
|
| D | synthetic-events.h | 44 typedef int (*perf_event__handler_t)(const struct perf_tool *tool, union perf_event *event, 47 int perf_event__synthesize_attrs(const struct perf_tool *tool, struct evlist *evlist, perf_event__h… 48 int perf_event__synthesize_attr(const struct perf_tool *tool, struct perf_event_attr *attr, u32 ids… 49 int perf_event__synthesize_build_id(const struct perf_tool *tool, 57 int perf_event__synthesize_mmap2_build_id(const struct perf_tool *tool, 68 int perf_event__synthesize_cpu_map(const struct perf_tool *tool, const struct perf_cpu_map *cpus, p… 69 int perf_event__synthesize_event_update_cpus(const struct perf_tool *tool, struct evsel *evsel, per… 70 int perf_event__synthesize_event_update_name(const struct perf_tool *tool, struct evsel *evsel, per… 71 int perf_event__synthesize_event_update_scale(const struct perf_tool *tool, struct evsel *evsel, pe… 72 int perf_event__synthesize_event_update_unit(const struct perf_tool *tool, struct evsel *evsel, per… [all …]
|
| D | data-convert-json.c | 35 struct perf_tool tool; member 121 static void output_sample_callchain_entry(const struct perf_tool *tool, in output_sample_callchain_entry() argument 124 struct convert_json *c = container_of(tool, struct convert_json, tool); in output_sample_callchain_entry() 149 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument 155 struct convert_json *c = container_of(tool, struct convert_json, tool); in process_sample_event() 223 output_sample_callchain_entry(tool, ip, ok ? &tal : NULL); in process_sample_event() 227 output_sample_callchain_entry(tool, sample->ip, &al); in process_sample_event() 329 perf_tool__init(&c.tool, /*ordered_events=*/true); in bt_convert__perf2json() 330 c.tool.sample = process_sample_event; in bt_convert__perf2json() 331 c.tool.mmap = perf_event__process_mmap; in bt_convert__perf2json() [all …]
|
| D | tool.h | 18 typedef int (*event_sample)(const struct perf_tool *tool, union perf_event *event, 22 typedef int (*event_op)(const struct perf_tool *tool, union perf_event *event, 25 typedef int (*event_attr_op)(const struct perf_tool *tool, 34 typedef int (*event_oe)(const struct perf_tool *tool, union perf_event *event, 92 void perf_tool__init(struct perf_tool *tool, bool ordered_events); 94 bool perf_tool__compressed_is_stub(const struct perf_tool *tool); 96 int process_event_sample_stub(const struct perf_tool *tool,
|
| D | event.h | 270 int perf_event__process_comm(const struct perf_tool *tool, 274 int perf_event__process_lost(const struct perf_tool *tool, 278 int perf_event__process_lost_samples(const struct perf_tool *tool, 282 int perf_event__process_aux(const struct perf_tool *tool, 286 int perf_event__process_itrace_start(const struct perf_tool *tool, 290 int perf_event__process_aux_output_hw_id(const struct perf_tool *tool, 294 int perf_event__process_switch(const struct perf_tool *tool, 298 int perf_event__process_namespaces(const struct perf_tool *tool, 302 int perf_event__process_cgroup(const struct perf_tool *tool, 306 int perf_event__process_mmap(const struct perf_tool *tool, [all …]
|
| D | synthetic-events.c | 50 int perf_tool__process_synth_event(const struct perf_tool *tool, in perf_tool__process_synth_event() argument 65 return process(tool, event, &synth_sample, machine); in perf_tool__process_synth_event() 190 pid_t perf_event__synthesize_comm(const struct perf_tool *tool, in perf_event__synthesize_comm() argument 202 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_comm() 221 int perf_event__synthesize_namespaces(const struct perf_tool *tool, in perf_event__synthesize_namespaces() argument 230 if (!tool || !tool->namespace_events) in perf_event__synthesize_namespaces() 254 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_namespaces() 260 static int perf_event__synthesize_fork(const struct perf_tool *tool, in perf_event__synthesize_fork() argument 287 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_fork() 421 int perf_event__synthesize_mmap_events(const struct perf_tool *tool, in perf_event__synthesize_mmap_events() argument [all …]
|
| D | session.c | 44 const struct perf_tool *tool, 133 session->tool, event->file_offset, in ordered_events__deliver_event() 138 struct perf_tool *tool, in __perf_session__new() argument 148 session->tool = tool; in __perf_session__new() 211 if ((!data || !data->is_pipe) && tool && tool->ordering_requires_timestamps && in __perf_session__new() 212 tool->ordered_events && !evlist__sample_id_all(session->evlist)) { in __perf_session__new() 214 tool->ordered_events = false; in __perf_session__new() 774 int perf_event__process_finished_round(const struct perf_tool *tool __maybe_unused, in perf_event__process_finished_round() 1170 const struct perf_tool *tool, in deliver_sample_value() argument 1198 return tool->sample(tool, event, sample, evsel, machine); in deliver_sample_value() [all …]
|
| D | session.h | 79 const struct perf_tool *tool; member 109 struct perf_tool *tool, 113 struct perf_tool *tool) in perf_session__new() argument 115 return __perf_session__new(data, tool, /*trace_event_repipe=*/false); in perf_session__new() 206 int perf_event__process_finished_round(const struct perf_tool *tool,
|
| D | intel-tpebs.c | 121 static int process_sample_event(const struct perf_tool *tool __maybe_unused, in process_sample_event() 167 struct perf_tool tool; in __sample_reader() local 169 perf_tool__init(&tool, /*ordered_events=*/false); in __sample_reader() 170 tool.sample = process_sample_event; in __sample_reader() 171 tool.feature = process_feature_event; in __sample_reader() 172 tool.attr = perf_event__process_attr; in __sample_reader() 174 session = perf_session__new(&data, &tool); in __sample_reader()
|
| D | event.c | 219 int perf_event__process_comm(const struct perf_tool *tool __maybe_unused, in perf_event__process_comm() 227 int perf_event__process_namespaces(const struct perf_tool *tool __maybe_unused, in perf_event__process_namespaces() 235 int perf_event__process_cgroup(const struct perf_tool *tool __maybe_unused, in perf_event__process_cgroup() 243 int perf_event__process_lost(const struct perf_tool *tool __maybe_unused, in perf_event__process_lost() 251 int perf_event__process_aux(const struct perf_tool *tool __maybe_unused, in perf_event__process_aux() 259 int perf_event__process_itrace_start(const struct perf_tool *tool __maybe_unused, in perf_event__process_itrace_start() 267 int perf_event__process_aux_output_hw_id(const struct perf_tool *tool __maybe_unused, in perf_event__process_aux_output_hw_id() 275 int perf_event__process_lost_samples(const struct perf_tool *tool __maybe_unused, in perf_event__process_lost_samples() 283 int perf_event__process_switch(const struct perf_tool *tool __maybe_unused, in perf_event__process_switch() 291 int perf_event__process_ksymbol(const struct perf_tool *tool __maybe_unused, in perf_event__process_ksymbol() [all …]
|
| D | data-convert-bt.c | 91 struct perf_tool tool; member 795 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument 801 struct convert *c = container_of(tool, struct convert, tool); in process_sample_event() 874 static int process_##_name##_event(const struct perf_tool *tool, \ 879 struct convert *c = container_of(tool, struct convert, tool);\ 906 return perf_event__process_##_name(tool, _event, sample, machine);\ 1614 perf_tool__init(&c.tool, /*ordered_events=*/true); in bt_convert__perf2ctf() 1615 c.tool.sample = process_sample_event; in bt_convert__perf2ctf() 1616 c.tool.mmap = perf_event__process_mmap; in bt_convert__perf2ctf() 1617 c.tool.mmap2 = perf_event__process_mmap2; in bt_convert__perf2ctf() [all …]
|
| /tools/perf/ |
| D | builtin-inject.c | 81 struct perf_tool tool; member 115 struct perf_tool tool; member 144 static int tool__inject_build_id(const struct perf_tool *tool, 151 static int tool__inject_mmap2_build_id(const struct perf_tool *tool, 174 static int perf_event__repipe_synth(const struct perf_tool *tool, in perf_event__repipe_synth() argument 178 struct perf_inject *inject = container_of(tool, struct perf_inject, in perf_event__repipe_synth() 179 tool); in perf_event__repipe_synth() 184 static int perf_event__repipe_oe_synth(const struct perf_tool *tool, in perf_event__repipe_oe_synth() argument 188 return perf_event__repipe_synth(tool, event); in perf_event__repipe_oe_synth() 192 static int perf_event__drop_oe(const struct perf_tool *tool __maybe_unused, in perf_event__drop_oe() [all …]
|
| D | builtin-mem.c | 31 struct perf_tool tool; member 177 dump_raw_samples(const struct perf_tool *tool, in dump_raw_samples() argument 182 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples() 251 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument 257 return dump_raw_samples(tool, event, sample, machine); in process_sample_event() 276 perf_tool__init(&mem->tool, /*ordered_events=*/true); in report_raw_events() 277 mem->tool.sample = process_sample_event; in report_raw_events() 278 mem->tool.mmap = perf_event__process_mmap; in report_raw_events() 279 mem->tool.mmap2 = perf_event__process_mmap2; in report_raw_events() 280 mem->tool.comm = perf_event__process_comm; in report_raw_events() [all …]
|
| D | builtin-evlist.c | 38 struct perf_tool tool; in __cmd_evlist() local 41 perf_tool__init(&tool, /*ordered_events=*/false); in __cmd_evlist() 43 tool.attr = perf_event__process_attr; in __cmd_evlist() 44 tool.feature = process_header_feature; in __cmd_evlist() 45 session = perf_session__new(&data, &tool); in __cmd_evlist()
|
| D | builtin-report.c | 77 struct perf_tool tool; member 244 struct report *rep = container_of(session->tool, struct report, tool); in process_feature_event() 266 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument 272 struct report *rep = container_of(tool, struct report, tool); in process_sample_event() 342 static int process_read_event(const struct perf_tool *tool, in process_read_event() argument 348 struct report *rep = container_of(tool, struct report, tool); in process_read_event() 776 static int count_sample_event(const struct perf_tool *tool __maybe_unused, in count_sample_event() 788 static int count_lost_samples_event(const struct perf_tool *tool, in count_lost_samples_event() argument 793 struct report *rep = container_of(tool, struct report, tool); in count_lost_samples_event() 809 static int process_attr(const struct perf_tool *tool __maybe_unused, [all …]
|
| D | builtin-annotate.c | 49 struct perf_tool tool; member 283 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument 289 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event() 859 perf_tool__init(&annotate.tool, /*ordered_events=*/true); in cmd_annotate() 860 annotate.tool.sample = process_sample_event; in cmd_annotate() 861 annotate.tool.mmap = perf_event__process_mmap; in cmd_annotate() 862 annotate.tool.mmap2 = perf_event__process_mmap2; in cmd_annotate() 863 annotate.tool.comm = perf_event__process_comm; in cmd_annotate() 864 annotate.tool.exit = perf_event__process_exit; in cmd_annotate() 865 annotate.tool.fork = perf_event__process_fork; in cmd_annotate() [all …]
|
| D | builtin-script.c | 146 struct perf_tool tool; member 2459 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument 2465 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event() 2546 static int process_attr(const struct perf_tool *tool, union perf_event *event, in process_attr() argument 2549 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_attr() 2555 err = perf_event__process_attr(tool, event, pevlist); in process_attr() 2612 static int print_event_with_time(const struct perf_tool *tool, in print_event_with_time() argument 2618 struct perf_script *script = container_of(tool, struct perf_script, tool); in print_event_with_time() 2648 static int print_event(const struct perf_tool *tool, union perf_event *event, in print_event() argument 2652 return print_event_with_time(tool, event, sample, machine, pid, tid, 0); in print_event() [all …]
|
| D | builtin-kwork.c | 961 static int process_irq_handler_entry_event(const struct perf_tool *tool, in process_irq_handler_entry_event() argument 966 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_irq_handler_entry_event() 974 static int process_irq_handler_exit_event(const struct perf_tool *tool, in process_irq_handler_exit_event() argument 979 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_irq_handler_exit_event() 1040 static int process_softirq_raise_event(const struct perf_tool *tool, in process_softirq_raise_event() argument 1045 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_raise_event() 1054 static int process_softirq_entry_event(const struct perf_tool *tool, in process_softirq_entry_event() argument 1059 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_entry_event() 1068 static int process_softirq_exit_event(const struct perf_tool *tool, in process_softirq_exit_event() argument 1073 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_exit_event() [all …]
|
| /tools/tracing/rtla/src/ |
| D | osnoise_hist.c | 126 static void osnoise_hist_update_multiple(struct osnoise_tool *tool, int cpu, in osnoise_hist_update_multiple() argument 129 struct osnoise_hist_params *params = tool->params; in osnoise_hist_update_multiple() 130 struct osnoise_hist_data *data = tool->data; in osnoise_hist_update_multiple() 158 static void osnoise_destroy_trace_hist(struct osnoise_tool *tool) in osnoise_destroy_trace_hist() argument 160 struct osnoise_hist_data *data = tool->data; in osnoise_destroy_trace_hist() 162 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 163 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 169 static int osnoise_init_trace_hist(struct osnoise_tool *tool) in osnoise_init_trace_hist() argument 171 struct osnoise_hist_params *params = tool->params; in osnoise_init_trace_hist() 172 struct osnoise_hist_data *data = tool->data; in osnoise_init_trace_hist() [all …]
|
| D | timerlat_aa.c | 117 struct osnoise_tool *tool; member 496 function = tep_find_function(taa_ctx->tool->trace.tep, caller[i]); in timerlat_aa_stack_handler() 708 struct trace_instance *trace = &taa_ctx->tool->trace; in timerlat_auto_analysis_collect_trace() 773 tep = taa_ctx->tool->trace.tep; in timerlat_auto_analysis() 898 static void timerlat_aa_unregister_events(struct osnoise_tool *tool, int dump_tasks) in timerlat_aa_unregister_events() argument 901 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_aa_unregister_events() 902 timerlat_aa_handler, tool); in timerlat_aa_unregister_events() 904 tracefs_event_disable(tool->trace.inst, "osnoise", NULL); in timerlat_aa_unregister_events() 906 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "nmi_noise", in timerlat_aa_unregister_events() 907 timerlat_aa_nmi_handler, tool); in timerlat_aa_unregister_events() [all …]
|
| D | osnoise_top.c | 115 struct osnoise_tool *tool; in osnoise_top_handler() local 121 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler() 123 data = tool->data; in osnoise_top_handler() 219 static void osnoise_top_print(struct osnoise_tool *tool, int cpu) in osnoise_top_print() argument 221 struct osnoise_top_params *params = tool->params; in osnoise_top_print() 222 struct trace_seq *s = tool->trace.seq; in osnoise_top_print() 228 data = tool->data; in osnoise_top_print() 555 osnoise_top_apply_config(struct osnoise_tool *tool, struct osnoise_top_params *params) in osnoise_top_apply_config() argument 563 retval = osnoise_set_cpus(tool->context, params->cpus); in osnoise_top_apply_config() 571 retval = osnoise_set_runtime_period(tool->context, in osnoise_top_apply_config() [all …]
|
| D | timerlat_hist.c | 172 timerlat_hist_update(struct osnoise_tool *tool, int cpu, in timerlat_hist_update() argument 176 struct timerlat_hist_params *params = tool->params; in timerlat_hist_update() 177 struct timerlat_hist_data *data = tool->data; in timerlat_hist_update() 222 struct osnoise_tool *tool; in timerlat_hist_handler() local 225 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler() 230 timerlat_hist_update(tool, cpu, context, latency); in timerlat_hist_handler() 238 static void timerlat_hist_header(struct osnoise_tool *tool) in timerlat_hist_header() argument 240 struct timerlat_hist_params *params = tool->params; in timerlat_hist_header() 241 struct timerlat_hist_data *data = tool->data; in timerlat_hist_header() 242 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header() [all …]
|
| /tools/perf/tests/ |
| D | event_update.c | 15 static int process_event_unit(const struct perf_tool *tool __maybe_unused, in process_event_unit() 28 static int process_event_scale(const struct perf_tool *tool __maybe_unused, in process_event_scale() 42 struct perf_tool tool; member 46 static int process_event_name(const struct perf_tool *tool, in process_event_name() argument 51 struct event_name *tmp = container_of(tool, struct event_name, tool); in process_event_name() 60 static int process_event_cpus(const struct perf_tool *tool __maybe_unused, in process_event_cpus() 106 perf_tool__init(&tmp.tool, /*ordered_events=*/false); in test__event_update() 110 !perf_event__synthesize_event_update_name(&tmp.tool, evsel, process_event_name)); in test__event_update() 115 !perf_event__synthesize_event_update_cpus(&tmp.tool, evsel, process_event_cpus)); in test__event_update()
|
| D | stat.c | 24 static int process_stat_config_event(const struct perf_tool *tool __maybe_unused, in process_stat_config_event() 65 static int process_stat_event(const struct perf_tool *tool __maybe_unused, in process_stat_event() 96 static int process_stat_round_event(const struct perf_tool *tool __maybe_unused, in process_stat_round_event()
|
| /tools/perf/arch/x86/util/ |
| D | event.c | 18 const struct perf_tool *tool; member 62 if (perf_tool__process_synth_event(args->tool, event, args->machine, args->process) != 0) in perf_event__synthesize_extra_kmaps_cb() 68 int perf_event__synthesize_extra_kmaps(const struct perf_tool *tool, in perf_event__synthesize_extra_kmaps() argument 75 .tool = tool, in perf_event__synthesize_extra_kmaps()
|