Home
last modified time | relevance | path

Searched refs:tool (Results 1 – 25 of 138) sorted by relevance

123456

/tools/perf/util/
A Dtool.c257 tool->namespace_events = false; in perf_tool__init()
258 tool->cgroup_events = false; in perf_tool__init()
259 tool->no_warn = false; in perf_tool__init()
263 tool->mmap = process_event_stub; in perf_tool__init()
264 tool->mmap2 = process_event_stub; in perf_tool__init()
265 tool->comm = process_event_stub; in perf_tool__init()
267 tool->cgroup = process_event_stub; in perf_tool__init()
268 tool->fork = process_event_stub; in perf_tool__init()
269 tool->exit = process_event_stub; in perf_tool__init()
272 tool->aux = perf_event__process_aux; in perf_tool__init()
[all …]
A Dsynthetic-events.h44 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…
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,
74 int perf_event__synthesize_extra_kmaps(const struct perf_tool *tool, perf_event__handler_t process,…
81 int perf_event__synthesize_modules(const struct perf_tool *tool, perf_event__handler_t process, str…
83 int perf_event__synthesize_cgroups(const struct perf_tool *tool, perf_event__handler_t process, str…
102 int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool,
111 int perf_event__synthesize_auxtrace_info(struct auxtrace_record *itr, const struct perf_tool *tool,
120 const struct perf_tool *tool __maybe_unused, in perf_event__synthesize_auxtrace_info()
[all …]
A Ddata-convert-json.c35 struct perf_tool tool; member
124 struct convert_json *c = container_of(tool, struct convert_json, tool); in output_sample_callchain_entry()
155 struct convert_json *c = container_of(tool, struct convert_json, tool); in process_sample_event()
331 c.tool.sample = process_sample_event; in bt_convert__perf2json()
332 c.tool.mmap = perf_event__process_mmap; in bt_convert__perf2json()
334 c.tool.comm = perf_event__process_comm; in bt_convert__perf2json()
337 c.tool.exit = perf_event__process_exit; in bt_convert__perf2json()
338 c.tool.fork = perf_event__process_fork; in bt_convert__perf2json()
339 c.tool.lost = perf_event__process_lost; in bt_convert__perf2json()
348 c.tool.ordering_requires_timestamps = true; in bt_convert__perf2json()
[all …]
A Dtool.h18 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,
93 void perf_tool__init(struct perf_tool *tool, bool ordered_events);
95 bool perf_tool__compressed_is_stub(const struct perf_tool *tool);
97 int process_event_sample_stub(const struct perf_tool *tool,
A Devent.h281 int perf_event__process_comm(const struct perf_tool *tool,
285 int perf_event__process_lost(const struct perf_tool *tool,
293 int perf_event__process_aux(const struct perf_tool *tool,
305 int perf_event__process_switch(const struct perf_tool *tool,
313 int perf_event__process_cgroup(const struct perf_tool *tool,
317 int perf_event__process_mmap(const struct perf_tool *tool,
321 int perf_event__process_mmap2(const struct perf_tool *tool,
325 int perf_event__process_fork(const struct perf_tool *tool,
329 int perf_event__process_exit(const struct perf_tool *tool,
341 int perf_event__process_bpf(const struct perf_tool *tool,
[all …]
A Dsynthetic-events.c231 if (!tool || !tool->namespace_events) in perf_event__synthesize_namespaces()
648 if (!tool || !tool->cgroup_events) in perf_event__synthesize_cgroups()
676 const struct perf_tool *tool; member
733 .tool = tool, in perf_event__synthesize_modules()
896 process, tool, machine, in perf_event__synthesize_thread_map()
922 process, tool, machine, in perf_event__synthesize_thread_map()
1004 const struct perf_tool *tool; member
1077 args[i].tool = tool; in perf_event__synthesize_threads()
1932 err = process(tool, ev, NULL, machine); in __perf_event__synthesize_id_index()
2188 err = process(tool, ev, NULL, NULL); in perf_event__synthesize_attr()
[all …]
A Dsession.c151 session->tool = tool; in __perf_session__new()
1301 return tool->mmap(tool, event, sample, machine); in machines__deliver_event()
1342 return tool->aux(tool, event, sample, machine); in machines__deliver_event()
1351 return tool->bpf(tool, event, sample, machine); in machines__deliver_event()
1402 const struct perf_tool *tool = session->tool; in perf_session__process_user_event() local
1446 err = tool->finished_round(tool, event, oe); in perf_session__process_user_event()
1515 const struct perf_tool *tool = session->tool; in perf_session__deliver_synth_event() local
1647 const struct perf_tool *tool = session->tool; in perf_session__process_event() local
1843 const struct perf_tool *tool = session->tool; in __perf_session__process_pipe_events() local
2273 const struct perf_tool *tool = session->tool; in __perf_session__process_events() local
[all …]
A Dsession.h79 const struct perf_tool *tool; member
109 struct perf_tool *tool,
114 struct perf_tool *tool) in perf_session__new() argument
116 return __perf_session__new(data, tool, /*trace_event_repipe=*/false, /*host_env=*/NULL); in perf_session__new()
208 int perf_event__process_finished_round(const struct perf_tool *tool,
A Devent.c224 int perf_event__process_comm(const struct perf_tool *tool __maybe_unused, in perf_event__process_comm()
240 int perf_event__process_cgroup(const struct perf_tool *tool __maybe_unused, in perf_event__process_cgroup()
248 int perf_event__process_lost(const struct perf_tool *tool __maybe_unused, in perf_event__process_lost()
256 int perf_event__process_aux(const struct perf_tool *tool __maybe_unused, in perf_event__process_aux()
288 int perf_event__process_switch(const struct perf_tool *tool __maybe_unused, in perf_event__process_switch()
304 int perf_event__process_bpf(const struct perf_tool *tool __maybe_unused, in perf_event__process_bpf()
395 int perf_event__process_mmap(const struct perf_tool *tool __maybe_unused, in perf_event__process_mmap()
403 int perf_event__process_mmap2(const struct perf_tool *tool __maybe_unused, in perf_event__process_mmap2()
418 int perf_event__process_fork(const struct perf_tool *tool __maybe_unused, in perf_event__process_fork()
426 int perf_event__process_exit(const struct perf_tool *tool __maybe_unused, in perf_event__process_exit()
[all …]
/tools/perf/
A Dbuiltin-inject.c81 struct perf_tool tool; member
115 struct perf_tool tool; member
179 tool); in perf_event__repipe_synth()
219 tool); in perf_event__repipe_attr()
264 const struct perf_tool *tool = session->tool; in perf_event__repipe_auxtrace() local
266 tool); in perf_event__repipe_auxtrace()
332 struct perf_inject *inject = container_of(tool, struct perf_inject, tool); in perf_event__drop_aux()
381 tool); in perf_event__repipe_sample()
480 struct perf_inject *inject = container_of(tool, struct perf_inject, tool); in perf_event__repipe_common_mmap()
927 .tool = tool, in perf_event__inject_buildid()
[all …]
A Dbuiltin-mem.c32 struct perf_tool tool; member
180 dump_raw_samples(const struct perf_tool *tool, in dump_raw_samples() argument
185 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples()
280 mem->tool.sample = process_sample_event; in report_raw_events()
281 mem->tool.mmap = perf_event__process_mmap; in report_raw_events()
282 mem->tool.mmap2 = perf_event__process_mmap2; in report_raw_events()
283 mem->tool.comm = perf_event__process_comm; in report_raw_events()
284 mem->tool.lost = perf_event__process_lost; in report_raw_events()
285 mem->tool.fork = perf_event__process_fork; in report_raw_events()
286 mem->tool.attr = perf_event__process_attr; in report_raw_events()
[all …]
A Dbuiltin-evlist.c38 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()
A Dbuiltin-report.c77 struct perf_tool tool; member
246 struct report *rep = container_of(session->tool, struct report, tool); in process_feature_event()
274 struct report *rep = container_of(tool, struct report, tool); in process_sample_event()
354 struct report *rep = container_of(tool, struct report, tool); in process_read_event()
800 struct report *rep = container_of(tool, struct report, tool); in count_lost_samples_event()
823 rep->tool.attr = process_attr; in stats_setup()
824 rep->tool.sample = count_sample_event; in stats_setup()
827 rep->tool.no_warn = true; in stats_setup()
846 rep->tool.attr = process_attr; in tasks_setup()
850 rep->tool.no_warn = true; in tasks_setup()
[all …]
A Dbuiltin-annotate.c50 struct perf_tool tool; member
290 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event()
863 annotate.tool.sample = process_sample_event; in cmd_annotate()
864 annotate.tool.mmap = perf_event__process_mmap; in cmd_annotate()
865 annotate.tool.mmap2 = perf_event__process_mmap2; in cmd_annotate()
866 annotate.tool.comm = perf_event__process_comm; in cmd_annotate()
867 annotate.tool.exit = perf_event__process_exit; in cmd_annotate()
868 annotate.tool.fork = perf_event__process_fork; in cmd_annotate()
870 annotate.tool.attr = perf_event__process_attr; in cmd_annotate()
878 annotate.tool.feature = process_feature_event; in cmd_annotate()
[all …]
A Dbuiltin-script.c145 struct perf_tool tool; member
2409 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event()
2493 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_attr()
2562 struct perf_script *script = container_of(tool, struct perf_script, tool); in print_event_with_time()
2689 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_switch_event()
3571 const struct perf_tool *tool = session->tool; in process_thread_map_event() local
3572 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_thread_map_event()
3593 const struct perf_tool *tool = session->tool; in process_cpu_map_event() local
3594 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_cpu_map_event()
3626 const struct perf_tool *tool = session->tool; in perf_script__process_auxtrace_info() local
[all …]
A Dbuiltin-kwork.c967 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_irq_handler_entry_event()
980 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_irq_handler_exit_event()
1046 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_raise_event()
1060 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_entry_event()
1074 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_exit_event()
1177 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_workqueue_activate_work_event()
1191 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_workqueue_execute_start_event()
1205 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_workqueue_execute_end_event()
1276 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_sched_switch_event()
1966 err = f(tool, evsel, sample, machine); in perf_kwork__process_tracepoint_sample()
[all …]
/tools/tracing/rtla/src/
A Dosnoise_hist.c168 osnoise_destroy_trace_hist(tool); in osnoise_init_trace_hist()
350 osnoise_hist_header(tool); in osnoise_print_stats()
723 struct osnoise_tool *tool; in osnoise_init_hist() local
729 if (!tool) in osnoise_init_hist()
733 if (!tool->data) in osnoise_init_hist()
736 tool->params = params; in osnoise_init_hist()
738 return tool; in osnoise_init_hist()
741 osnoise_destroy_tool(tool); in osnoise_init_hist()
778 if (!tool) { in osnoise_hist_main()
789 trace = &tool->trace; in osnoise_hist_main()
[all …]
A Dtimerlat_aa.c115 struct osnoise_tool *tool; member
771 tep = taa_ctx->tool->trace.tep; in timerlat_auto_analysis()
900 timerlat_aa_handler, tool); in timerlat_aa_unregister_events()
905 timerlat_aa_nmi_handler, tool); in timerlat_aa_unregister_events()
908 timerlat_aa_irq_handler, tool); in timerlat_aa_unregister_events()
940 timerlat_aa_handler, tool); in timerlat_aa_register_events()
953 timerlat_aa_nmi_handler, tool); in timerlat_aa_register_events()
956 timerlat_aa_irq_handler, tool); in timerlat_aa_register_events()
962 timerlat_aa_thread_handler, tool); in timerlat_aa_register_events()
965 timerlat_aa_stack_handler, tool); in timerlat_aa_register_events()
[all …]
A Dosnoise_top.c80 struct osnoise_tool *tool; in osnoise_top_handler() local
88 data = tool->data; in osnoise_top_handler()
193 data = tool->data; in osnoise_top_print()
551 struct osnoise_tool *tool; in osnoise_init_top() local
557 if (!tool) in osnoise_init_top()
561 if (!tool->data) { in osnoise_init_top()
566 tool->params = params; in osnoise_init_top()
571 return tool; in osnoise_init_top()
606 if (!tool) { in osnoise_top_main()
617 trace = &tool->trace; in osnoise_top_main()
[all …]
A Dtimerlat.c25 timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params) in timerlat_apply_config() argument
32 retval = osnoise_set_cpus(tool->context, params->cpus ? params->cpus : "all"); in timerlat_apply_config()
48 retval = osnoise_set_stop_us(tool->context, params->stop_us); in timerlat_apply_config()
54 retval = osnoise_set_stop_total_us(tool->context, params->stop_total_us); in timerlat_apply_config()
62 retval = osnoise_set_timerlat_period_us(tool->context, in timerlat_apply_config()
72 retval = osnoise_set_print_stack(tool->context, params->print_stack); in timerlat_apply_config()
117 retval = osnoise_set_workload(tool->context, params->kernel_workload); in timerlat_apply_config()
A Dtimerlat_hist.c184 struct osnoise_tool *tool; in timerlat_hist_handler() local
629 timerlat_hist_header(tool); in timerlat_print_stats()
1121 struct osnoise_tool *tool; in timerlat_init_hist() local
1127 if (!tool) in timerlat_init_hist()
1131 if (!tool->data) in timerlat_init_hist()
1134 tool->params = params; in timerlat_init_hist()
1139 return tool; in timerlat_init_hist()
1142 osnoise_destroy_tool(tool); in timerlat_init_hist()
1195 if (!tool) { in timerlat_hist_main()
1200 trace = &tool->trace; in timerlat_hist_main()
[all …]
A Dosnoise.c1092 if (!tracefs_trace_is_on(tool->trace.inst)) in osnoise_trace_is_off()
1107 osnoise_report_missed_events(struct osnoise_tool *tool) in osnoise_report_missed_events() argument
1111 if (tool->trace.missed_events == UINT64_MAX) in osnoise_report_missed_events()
1113 else if (tool->trace.missed_events > 0) { in osnoise_report_missed_events()
1114 total_events = tool->trace.processed_events + tool->trace.missed_events; in osnoise_report_missed_events()
1117 tool->trace.missed_events, in osnoise_report_missed_events()
1118 (double) tool->trace.missed_events / total_events * 100.0); in osnoise_report_missed_events()
1140 retval = osnoise_set_runtime_period(tool->context, in osnoise_apply_config()
1144 retval = osnoise_set_runtime_period(tool->context, in osnoise_apply_config()
1154 retval = osnoise_set_stop_us(tool->context, params->stop_us); in osnoise_apply_config()
[all …]
A Dosnoise.h156 void osnoise_report_missed_events(struct osnoise_tool *tool);
157 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record);
158 int osnoise_apply_config(struct osnoise_tool *tool, struct osnoise_params *params);
/tools/perf/tests/
A Devent_update.c15 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()
116 !perf_event__synthesize_event_update_cpus(&tmp.tool, evsel, process_event_cpus)); in test__event_update()
/tools/perf/arch/x86/util/
A Devent.c18 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()

Completed in 64 milliseconds

123456