Home
last modified time | relevance | path

Searched full:tool (Results 1 – 25 of 690) sorted by relevance

12345678910>>...28

/linux/tools/perf/util/
H A Dtool.c8 #include "tool.h"
91 static int process_event_synth_attr_stub(const struct perf_tool *tool __maybe_unused, in process_event_synth_attr_stub()
100 static int process_event_synth_event_update_stub(const struct perf_tool *tool __maybe_unused, in process_event_synth_event_update_stub()
112 int process_event_sample_stub(const struct perf_tool *tool __maybe_unused, in process_event_sample_stub()
122 static int process_event_stub(const struct perf_tool *tool __maybe_unused, in process_event_stub()
131 static int process_finished_round_stub(const struct perf_tool *tool __maybe_unused, in process_finished_round_stub()
253 void perf_tool__init(struct perf_tool *tool, bool ordered_events) in perf_tool__init() argument
255 tool->ordered_events = ordered_events; in perf_tool__init()
256 tool->ordering_requires_timestamps = false; in perf_tool__init()
257 tool->namespace_events = false; in perf_tool__init()
[all …]
H 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…
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 …]
H A Ddata-convert-json.c28 #include "util/tool.h"
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()
330 perf_tool__init(&c.tool, /*ordered_events=*/true); in bt_convert__perf2json()
331 c.tool.sample = process_sample_event; in bt_convert__perf2json()
[all …]
H A Dsession.c27 #include "tool.h"
46 const struct perf_tool *tool,
135 session->tool, event->file_offset, in ordered_events__deliver_event()
140 struct perf_tool *tool, in __perf_session__new() argument
151 session->tool = tool; in __perf_session__new()
217 if ((!data || !data->is_pipe) && tool && tool->ordering_requires_timestamps && in __perf_session__new()
218 tool->ordered_events && !evlist__sample_id_all(session->evlist)) { in __perf_session__new()
220 tool->ordered_events = false; in __perf_session__new()
780 int perf_event__process_finished_round(const struct perf_tool *tool __maybe_unused, in perf_event__process_finished_round()
1186 const struct perf_tool *tool, in deliver_sample_value() argument
[all …]
H A Dsynthetic-events.c51 int perf_tool__process_synth_event(const struct perf_tool *tool, in perf_tool__process_synth_event() argument
66 return process(tool, event, &synth_sample, machine); in perf_tool__process_synth_event()
191 pid_t perf_event__synthesize_comm(const struct perf_tool *tool, in perf_event__synthesize_comm() argument
203 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_comm()
222 int perf_event__synthesize_namespaces(const struct perf_tool *tool, in perf_event__synthesize_namespaces() argument
231 if (!tool || !tool->namespace_events) in perf_event__synthesize_namespaces()
255 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_namespaces()
261 static int perf_event__synthesize_fork(const struct perf_tool *tool, in perf_event__synthesize_fork() argument
288 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_fork()
428 int perf_event__synthesize_mmap_events(const struct perf_tool *tool, in perf_event__synthesize_mmap_events() argument
[all …]
H A Devent.h301 int perf_event__process_comm(const struct perf_tool *tool,
305 int perf_event__process_lost(const struct perf_tool *tool,
309 int perf_event__process_lost_samples(const struct perf_tool *tool,
313 int perf_event__process_aux(const struct perf_tool *tool,
317 int perf_event__process_itrace_start(const struct perf_tool *tool,
321 int perf_event__process_aux_output_hw_id(const struct perf_tool *tool,
325 int perf_event__process_switch(const struct perf_tool *tool,
329 int perf_event__process_namespaces(const struct perf_tool *tool,
333 int perf_event__process_cgroup(const struct perf_tool *tool,
337 int perf_event__process_mmap(const struct perf_tool *tool,
[all …]
H 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,
/linux/tools/tracing/rtla/src/
H A Dcommon.c29 * set_signals - handles the signal to stop the tool
41 * common_apply_config - apply common configs to the initialized tool
44 common_apply_config(struct osnoise_tool *tool, struct common_params *params) in common_apply_config() argument
51 retval = osnoise_set_cpus(tool->context, params->cpus ? params->cpus : "all"); in common_apply_config()
85 retval = osnoise_set_workload(tool->context, params->kernel_workload); in common_apply_config()
102 struct osnoise_tool *tool; in run_tool() local
110 tool = ops->init_tool(params); in run_tool()
111 if (!tool) { in run_tool()
112 err_msg("Could not init osnoise tool\n"); in run_tool()
115 tool->ops = ops; in run_tool()
[all …]
H A Dtimerlat.c26 * timerlat_apply_config - apply common configs to the initialized tool
29 timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params) in timerlat_apply_config() argument
40 } else if (!tep_find_event_by_name(tool->trace.tep, "osnoise", "timerlat_sample")) { in timerlat_apply_config()
56 retval = osnoise_set_stop_us(tool->context, params->common.stop_us); in timerlat_apply_config()
62 retval = osnoise_set_stop_total_us(tool->context, params->common.stop_total_us); in timerlat_apply_config()
70 retval = osnoise_set_timerlat_period_us(tool->context, in timerlat_apply_config()
80 retval = osnoise_set_print_stack(tool->context, params->print_stack); in timerlat_apply_config()
102 return common_apply_config(tool, &params->common); in timerlat_apply_config()
108 int timerlat_enable(struct osnoise_tool *tool) in timerlat_enable() argument
110 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_enable()
[all …]
H A Dosnoise_hist.c57 static void osnoise_free_hist_tool(struct osnoise_tool *tool) in osnoise_free_hist_tool() argument
59 osnoise_free_histogram(tool->data); in osnoise_free_hist_tool()
100 static void osnoise_hist_update_multiple(struct osnoise_tool *tool, int cpu, in osnoise_hist_update_multiple() argument
103 struct osnoise_params *params = to_osnoise_params(tool->params); in osnoise_hist_update_multiple()
104 struct osnoise_hist_data *data = tool->data; in osnoise_hist_update_multiple()
132 static void osnoise_destroy_trace_hist(struct osnoise_tool *tool) in osnoise_destroy_trace_hist() argument
134 struct osnoise_hist_data *data = tool->data; in osnoise_destroy_trace_hist()
136 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist()
137 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist()
143 static int osnoise_init_trace_hist(struct osnoise_tool *tool) in osnoise_init_trace_hist() argument
[all …]
H A Dtimerlat_aa.c115 struct osnoise_tool *tool; member
124 * For now keep it simple. If needed, store it in the tool, add the *context
494 function = tep_find_function(taa_ctx->tool->trace.tep, caller[i]); in timerlat_aa_stack_handler()
706 struct trace_instance *trace = &taa_ctx->tool->trace; in timerlat_auto_analysis_collect_trace()
771 tep = taa_ctx->tool->trace.tep; in timerlat_auto_analysis()
896 static void timerlat_aa_unregister_events(struct osnoise_tool *tool, int dump_tasks) in timerlat_aa_unregister_events() argument
899 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_aa_unregister_events()
900 timerlat_aa_handler, tool); in timerlat_aa_unregister_events()
902 tracefs_event_disable(tool->trace.inst, "osnoise", NULL); in timerlat_aa_unregister_events()
904 tep_unregister_event_handler(tool->trace.tep, -1, "osnoise", "nmi_noise", in timerlat_aa_unregister_events()
[all …]
H A Dcommon.h113 * osnoise_tool - osnoise based tool definition.
134 int (*apply_config)(struct osnoise_tool *tool);
135 int (*enable)(struct osnoise_tool *tool);
136 int (*main)(struct osnoise_tool *tool);
137 void (*print_stats)(struct osnoise_tool *tool);
138 void (*analyze)(struct osnoise_tool *tool, bool stopped);
139 void (*free)(struct osnoise_tool *tool);
150 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record);
152 int common_apply_config(struct osnoise_tool *tool, struct common_params *params);
153 int top_main_loop(struct osnoise_tool *tool);
[all …]
H A Dtimerlat_hist.c76 static void timerlat_free_histogram_tool(struct osnoise_tool *tool) in timerlat_free_histogram_tool() argument
78 timerlat_free_histogram(tool->data); in timerlat_free_histogram_tool()
79 timerlat_free(tool); in timerlat_free_histogram_tool()
137 timerlat_hist_update(struct osnoise_tool *tool, int cpu, in timerlat_hist_update() argument
141 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_hist_update()
142 struct timerlat_hist_data *data = tool->data; in timerlat_hist_update()
187 struct osnoise_tool *tool; in timerlat_hist_handler() local
190 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler()
195 timerlat_hist_update(tool, cpu, context, latency); in timerlat_hist_handler()
203 static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool) in timerlat_hist_bpf_pull_data() argument
[all …]
H A Dosnoise_top.c46 static void osnoise_free_top_tool(struct osnoise_tool *tool) in osnoise_free_top_tool() argument
48 osnoise_free_top(tool->data); in osnoise_free_top_tool()
84 struct osnoise_tool *tool; in osnoise_top_handler() local
90 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler()
92 data = tool->data; in osnoise_top_handler()
126 * osnoise_top_header - print the header of the tool output
189 static void osnoise_top_print(struct osnoise_tool *tool, int cpu) in osnoise_top_print() argument
191 struct osnoise_params *params = to_osnoise_params(tool->params); in osnoise_top_print()
192 struct trace_seq *s = tool->trace.seq; in osnoise_top_print()
198 data = tool->data; in osnoise_top_print()
[all …]
H A Dosnoise.c1012 * osnoise_init_tool - init an osnoise tool
1015 * creates a new trace instance for the tool.
1070 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record) in osnoise_trace_is_off() argument
1073 * The tool instance is always present, it is the one used to collect in osnoise_trace_is_off()
1076 if (!tracefs_trace_is_on(tool->trace.inst)) in osnoise_trace_is_off()
1091 osnoise_report_missed_events(struct osnoise_tool *tool) in osnoise_report_missed_events() argument
1095 if (tool->trace.missed_events == UINT64_MAX) in osnoise_report_missed_events()
1097 else if (tool->trace.missed_events > 0) { in osnoise_report_missed_events()
1098 total_events = tool->trace.processed_events + tool->trace.missed_events; in osnoise_report_missed_events()
1101 tool->trace.missed_events, in osnoise_report_missed_events()
[all …]
/linux/tools/perf/
H A Dbuiltin-inject.c18 #include "util/tool.h"
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()
[all …]
H A Dbuiltin-mem.c12 #include "util/tool.h"
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()
254 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument
260 return dump_raw_samples(tool, event, sample, machine); in process_sample_event()
279 perf_tool__init(&mem->tool, /*ordered_events=*/true); in report_raw_events()
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()
[all …]
H A Dbuiltin-report.c37 #include "util/tool.h"
77 struct perf_tool tool; member
246 struct report *rep = container_of(session->tool, struct report, tool); in process_feature_event()
268 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument
274 struct report *rep = container_of(tool, struct report, tool); in process_sample_event()
348 static int process_read_event(const struct perf_tool *tool, in process_read_event() argument
354 struct report *rep = container_of(tool, struct report, tool); in process_read_event()
783 static int count_sample_event(const struct perf_tool *tool __maybe_unused, in count_sample_event()
795 static int count_lost_samples_event(const struct perf_tool *tool, in count_lost_samples_event() argument
800 struct report *rep = container_of(tool, struct report, tool); in count_lost_samples_event()
[all …]
/linux/tools/power/acpi/
H A DMakefile.rules2 # tools/power/acpi/Makefile.rules - ACPI tool Makefile
8 objdir := $(OUTPUT)tools/$(TOOL)/
10 $(OUTPUT)$(TOOL): $(toolobjs) FORCE
27 all: $(OUTPUT)$(TOOL)
33 $(ECHO) " RM " $(TOOL)
34 $(QUIET) rm -f $(OUTPUT)$(TOOL)
39 $(ECHO) " INST " $(TOOL)
41 $(QUIET) $(INSTALL_PROGRAM) $(OUTPUT)$(TOOL) $(DESTDIR)$(sbindir)
43 $(ECHO) " UNINST " $(TOOL)
44 $(QUIET) rm -f $(DESTDIR)$(sbindir)/$(TOOL)
/linux/tools/perf/tests/
H A Devent_update.c11 #include "tool.h"
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/Documentation/tools/rtla/
H A Drtla-hwnoise.rst3 .. |tool| replace:: hwnoise substdef
27 The tool also allows the configurations of the *osnoise* tracer and the
40 In the example below, the **rtla hwnoise** tool is set to run on CPUs *1-7*
43 The tool is set to detect any noise higher than *one microsecond*,
61 *Periods* the tool ran during the session. The *Runtime* is the time
62 the tool effectively runs on the CPU. The *Noise* column is the sum of
63 all noise that the tool observed, and the *% CPU Aval* is the relation
66 The *Max Noise* column is the maximum hardware noise the tool detected in a
70 occurrence observed by the tool.
80 The tool should report *0* hardware-related noise in the ideal situation.
/linux/drivers/scsi/mpt3sas/mpi/
H A Dmpi2_tool.h7 * Title: MPI diagnostic tool structures and definitions
21 * 05-06-09 02.00.03 Added ISTWI Read Write Tool and Diagnostic CLI Tool.
26 * 05-12-10 02.00.05 Added Diagnostic Data Upload tool.
32 * 07-10-12 02.00.09 Add MPI v2.5 Toolbox Diagnostic CLI Tool Request
40 * Tool Request Message.
41 * 07-22-18 02.00.15 Added defines for new TOOLBOX_PCIE_LANE_MARGINING tool.
42 * Added option for DeviceInfo field in ISTWI tool.
71 U8 Tool; /*0x00 */ member
88 * Toolbox Clean Tool request
92 U8 Tool; /*0x00 */ member
[all …]
/linux/tools/
H A DMakefile15 @echo ' cpupower - a tool for all things x86 CPU power'
23 @echo ' intel-speed-select - Intel Speed Select tool'
27 @echo ' objtool - an ELF object analysis tool'
28 @echo ' perf - Linux performance measurement and analysis tool'
31 @echo ' bootconfig - boot config tool'
33 @echo ' tmon - thermal monitoring and tuning tool'
34 @echo ' thermometer - temperature capture tool'
35 @echo ' thermal-engine - thermal monitoring tool'
38 @echo ' turbostat - Intel CPU idle stats and freq reporting tool'
43 @echo ' x86_energy_perf_policy - Intel energy policy tool'
[all...]
/linux/Documentation/input/
H A Dmulti-touch-protocol.rst174 of the contact area and approaching tool, respectively.
222 The ABS_MT_TOOL_TYPE may be used to specify whether the touching tool is a
245 tool. This should be understood as the size of the tool itself. The
246 orientation of the contact and the approaching tool are assumed to be the
251 tool. Omit if circular [#f4]_.
300 The surface X coordinate of the center of the approaching tool. Omit if
302 tool itself.
305 The surface Y coordinate of the center of the approaching tool. Omit if the
306 device cannot distinguish between the intended touch point and the tool
310 from the position of the tool. If both positions are present, the major
[all …]
/linux/Documentation/arch/s390/
H A Dzfcpdump.rst2 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

12345678910>>...28