/linux/tools/perf/util/ |
H A D | tool.c | 237 tool->namespace_events = false; in perf_tool__init() 238 tool->cgroup_events = false; in perf_tool__init() 239 tool->no_warn = false; in perf_tool__init() 243 tool->mmap = process_event_stub; in perf_tool__init() 244 tool->mmap2 = process_event_stub; in perf_tool__init() 245 tool->comm = process_event_stub; in perf_tool__init() 247 tool->cgroup = process_event_stub; in perf_tool__init() 248 tool->fork = process_event_stub; in perf_tool__init() 249 tool->exit = process_event_stub; in perf_tool__init() 252 tool->aux = perf_event__process_aux; in perf_tool__init() [all …]
|
H A 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… 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… 100 int __machine__synthesize_threads(struct machine *machine, const struct perf_tool *tool, 109 int perf_event__synthesize_auxtrace_info(struct auxtrace_record *itr, const struct perf_tool *tool, 118 const struct perf_tool *tool __maybe_unused, in perf_event__synthesize_auxtrace_info() [all …]
|
H A D | data-convert-json.c | 35 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() 330 c.tool.sample = process_sample_event; in bt_convert__perf2json() 331 c.tool.mmap = perf_event__process_mmap; in bt_convert__perf2json() 333 c.tool.comm = perf_event__process_comm; in bt_convert__perf2json() 336 c.tool.exit = perf_event__process_exit; in bt_convert__perf2json() 337 c.tool.fork = perf_event__process_fork; in bt_convert__perf2json() 338 c.tool.lost = perf_event__process_lost; in bt_convert__perf2json() 347 c.tool.ordering_requires_timestamps = true; in bt_convert__perf2json() [all …]
|
H A D | synthetic-events.c | 230 if (!tool || !tool->namespace_events) in perf_event__synthesize_namespaces() 641 if (!tool || !tool->cgroup_events) in perf_event__synthesize_cgroups() 669 const struct perf_tool *tool; member 726 .tool = tool, in perf_event__synthesize_modules() 888 process, tool, machine, in perf_event__synthesize_thread_map() 914 process, tool, machine, in perf_event__synthesize_thread_map() 996 const struct perf_tool *tool; member 1069 args[i].tool = tool; in perf_event__synthesize_threads() 1914 err = process(tool, ev, NULL, machine); in __perf_event__synthesize_id_index() 2170 err = process(tool, ev, NULL, NULL); in perf_event__synthesize_attr() [all …]
|
H A D | session.c | 148 session->tool = tool; in __perf_session__new() 1275 return tool->mmap(tool, event, sample, machine); in machines__deliver_event() 1316 return tool->aux(tool, event, sample, machine); in machines__deliver_event() 1325 return tool->bpf(tool, event, sample, machine); in machines__deliver_event() 1371 const struct perf_tool *tool = session->tool; in perf_session__process_user_event() local 1408 return tool->finished_round(tool, event, oe); in perf_session__process_user_event() 1457 const struct perf_tool *tool = session->tool; in perf_session__deliver_synth_event() local 1589 const struct perf_tool *tool = session->tool; in perf_session__process_event() local 1776 const struct perf_tool *tool = session->tool; in __perf_session__process_pipe_events() local 2206 const struct perf_tool *tool = session->tool; in __perf_session__process_events() local [all …]
|
H A 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, 282 int perf_event__process_aux(const struct perf_tool *tool, 294 int perf_event__process_switch(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, 310 int perf_event__process_mmap2(const struct perf_tool *tool, 314 int perf_event__process_fork(const struct perf_tool *tool, 318 int perf_event__process_exit(const struct perf_tool *tool, 330 int perf_event__process_bpf(const struct perf_tool *tool, [all …]
|
H A 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,
|
H A 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,
|
H A D | data-convert-bt.c | 91 struct perf_tool tool; member 801 struct convert *c = container_of(tool, struct convert, tool); in process_sample_event() 879 struct convert *c = container_of(tool, struct convert, tool);\ 1615 c.tool.sample = process_sample_event; in bt_convert__perf2ctf() 1625 c.tool.ordering_requires_timestamps = true; in bt_convert__perf2ctf() 1628 c.tool.comm = process_comm_event; in bt_convert__perf2ctf() 1629 c.tool.exit = process_exit_event; in bt_convert__perf2ctf() 1630 c.tool.fork = process_fork_event; in bt_convert__perf2ctf() 1631 c.tool.mmap = process_mmap_event; in bt_convert__perf2ctf() 1632 c.tool.mmap2 = process_mmap2_event; in bt_convert__perf2ctf() [all …]
|
/linux/tools/perf/ |
H A D | builtin-inject.c | 81 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() 921 .tool = tool, in perf_event__inject_buildid() [all …]
|
H A 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() 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() 281 mem->tool.lost = perf_event__process_lost; in report_raw_events() 282 mem->tool.fork = perf_event__process_fork; in report_raw_events() 283 mem->tool.attr = perf_event__process_attr; in report_raw_events() [all …]
|
H A 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() 272 struct report *rep = container_of(tool, struct report, tool); in process_sample_event() 348 struct report *rep = container_of(tool, struct report, tool); in process_read_event() 793 struct report *rep = container_of(tool, struct report, tool); in count_lost_samples_event() 816 rep->tool.attr = process_attr; in stats_setup() 817 rep->tool.sample = count_sample_event; in stats_setup() 820 rep->tool.no_warn = true; in stats_setup() 839 rep->tool.attr = process_attr; in tasks_setup() 843 rep->tool.no_warn = true; in tasks_setup() [all …]
|
H A 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()
|
H A D | builtin-annotate.c | 49 struct perf_tool tool; member 289 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event() 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() 867 annotate.tool.attr = perf_event__process_attr; in cmd_annotate() 875 annotate.tool.feature = process_feature_event; in cmd_annotate() [all …]
|
H A D | builtin-script.c | 146 struct perf_tool tool; member 2465 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event() 2549 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_attr() 2618 struct perf_script *script = container_of(tool, struct perf_script, tool); in print_event_with_time() 2745 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_switch_event() 3817 const struct perf_tool *tool = session->tool; in process_thread_map_event() local 3818 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_thread_map_event() 3839 const struct perf_tool *tool = session->tool; in process_cpu_map_event() local 3840 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_cpu_map_event() 3872 const struct perf_tool *tool = session->tool; in perf_script__process_auxtrace_info() local [all …]
|
H A D | builtin-kwork.c | 966 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_irq_handler_entry_event() 979 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_irq_handler_exit_event() 1045 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_raise_event() 1059 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_entry_event() 1073 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_softirq_exit_event() 1175 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_workqueue_activate_work_event() 1189 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_workqueue_execute_start_event() 1203 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_workqueue_execute_end_event() 1274 struct perf_kwork *kwork = container_of(tool, struct perf_kwork, tool); in process_sched_switch_event() 1964 err = f(tool, evsel, sample, machine); in perf_kwork__process_tracepoint_sample() [all …]
|
/linux/tools/tracing/rtla/src/ |
H A D | osnoise_hist.c | 381 osnoise_hist_header(tool); in osnoise_print_stats() 812 struct osnoise_tool *tool; in osnoise_init_hist() local 818 if (!tool) in osnoise_init_hist() 822 if (!tool->data) in osnoise_init_hist() 825 tool->params = params; in osnoise_init_hist() 827 return tool; in osnoise_init_hist() 830 osnoise_destroy_tool(tool); in osnoise_init_hist() 867 if (!tool) { in osnoise_hist_main() 878 trace = &tool->trace; in osnoise_hist_main() 956 tool->start_time = time(NULL); in osnoise_hist_main() [all …]
|
H A D | timerlat_aa.c | 117 struct osnoise_tool *tool; member 773 tep = taa_ctx->tool->trace.tep; in timerlat_auto_analysis() 902 timerlat_aa_handler, tool); in timerlat_aa_unregister_events() 907 timerlat_aa_nmi_handler, tool); in timerlat_aa_unregister_events() 910 timerlat_aa_irq_handler, tool); in timerlat_aa_unregister_events() 942 timerlat_aa_handler, tool); in timerlat_aa_register_events() 955 timerlat_aa_nmi_handler, tool); in timerlat_aa_register_events() 958 timerlat_aa_irq_handler, tool); in timerlat_aa_register_events() 964 timerlat_aa_thread_handler, tool); in timerlat_aa_register_events() 967 timerlat_aa_stack_handler, tool); in timerlat_aa_register_events() [all …]
|
H A D | osnoise_top.c | 115 struct osnoise_tool *tool; in osnoise_top_handler() local 123 data = tool->data; in osnoise_top_handler() 228 data = tool->data; in osnoise_top_print() 644 struct osnoise_tool *tool; in osnoise_init_top() local 650 if (!tool) in osnoise_init_top() 654 if (!tool->data) { in osnoise_init_top() 659 tool->params = params; in osnoise_init_top() 664 return tool; in osnoise_init_top() 699 if (!tool) { in osnoise_top_main() 710 trace = &tool->trace; in osnoise_top_main() [all …]
|
H A D | timerlat_hist.c | 222 struct osnoise_tool *tool; in timerlat_hist_handler() local 569 timerlat_hist_header(tool); in timerlat_print_stats() 1099 struct osnoise_tool *tool; in timerlat_init_hist() local 1105 if (!tool) in timerlat_init_hist() 1109 if (!tool->data) in timerlat_init_hist() 1112 tool->params = params; in timerlat_init_hist() 1117 return tool; in timerlat_init_hist() 1120 osnoise_destroy_tool(tool); in timerlat_init_hist() 1161 if (!tool) { in timerlat_hist_main() 1172 trace = &tool->trace; in timerlat_hist_main() [all …]
|
/linux/tools/perf/tests/ |
H A 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()
|
/linux/Documentation/tools/rtla/ |
H A D | rtla-hwnoise.rst | 25 The tool also allows the configurations of the *osnoise* tracer and the 38 In the example below, the **rtla hwnoise** tool is set to run on CPUs *1-7* 41 The tool is set to detect any noise higher than *one microsecond*, 59 *Periods* the tool ran during the session. The *Runtime* is the time 60 the tool effectively runs on the CPU. The *Noise* column is the sum of 61 all noise that the tool observed, and the *% CPU Aval* is the relation 64 The *Max Noise* column is the maximum hardware noise the tool detected in a 68 occurrence observed by the tool. 78 The tool should report *0* hardware-related noise in the ideal situation.
|
/linux/drivers/input/tablet/ |
H A D | wacom_serial4.c | 173 unsigned int tool; member 312 unsigned int tool; in wacom_handle_packet() local 333 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; in wacom_handle_packet() 335 tool = CURSOR; in wacom_handle_packet() 337 if (tool != wacom->tool && wacom->tool != 0) { in wacom_handle_packet() 338 input_report_key(wacom->dev, tools[wacom->tool].input_id, 0); in wacom_handle_packet() 341 wacom->tool = tool; in wacom_handle_packet() 343 input_report_key(wacom->dev, tools[tool].input_id, in_proximity_p); in wacom_handle_packet() 345 in_proximity_p ? tools[tool].device_id : 0); in wacom_handle_packet() 532 wacom->tool = wacom->idx = 0; in wacom_connect()
|
/linux/tools/perf/arch/x86/util/ |
H A 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()
|
/linux/Documentation/arch/s390/ |
H A D | zfcpdump.rst | 2 The s390 SCSI dump tool (zfcpdump) 6 dumps on SCSI disks. The dump process is initiated by booting a dump tool, which 8 not overwrite memory of the crashed Linux with data of the dump tool, the 10 dump tool is loaded. There exists an SCLP hardware interface to obtain the saved 14 a user space dump tool, which are loaded together into the saved memory region 20 The user space dump tool accesses the memory of the crashed system by means 32 The s390 zipl tool looks for the zfcpdump kernel and optional initrd/initramfs
|