Home
last modified time | relevance | path

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

12345678910>>...14

/linux/tools/perf/util/
H A Dtool.c16 static int perf_session__process_compressed_event(const struct perf_tool *tool __maybe_unused, in perf_session__process_compressed_event()
83 static int process_event_synth_tracing_data_stub(const struct perf_tool *tool __maybe_unused, in process_event_synth_tracing_data_stub()
91 static int process_event_synth_attr_stub(const struct perf_tool *tool __maybe_unused, in process_event_synth_attr_stub()
99 static int process_event_synth_event_update_stub(const struct perf_tool *tool __maybe_unused, in process_event_synth_event_update_stub()
110 int process_event_sample_stub(const struct perf_tool *tool __maybe_unused, in process_event_sample_stub()
120 static int process_event_stub(const struct perf_tool *tool __maybe_unused, in process_event_stub()
129 static int process_finished_round_stub(const struct perf_tool *tool __maybe_unused, in process_finished_round_stub()
152 static s64 process_event_auxtrace_stub(const struct perf_tool *tool __maybe_unused, in process_event_auxtrace_stub()
162 static int process_event_op2_stub(const struct perf_tool *tool __maybe_unused, in process_event_op2_stub()
172 int process_event_thread_map_stub(const struct perf_tool *tool __maybe_unused, in process_event_thread_map_stub()
[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.c29 #include "util/tool.h"
36 struct perf_tool tool; member
131 static void output_sample_callchain_entry(const struct perf_tool *tool, in output_sample_callchain_entry() argument
134 struct convert_json *c = container_of(tool, struct convert_json, tool); in output_sample_callchain_entry()
159 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument
165 struct convert_json *c = container_of(tool, struct convert_json, tool); in process_sample_event()
238 output_sample_callchain_entry(tool, ip, ok ? &tal : NULL); in process_sample_event()
242 output_sample_callchain_entry(tool, sampl in process_sample_event()
[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,
29 typedef int (*event_op2)(const struct perf_tool *tool, struct perf_session *session,
31 typedef s64 (*event_op3)(const struct perf_tool *tool, struct perf_session *session,
33 typedef int (*event_op4)(const struct perf_tool *tool, struct perf_session *session,
36 typedef int (*event_oe)(const struct perf_tool *tool, union perf_event *event,
99 void perf_tool__init(struct perf_tool *tool, bool ordered_events);
101 bool perf_tool__compressed_is_stub(const struct perf_tool *tool);
103 int process_event_sample_stub(const struct perf_tool *tool,
[all …]
H A Dsession.c28 #include "tool.h"
47 const struct perf_tool *tool,
135 session->tool, event->file_offset, in ordered_events__deliver_event()
148 struct perf_tool *tool, in __perf_session__new()
159 session->tool = tool; in __perf_session__new()
225 if ((!data || !data->is_pipe) && tool && tool->ordering_requires_timestamps && in __perf_session__new()
226 tool->ordered_events && !evlist__sample_id_all(session->evlist)) { in __perf_session__new()
228 tool in __perf_session__new()
141 __perf_session__new(struct perf_data * data,struct perf_tool * tool,bool trace_event_repipe,struct perf_env * host_env) __perf_session__new() argument
1252 deliver_sample_value(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct sample_read_value * v,struct machine * machine,bool per_thread) deliver_sample_value() argument
1290 deliver_sample_group(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,u64 read_format,bool per_thread) deliver_sample_group() argument
1314 evlist__deliver_sample(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) evlist__deliver_sample() argument
1352 evlist__deliver_deferred_callchain(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) evlist__deliver_deferred_callchain() argument
1406 session__flush_deferred_samples(struct perf_session * session,const struct perf_tool * tool) session__flush_deferred_samples() argument
1441 machines__deliver_event(struct machines * machines,struct evlist * evlist,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool,u64 file_offset,const char * file_path) machines__deliver_event() argument
1550 perf_session__deliver_event(struct perf_session * session,union perf_event * event,const struct perf_tool * tool,u64 file_offset,const char * file_path) perf_session__deliver_event() argument
1588 const struct perf_tool *tool = session->tool; perf_session__process_user_event() local
1707 const struct perf_tool *tool = session->tool; perf_session__deliver_synth_event() local
1839 const struct perf_tool *tool = session->tool; perf_session__process_event() local
2035 const struct perf_tool *tool = session->tool; __perf_session__process_pipe_events() local
2469 const struct perf_tool *tool = session->tool; __perf_session__process_events() local
2522 const struct perf_tool *tool = session->tool; __perf_session__process_dir_events() local
[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 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 …]
/linux/tools/tracing/rtla/src/
H A Dcommon.c33 * set_signals - handles the signal to stop the tool in set_signals()
45 * unset_signals - unsets the signals to stop the tool in common_apply_config()
96 * if the option should be handled by tool-specific parsing.
165 * common_apply_config - apply common configs to the initialized tool in run_tool()
168 common_apply_config(struct osnoise_tool *tool, struct common_params *params) in run_tool()
175 retval = osnoise_set_cpus(tool->context, params->cpus ? params->cpus : "all"); in run_tool()
209 retval = osnoise_set_workload(tool->context, params->kernel_workload); in run_tool()
224 * @tool: pointer to the osnoise_tool instance containing trace contexts in run_tool()
233 common_threshold_handler(const struct osnoise_tool *tool) in run_tool()
235 actions_perform(&tool in run_tool()
44 common_apply_config(struct osnoise_tool * tool,struct common_params * params) common_apply_config() argument
102 struct osnoise_tool *tool; run_tool() local
243 top_main_loop(struct osnoise_tool * tool) top_main_loop() argument
301 hist_main_loop(struct osnoise_tool * tool) hist_main_loop() argument
[all...]
H A Dtimerlat.c25 * timerlat_apply_config - apply common configs to the initialized tool
28 timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params)
40 } else if (!tep_find_event_by_name(tool->trace.tep, "osnoise", "timerlat_sample")) { 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()
94 return common_apply_config(tool, &params->common); in timerlat_apply_config()
100 int timerlat_enable(struct osnoise_tool *tool) in timerlat_apply_config()
102 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_apply_config()
132 tool->aa = osnoise_init_tool("timerlat_aa"); in timerlat_enable()
133 if (!tool in timerlat_enable()
29 timerlat_apply_config(struct osnoise_tool * tool,struct timerlat_params * params) timerlat_apply_config() argument
108 timerlat_enable(struct osnoise_tool * tool) timerlat_enable() argument
190 timerlat_analyze(struct osnoise_tool * tool,bool stopped) timerlat_analyze() argument
213 timerlat_free(struct osnoise_tool * tool) timerlat_free() argument
[all...]
H A Dosnoise_hist.c55 static void osnoise_free_hist_tool(struct osnoise_tool *tool) in osnoise_free_histogram()
57 osnoise_free_histogram(tool->data); in osnoise_free_hist_tool() argument
97 static void osnoise_hist_update_multiple(struct osnoise_tool *tool, int cpu, in osnoise_alloc_histogram()
100 struct osnoise_params *params = to_osnoise_params(tool->params); in osnoise_hist_update_multiple() argument
101 struct osnoise_hist_data *data = tool->data; in osnoise_hist_update_multiple()
129 static void osnoise_destroy_trace_hist(struct osnoise_tool *tool)
131 struct osnoise_hist_data *data = tool->data;
133 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist()
134 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist()
140 static int osnoise_init_trace_hist(struct osnoise_tool *tool)
132 osnoise_destroy_trace_hist(struct osnoise_tool * tool) osnoise_destroy_trace_hist() argument
143 osnoise_init_trace_hist(struct osnoise_tool * tool) osnoise_init_trace_hist() argument
180 osnoise_read_trace_hist(struct osnoise_tool * tool) osnoise_read_trace_hist() argument
228 osnoise_hist_header(struct osnoise_tool * tool) osnoise_hist_header() argument
337 osnoise_print_stats(struct osnoise_tool * tool) osnoise_print_stats() argument
690 osnoise_hist_apply_config(struct osnoise_tool * tool) osnoise_hist_apply_config() argument
701 struct osnoise_tool *tool; osnoise_init_hist() local
722 osnoise_hist_enable(struct osnoise_tool * tool) osnoise_hist_enable() argument
733 osnoise_hist_main_loop(struct osnoise_tool * tool) osnoise_hist_main_loop() 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
505 function = tep_find_function(taa_ctx->tool->trace.tep, caller[i]);
726 struct trace_instance *trace = &taa_ctx->tool->trace; in timerlat_auto_analysis()
791 tep = taa_ctx->tool->trace.tep; in timerlat_aa_destroy_seqs()
916 static void timerlat_aa_unregister_events(struct osnoise_tool *tool, int dump_tasks) in timerlat_aa_unregister_events()
919 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_aa_unregister_events()
920 timerlat_aa_handler, tool); in timerlat_aa_unregister_events()
922 tracefs_event_disable(tool->trace.inst, "osnoise", NULL); in timerlat_aa_unregister_events()
924 tep_unregister_event_handler(tool in timerlat_aa_unregister_events()
896 timerlat_aa_unregister_events(struct osnoise_tool * tool,int dump_tasks) timerlat_aa_unregister_events() argument
935 timerlat_aa_register_events(struct osnoise_tool * tool,int dump_tasks) timerlat_aa_register_events() argument
1023 timerlat_aa_init(struct osnoise_tool * tool,int dump_tasks) timerlat_aa_init() argument
[all...]
H A Dcommon.h120 * osnoise_tool - osnoise based tool definition.
141 int (*apply_config)(struct osnoise_tool *tool);
142 int (*enable)(struct osnoise_tool *tool);
143 int (*main)(struct osnoise_tool *tool);
144 void (*print_stats)(struct osnoise_tool *tool);
145 void (*analyze)(struct osnoise_tool *tool, bool stopped);
146 void (*free)(struct osnoise_tool *tool);
165 common_threshold_handler(const struct osnoise_tool *tool);
175 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record);
182 int common_apply_config(struct osnoise_tool *tool, struc
[all...]
H A Dosnoise_top.c45 static void osnoise_free_top_tool(struct osnoise_tool *tool)
47 osnoise_free_top(tool->data); in osnoise_free_top_tool()
81 struct osnoise_tool *tool; in osnoise_top_handler()
87 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler()
89 data = tool->data; in osnoise_top_handler()
123 * osnoise_top_header - print the header of the tool output in osnoise_top_handler()
186 static void osnoise_top_print(struct osnoise_tool *tool, int cpu)
188 struct osnoise_params *params = to_osnoise_params(tool->params);
189 struct trace_seq *s = tool->trace.seq; in osnoise_top_print() argument
195 data = tool in osnoise_top_print()
46 osnoise_free_top_tool(struct osnoise_tool * tool) osnoise_free_top_tool() argument
84 struct osnoise_tool *tool; osnoise_top_handler() local
518 osnoise_top_apply_config(struct osnoise_tool * tool) osnoise_top_apply_config() argument
549 struct osnoise_tool *tool; osnoise_init_top() local
[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()
136 timerlat_hist_update(struct osnoise_tool *tool, int cpu,
140 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_hist_update()
141 struct timerlat_hist_data *data = tool->data; in timerlat_hist_update()
186 struct osnoise_tool *tool; in timerlat_hist_handler()
189 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler()
194 timerlat_hist_update(tool, cpu, context, latency); in timerlat_hist_handler()
202 static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
137 timerlat_hist_update(struct osnoise_tool * tool,int cpu,unsigned long long context,unsigned long long latency) timerlat_hist_update() argument
187 struct osnoise_tool *tool; timerlat_hist_handler() local
203 timerlat_hist_bpf_pull_data(struct osnoise_tool * tool) timerlat_hist_bpf_pull_data() argument
286 timerlat_hist_header(struct osnoise_tool * tool) timerlat_hist_header() argument
613 timerlat_print_stats(struct osnoise_tool * tool) timerlat_print_stats() argument
1058 timerlat_hist_apply_config(struct osnoise_tool * tool) timerlat_hist_apply_config() argument
1079 struct osnoise_tool *tool; timerlat_init_hist() local
1103 timerlat_hist_bpf_main_loop(struct osnoise_tool * tool) timerlat_hist_bpf_main_loop() argument
1136 timerlat_hist_main(struct osnoise_tool * tool) timerlat_hist_main() argument
[all...]
H A Dosnoise.c1010 * osnoise_init_tool - init an osnoise tool
1013 * creates a new trace instance for the tool.
1060 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record) in osnoise_init_trace_tool()
1063 * The tool instance is always present, it is the one used to collect in osnoise_init_trace_tool()
1066 if (!tracefs_trace_is_on(tool->trace.inst)) in osnoise_init_trace_tool()
1081 osnoise_report_missed_events(struct osnoise_tool *tool) in osnoise_trace_is_off()
1085 if (tool->trace.missed_events == UINT64_MAX)
1087 else if (tool->trace.missed_events > 0) {
1088 total_events = tool->trace.processed_events + tool
1070 osnoise_trace_is_off(struct osnoise_tool * tool,struct osnoise_tool * record) osnoise_trace_is_off() argument
1091 osnoise_report_missed_events(struct osnoise_tool * tool) osnoise_report_missed_events() argument
1110 osnoise_apply_config(struct osnoise_tool * tool,struct osnoise_params * params) osnoise_apply_config() argument
1155 osnoise_enable(struct osnoise_tool * tool) osnoise_enable() argument
[all...]
H A Dtimerlat_top.c56 static void timerlat_free_top_tool(struct osnoise_tool *tool)
58 timerlat_free_top(tool->data); in timerlat_free_top_tool()
59 timerlat_free(tool); in timerlat_free_top_tool()
103 timerlat_top_update_sum(struct osnoise_tool *tool, int cpu, struct timerlat_top_cpu *sum) in timerlat_top_reset_sum()
105 struct timerlat_top_data *data = tool->data;
128 timerlat_top_update(struct osnoise_tool *tool, int cpu,
132 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_top_update()
133 struct timerlat_top_data *data = tool->data; in timerlat_top_update()
187 static int timerlat_top_bpf_pull_data(struct osnoise_tool *tool)
189 struct timerlat_top_data *data = tool
57 timerlat_free_top_tool(struct osnoise_tool * tool) timerlat_free_top_tool() argument
106 timerlat_top_update_sum(struct osnoise_tool * tool,int cpu,struct timerlat_top_cpu * sum) timerlat_top_update_sum() argument
131 timerlat_top_update(struct osnoise_tool * tool,int cpu,unsigned long long thread,unsigned long long latency) timerlat_top_update() argument
190 timerlat_top_bpf_pull_data(struct osnoise_tool * tool) timerlat_top_bpf_pull_data() argument
856 timerlat_top_bpf_main_loop(struct osnoise_tool * tool) timerlat_top_bpf_main_loop() argument
909 timerlat_top_main_loop(struct osnoise_tool * tool) timerlat_top_main_loop() argument
[all...]
H A Dtimerlat.h36 int timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params);
38 int timerlat_enable(struct osnoise_tool *tool);
39 void timerlat_analyze(struct osnoise_tool *tool, bool stopped);
40 void timerlat_free(struct osnoise_tool *tool);
/linux/tools/perf/
H A Dbuiltin-inject.c18 #include "util/tool.h"
81 struct perf_tool tool; member
115 struct perf_tool tool; member
146 static int tool__inject_build_id(const struct perf_tool *tool,
153 static int tool__inject_mmap2_build_id(const struct perf_tool *tool,
176 static int perf_event__repipe_synth(const struct perf_tool *tool, in perf_event__repipe_synth() argument
180 struct perf_inject *inject = container_of(tool, struct perf_inject, in perf_event__repipe_synth()
181 tool); in perf_event__repipe_synth()
186 static int perf_event__repipe_oe_synth(const struct perf_tool *tool, in perf_event__repipe_oe_synth() argument
190 return perf_event__repipe_synth(tool, even in perf_event__repipe_oe_synth()
202 perf_event__repipe_op2_synth(const struct perf_tool * tool,struct perf_session * session __maybe_unused,union perf_event * event) perf_event__repipe_op2_synth() argument
209 perf_event__repipe_op4_synth(const struct perf_tool * tool,struct perf_session * session __maybe_unused,union perf_event * event,u64 data __maybe_unused,const char * str __maybe_unused) perf_event__repipe_op4_synth() argument
218 perf_event__repipe_attr(const struct perf_tool * tool,union perf_event * event,struct evlist ** pevlist) perf_event__repipe_attr() argument
237 perf_event__repipe_event_update(const struct perf_tool * tool,union perf_event * event,struct evlist ** pevlist __maybe_unused) perf_event__repipe_event_update() argument
263 perf_event__repipe_auxtrace(const struct perf_tool * tool,struct perf_session * session,union perf_event * event) perf_event__repipe_auxtrace() argument
300 perf_event__repipe(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine __maybe_unused) perf_event__repipe() argument
316 perf_event__drop_aux(const struct perf_tool * tool,union perf_event * event __maybe_unused,struct perf_sample * sample,struct machine * machine __maybe_unused) perf_event__drop_aux() argument
363 perf_event__repipe_sample(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) perf_event__repipe_sample() argument
388 perf_event__convert_sample_callchain(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) perf_event__convert_sample_callchain() argument
539 perf_event__repipe_common_mmap(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,__u32 pid,__u32 tid,__u64 start,__u64 len,__u64 pgoff,__u32 flags,__u32 prot,const char * filename,const struct dso_id * dso_id,int (* perf_event_process)(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine)) perf_event__repipe_common_mmap() argument
548 perf_event__repipe_common_mmap(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,__u32 pid,__u32 tid,__u64 start,__u64 len,__u64 pgoff,__u32 flags,__u32 prot,const char * filename,const struct dso_id * dso_id,int (* perf_event_process)(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine)) perf_event__repipe_common_mmap() argument
644 perf_event__repipe_mmap(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__repipe_mmap() argument
658 perf_event__repipe_mmap2(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__repipe_mmap2() argument
685 perf_event__repipe_fork(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__repipe_fork() argument
698 perf_event__repipe_comm(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__repipe_comm() argument
711 perf_event__repipe_namespaces(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__repipe_namespaces() argument
723 perf_event__repipe_exit(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) perf_event__repipe_exit() argument
737 perf_event__repipe_tracing_data(const struct perf_tool * tool,struct perf_session * session,union perf_event * event) perf_event__repipe_tracing_data() argument
837 tool__inject_build_id(const struct perf_tool * tool,struct perf_sample * sample,struct machine * machine,const struct evsel * evsel,__u16 misc,const char * filename,struct dso * dso,u32 flags) tool__inject_build_id() argument
874 tool__inject_mmap2_build_id(const struct perf_tool * tool,struct perf_sample * sample,struct machine * machine,const struct evsel * evsel,__u16 misc,__u32 pid,__u32 tid,__u64 start,__u64 len,__u64 pgoff,struct dso * dso,__u32 prot,__u32 flags,const char * filename) tool__inject_mmap2_build_id() argument
914 mark_dso_hit(const struct perf_inject * inject,const struct perf_tool * tool,struct perf_sample * sample,struct machine * machine,const struct evsel * mmap_evsel,struct map * map,bool sample_in_dso) mark_dso_hit() argument
976 const struct perf_tool *tool; global() member
991 perf_event__inject_buildid(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel __maybe_unused,struct machine * machine) perf_event__inject_buildid() argument
1034 perf_inject__sched_process_exit(const struct perf_tool * tool,union perf_event * event __maybe_unused,struct perf_sample * sample,struct evsel * evsel __maybe_unused,struct machine * machine __maybe_unused) perf_inject__sched_process_exit() argument
1054 perf_inject__sched_switch(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) perf_inject__sched_switch() argument
1079 perf_inject__sched_stat(const struct perf_tool * tool,union perf_event * event __maybe_unused,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) perf_inject__sched_stat() argument
1124 guest_session__repipe(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine __maybe_unused) guest_session__repipe() argument
1290 process_attr(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine __maybe_unused) process_attr() argument
1418 process_build_id(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine __maybe_unused) process_build_id() argument
1478 guest_session__ksymbol_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine __maybe_unused) guest_session__ksymbol_event() argument
1842 host__repipe(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) host__repipe() argument
1857 host__finished_init(const struct perf_tool * tool,struct perf_session * session,union perf_event * event) host__finished_init() argument
1916 host__finished_round(const struct perf_tool * tool,union perf_event * event,struct ordered_events * oe) host__finished_round() argument
1934 host__context_switch(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) host__context_switch() argument
[all...]
H A Dbuiltin-mem.c33 struct perf_tool tool; member
181 dump_raw_samples(const struct perf_tool *tool, in dump_raw_samples() argument
186 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples()
255 static int process_sample_event(const struct perf_tool *tool, in process_sample_event() argument
261 return dump_raw_samples(tool, event, sample, machine); in process_sample_event()
280 perf_tool__init(&mem->tool, /*ordered_events=*/true); in report_raw_events()
281 mem->tool.sample = process_sample_event; in report_raw_events()
282 mem->tool.mmap = perf_event__process_mmap; in report_raw_events()
283 mem->tool.mmap2 = perf_event__process_mmap2; in report_raw_events()
284 mem->tool.comm = perf_event__process_comm; in report_raw_events()
[all …]
H A Dbuiltin-report.c37 #include "util/tool.h"
77 struct perf_tool tool; member
243 static int process_feature_event(const struct perf_tool *tool, in process_feature_event() argument
247 struct report *rep = container_of(tool, struct report, tool); in process_feature_event()
248 int ret = perf_event__process_feature(tool, session, event); in process_feature_event()
264 static int process_sample_event(const struct perf_tool *tool, in process_feature_event()
270 struct report *rep = container_of(tool, struct report, tool); in process_sample_event()
344 static int process_read_event(const struct perf_tool *tool, in process_sample_event()
269 process_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_sample_event() argument
349 process_read_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample __maybe_unused,struct evsel * evsel,struct machine * machine __maybe_unused) process_read_event() argument
796 count_lost_samples_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine __maybe_unused) count_lost_samples_event() argument
[all...]
H A Dbuiltin-evlist.c22 static int process_header_feature(const struct perf_tool *tool __maybe_unused, in process_header_feature()
39 struct perf_tool tool; in __cmd_evlist() local
42 perf_tool__init(&tool, /*ordered_events=*/false); in __cmd_evlist()
44 tool.attr = perf_event__process_attr; in __cmd_evlist()
45 tool.feature = process_header_feature; in __cmd_evlist()
46 session = perf_session__new(&data, &tool); in __cmd_evlist()
H A Dbuiltin-script.c12 #include "util/tool.h"
145 struct perf_tool tool; member
2645 static int process_sample_event(const struct perf_tool *tool, in process_sample_event()
2651 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event()
2729 static int process_deferred_sample_event(const struct perf_tool *tool, in process_deferred_sample_event()
2735 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_deferred_sample_event()
2820 static int process_attr(const struct perf_tool *tool, union perf_event *event, in process_attr()
2823 struct perf_script *scr = container_of(tool, struc in process_attr()
2640 process_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_sample_event() argument
2724 process_deferred_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_deferred_sample_event() argument
2815 process_attr(const struct perf_tool * tool,union perf_event * event,struct evlist ** pevlist) process_attr() argument
2883 print_event_with_time(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,pid_t pid,pid_t tid,u64 timestamp) print_event_with_time() argument
2919 print_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,pid_t pid,pid_t tid) print_event() argument
2926 process_comm_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_comm_event() argument
2938 process_namespaces_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_namespaces_event() argument
2950 process_cgroup_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_cgroup_event() argument
2962 process_fork_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_fork_event() argument
2974 process_exit_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_exit_event() argument
2987 process_mmap_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_mmap_event() argument
2999 process_mmap2_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_mmap2_event() argument
3011 process_switch_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_switch_event() argument
3031 process_auxtrace_error(const struct perf_tool * tool,struct perf_session * session,union perf_event * event) process_auxtrace_error() argument
3044 process_lost_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_lost_event() argument
3096 process_text_poke_events(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine) process_text_poke_events() argument
3899 process_thread_map_event(const struct perf_tool * tool,struct perf_session * session __maybe_unused,union perf_event * event) process_thread_map_event() argument
3921 process_cpu_map_event(const struct perf_tool * tool,struct perf_session * session __maybe_unused,union perf_event * event) process_cpu_map_event() argument
3951 perf_script__process_auxtrace_info(const struct perf_tool * tool,struct perf_session * session,union perf_event * event) perf_script__process_auxtrace_info() argument
[all...]
H A Dbuiltin-annotate.c33 #include "util/tool.h"
49 struct perf_tool tool;
283 static int process_sample_event(const struct perf_tool *tool,
289 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event()
852 perf_tool__init(&annotate.tool, /*ordered_events=*/true); in cmd_annotate()
853 annotate.tool.sample = process_sample_event; in cmd_annotate()
854 annotate.tool.mmap = perf_event__process_mmap; in cmd_annotate()
855 annotate.tool.mmap2 = perf_event__process_mmap2; in cmd_annotate()
856 annotate.tool in cmd_annotate()
50 struct perf_tool tool; global() member
284 process_sample_event(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) process_sample_event() argument
[all...]
/linux/tools/perf/tests/
H A Devent_update.c12 #include "tool.h"
16 static int process_event_unit(const struct perf_tool *tool __maybe_unused, in process_event_unit()
29 static int process_event_scale(const struct perf_tool *tool __maybe_unused, in process_event_scale()
43 struct perf_tool tool;
47 static int process_event_name(const struct perf_tool *tool, in process_event_name()
52 struct event_name *tmp = container_of(tool, struct event_name, tool); in process_event_name()
61 static int process_event_cpus(const struct perf_tool *tool __maybe_unused, in process_event_cpus()
108 perf_tool__init(&tmp.tool, /*ordered_events=*/false); in test__event_update()
112 !perf_event__synthesize_event_update_name(&tmp.tool, evse in test__event_update()
42 struct perf_tool tool; global() member
46 process_event_name(const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample __maybe_unused,struct machine * machine __maybe_unused) process_event_name() argument
[all...]
/linux/tools/perf/arch/x86/util/
H 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()

12345678910>>...14