| /linux-6.15/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 | 231 if (!tool || !tool->namespace_events) in perf_event__synthesize_namespaces() 642 if (!tool || !tool->cgroup_events) in perf_event__synthesize_cgroups() 670 const struct perf_tool *tool; member 727 .tool = tool, in perf_event__synthesize_modules() 890 process, tool, machine, in perf_event__synthesize_thread_map() 916 process, tool, machine, in perf_event__synthesize_thread_map() 998 const struct perf_tool *tool; member 1071 args[i].tool = tool; in perf_event__synthesize_threads() 1920 err = process(tool, ev, NULL, machine); in __perf_event__synthesize_id_index() 2176 err = process(tool, ev, NULL, NULL); in perf_event__synthesize_attr() [all …]
|
| H A D | session.c | 149 session->tool = tool; in __perf_session__new() 1296 return tool->mmap(tool, event, sample, machine); in machines__deliver_event() 1337 return tool->aux(tool, event, sample, machine); in machines__deliver_event() 1346 return tool->bpf(tool, event, sample, machine); in machines__deliver_event() 1397 const struct perf_tool *tool = session->tool; in perf_session__process_user_event() local 1439 err = tool->finished_round(tool, event, oe); in perf_session__process_user_event() 1504 const struct perf_tool *tool = session->tool; in perf_session__deliver_synth_event() local 1636 const struct perf_tool *tool = session->tool; in perf_session__process_event() local 1823 const struct perf_tool *tool = session->tool; in __perf_session__process_pipe_events() local 2253 const struct perf_tool *tool = session->tool; in __perf_session__process_events() local [all …]
|
| H A D | event.h | 281 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 …]
|
| 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 | tool_pmu.c | 496 struct perf_pmu *tool = zalloc(sizeof(struct perf_pmu)); in tool_pmu__new() local 498 if (!tool) in tool_pmu__new() 500 tool->name = strdup("tool"); in tool_pmu__new() 501 if (!tool->name) { in tool_pmu__new() 502 zfree(&tool); in tool_pmu__new() 506 tool->type = PERF_PMU_TYPE_TOOL; in tool_pmu__new() 507 INIT_LIST_HEAD(&tool->aliases); in tool_pmu__new() 508 INIT_LIST_HEAD(&tool->caps); in tool_pmu__new() 509 INIT_LIST_HEAD(&tool->format); in tool_pmu__new() 510 tool->events_table = find_core_events_table("common", "common"); in tool_pmu__new() [all …]
|
| /linux-6.15/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 | 32 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 …]
|
| H A D | builtin-report.c | 77 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() 797 struct report *rep = container_of(tool, struct report, tool); in count_lost_samples_event() 820 rep->tool.attr = process_attr; in stats_setup() 821 rep->tool.sample = count_sample_event; in stats_setup() 824 rep->tool.no_warn = true; in stats_setup() 843 rep->tool.attr = process_attr; in tasks_setup() 847 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-script.c | 143 struct perf_tool tool; member 2408 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event() 2492 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_attr() 2561 struct perf_script *script = container_of(tool, struct perf_script, tool); in print_event_with_time() 2688 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_switch_event() 3561 const struct perf_tool *tool = session->tool; in process_thread_map_event() local 3562 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_thread_map_event() 3583 const struct perf_tool *tool = session->tool; in process_cpu_map_event() local 3584 struct perf_script *script = container_of(tool, struct perf_script, tool); in process_cpu_map_event() 3616 const struct perf_tool *tool = session->tool; in perf_script__process_auxtrace_info() local [all …]
|
| H A D | builtin-annotate.c | 50 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 …]
|
| /linux-6.15/tools/tracing/rtla/src/ |
| H A D | osnoise_hist.c | 168 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 …]
|
| H A D | timerlat_aa.c | 115 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 …]
|
| H A D | osnoise_top.c | 80 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 …]
|
| H A D | timerlat_hist.c | 184 struct osnoise_tool *tool; in timerlat_hist_handler() local 629 timerlat_hist_header(tool); in timerlat_print_stats() 1084 struct osnoise_tool *tool; in timerlat_init_hist() local 1090 if (!tool) in timerlat_init_hist() 1094 if (!tool->data) in timerlat_init_hist() 1097 tool->params = params; in timerlat_init_hist() 1102 return tool; in timerlat_init_hist() 1105 osnoise_destroy_tool(tool); in timerlat_init_hist() 1159 if (!tool) { in timerlat_hist_main() 1170 trace = &tool->trace; in timerlat_hist_main() [all …]
|
| H A D | timerlat.c | 25 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() 43 retval = osnoise_set_stop_us(tool->context, params->stop_us); in timerlat_apply_config() 49 retval = osnoise_set_stop_total_us(tool->context, params->stop_total_us); in timerlat_apply_config() 56 retval = osnoise_set_timerlat_period_us(tool->context, in timerlat_apply_config() 66 retval = osnoise_set_print_stack(tool->context, params->print_stack); in timerlat_apply_config() 111 retval = osnoise_set_workload(tool->context, params->kernel_workload); in timerlat_apply_config()
|
| H A D | osnoise.c | 1092 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 …]
|
| /linux-6.15/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() 116 !perf_event__synthesize_event_update_cpus(&tmp.tool, evsel, process_event_cpus)); in test__event_update()
|
| /linux-6.15/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-6.15/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-6.15/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-6.15/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
|