Home
last modified time | relevance | path

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

12345678910>>...14

/linux/tools/perf/util/
H A Dtool.c8 #include "tool.h"
16 static int perf_session__process_compressed_event(const struct perf_tool *tool __maybe_unused, in perf_session__process_compressed_event()
132 static int process_event_synth_tracing_data_stub(const struct perf_tool *tool __maybe_unused, in process_finished_round_stub()
140 static int process_event_synth_attr_stub(const struct perf_tool *tool __maybe_unused, in skipn()
148 static int process_event_synth_event_update_stub(const struct perf_tool *tool __maybe_unused, in skipn()
159 int process_event_sample_stub(const struct perf_tool *tool __maybe_unused, in process_event_auxtrace_stub()
168 static int process_event_stub(const struct perf_tool *tool __maybe_unused, in process_event_op2_stub()
177 static int process_finished_round_stub(const struct perf_tool *tool __maybe_unused, in process_event_thread_map_stub()
200 static s64 process_event_auxtrace_stub(const struct perf_tool *tool __maybe_unused, in process_event_stat_config_stub()
210 static int process_event_op2_stub(const struct perf_tool *tool __maybe_unuse in process_stat_stub()
279 perf_tool__init(struct perf_tool * tool,bool ordered_events) perf_tool__init() argument
342 perf_tool__compressed_is_stub(const struct perf_tool * tool) perf_tool__compressed_is_stub() argument
462 delegate_tool__init(struct delegate_tool * tool,struct perf_tool * delegate) delegate_tool__init() argument
[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__handler_t process);
48 int perf_event__synthesize_attr(const struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 *id, perf_event__handler_t process);
49 int perf_event__synthesize_build_id(const struct perf_tool *tool,
56 int perf_event__synthesize_mmap2_build_id(const struct perf_tool *tool,
66 int perf_event__synthesize_cpu_map(const struct perf_tool *tool, const struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine);
67 int perf_event__synthesize_event_update_cpus(const struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process);
68 int perf_event__synthesize_event_update_name(const struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process);
69 int perf_event__synthesize_event_update_scale(const struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process);
70 int perf_event__synthesize_event_update_unit(const struct perf_tool *tool, struc
[all...]
H A Ddata-convert-json.c30 #include "util/tool.h"
37 struct perf_tool tool;
132 static void output_sample_callchain_entry(const struct perf_tool *tool, in output_sample_callchain_entry()
135 struct convert_json *c = container_of(tool, struct convert_json, tool); in output_sample_callchain_entry()
160 static int process_sample_event(const struct perf_tool *tool, in process_sample_event()
165 struct convert_json *c = container_of(tool, struct convert_json, tool); in process_sample_event()
239 output_sample_callchain_entry(tool, ip, ok ? &tal : NULL); in process_sample_event()
243 output_sample_callchain_entry(tool, sampl in process_sample_event()
36 struct perf_tool tool; global() member
131 output_sample_callchain_entry(const struct perf_tool * tool,u64 ip,struct addr_location * al) output_sample_callchain_entry() argument
159 process_sample_event(const struct perf_tool * tool,union perf_event * event __maybe_unused,struct perf_sample * sample,struct evsel * evsel __maybe_unused,struct machine * machine) process_sample_event() argument
[all...]
H A Dtool.h17 typedef int (*event_sample)(const struct perf_tool *tool, union perf_event *event,
21 typedef int (*event_op)(const struct perf_tool *tool, union perf_event *event,
24 typedef int (*event_attr_op)(const struct perf_tool *tool,
28 typedef int (*event_op2)(const struct perf_tool *tool, struct perf_session *session,
30 typedef s64 (*event_op3)(const struct perf_tool *tool, struct perf_session *session,
32 typedef int (*event_op4)(const struct perf_tool *tool, struct perf_session *session,
35 typedef int (*event_oe)(const struct perf_tool *tool, union perf_event *event,
98 void perf_tool__init(struct perf_tool *tool, bool ordered_events);
100 bool perf_tool__compressed_is_stub(const struct perf_tool *tool);
102 int process_event_sample_stub(const struct perf_tool *tool,
111 struct perf_tool tool; global() member
[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()
226 if ((!data || !data->is_pipe) && tool && tool->ordering_requires_timestamps && in __perf_session__new()
227 tool->ordered_events && !evlist__sample_id_all(session->evlist)) { in __perf_session__new()
229 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, even in perf_event__synthesize_fork()
428 perf_event__synthesize_mmap_events(const struct perf_tool * tool,union perf_event * event,pid_t pid,pid_t tgid,perf_event__handler_t process,struct machine * machine,bool mmap_data) perf_event__synthesize_mmap_events() argument
552 perf_event__synthesize_cgroup(const struct perf_tool * tool,union perf_event * event,char * path,size_t mount_len,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_cgroup() argument
592 perf_event__walk_cgroup_tree(const struct perf_tool * tool,union perf_event * event,char * path,size_t mount_len,perf_event__handler_t process,struct machine * machine) perf_event__walk_cgroup_tree() argument
640 perf_event__synthesize_cgroups(const struct perf_tool * tool,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_cgroups() argument
676 const struct perf_tool *tool; global() member
732 perf_event__synthesize_modules(const struct perf_tool * tool,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_modules() argument
778 __event__synthesize_thread(union perf_event * comm_event,union perf_event * mmap_event,union perf_event * fork_event,union perf_event * namespaces_event,pid_t pid,int full,perf_event__handler_t process,const struct perf_tool * tool,struct machine * machine,bool needs_mmap,bool mmap_data) __event__synthesize_thread() argument
868 perf_event__synthesize_thread_map(const struct perf_tool * tool,struct perf_thread_map * threads,perf_event__handler_t process,struct machine * machine,bool needs_mmap,bool mmap_data) perf_event__synthesize_thread_map() argument
945 __perf_event__synthesize_threads(const struct perf_tool * tool,perf_event__handler_t process,struct machine * machine,bool needs_mmap,bool mmap_data,struct dirent ** dirent,int start,int num) __perf_event__synthesize_threads() argument
1009 const struct perf_tool *tool; global() member
1031 perf_event__synthesize_threads(const struct perf_tool * tool,perf_event__handler_t process,struct machine * machine,bool needs_mmap,bool mmap_data,unsigned int nr_threads_synthesize) perf_event__synthesize_threads() argument
1127 __perf_event__synthesize_kernel_mmap(const struct perf_tool * tool,perf_event__handler_t process,struct machine * machine) __perf_event__synthesize_kernel_mmap() argument
1199 perf_event__synthesize_kernel_mmap(const struct perf_tool * tool,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_kernel_mmap() argument
1212 perf_event__synthesize_thread_map2(const struct perf_tool * tool,struct perf_thread_map * threads,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_thread_map2() argument
1362 perf_event__synthesize_cpu_map(const struct perf_tool * tool,const struct perf_cpu_map * map,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_cpu_map() argument
1380 perf_event__synthesize_stat_config(const struct perf_tool * tool,struct perf_stat_config * config,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_stat_config() argument
1419 perf_event__synthesize_stat(const struct perf_tool * tool,struct perf_cpu cpu,u32 thread,u64 id,struct perf_counts_values * count,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_stat() argument
1441 perf_event__synthesize_stat_round(const struct perf_tool * tool,u64 evtime,u64 type,perf_event__handler_t process,struct machine * machine) perf_event__synthesize_stat_round() argument
1852 __perf_event__synthesize_id_index(const struct perf_tool * tool,perf_event__handler_t process,struct evlist * evlist,struct machine * machine,size_t from) __perf_event__synthesize_id_index() argument
1944 perf_event__synthesize_id_index(const struct perf_tool * tool,perf_event__handler_t process,struct evlist * evlist,struct machine * machine) perf_event__synthesize_id_index() argument
1950 __machine__synthesize_threads(struct machine * machine,const struct perf_tool * tool,struct target * target,struct perf_thread_map * threads,perf_event__handler_t process,bool needs_mmap,bool data_mmap,unsigned int nr_threads_synthesize) __machine__synthesize_threads() argument
2011 perf_event__synthesize_event_update_unit(const struct perf_tool * tool,struct evsel * evsel,perf_event__handler_t process) perf_event__synthesize_event_update_unit() argument
2028 perf_event__synthesize_event_update_scale(const struct perf_tool * tool,struct evsel * evsel,perf_event__handler_t process) perf_event__synthesize_event_update_scale() argument
2045 perf_event__synthesize_event_update_name(const struct perf_tool * tool,struct evsel * evsel,perf_event__handler_t process) perf_event__synthesize_event_update_name() argument
2062 perf_event__synthesize_event_update_cpus(const struct perf_tool * tool,struct evsel * evsel,perf_event__handler_t process) perf_event__synthesize_event_update_cpus() argument
2085 perf_event__synthesize_attrs(const struct perf_tool * tool,struct evlist * evlist,perf_event__handler_t process) perf_event__synthesize_attrs() argument
2113 perf_event__synthesize_extra_attr(const struct perf_tool * tool,struct evlist * evsel_list,perf_event__handler_t process,bool is_pipe) perf_event__synthesize_extra_attr() argument
2169 perf_event__synthesize_attr(const struct perf_tool * tool,struct perf_event_attr * attr,u32 ids,u64 * id,perf_event__handler_t process) perf_event__synthesize_attr() argument
2203 perf_event__synthesize_tracing_data(const struct perf_tool * tool,int fd,struct evlist * evlist,perf_event__handler_t process) perf_event__synthesize_tracing_data() argument
2251 perf_event__synthesize_build_id(const struct perf_tool * tool,struct perf_sample * sample,struct machine * machine,perf_event__handler_t process,const struct evsel * evsel,__u16 misc,const struct build_id * bid,const char * filename) perf_event__synthesize_build_id() argument
2298 perf_event__synthesize_mmap2_build_id(const struct perf_tool * tool,struct perf_sample * sample,struct machine * machine,perf_event__handler_t process,const struct evsel * evsel,__u16 misc,__u32 pid,__u32 tid,__u64 start,__u64 len,__u64 pgoff,const struct build_id * bid,__u32 prot,__u32 flags,const char * filename) perf_event__synthesize_mmap2_build_id() argument
2356 perf_event__synthesize_stat_events(struct perf_stat_config * config,const struct perf_tool * tool,struct evlist * evlist,perf_event__handler_t process,bool attrs) perf_event__synthesize_stat_events() argument
2393 perf_event__synthesize_features(const struct perf_tool * tool,struct perf_session * session,struct evlist * evlist,perf_event__handler_t process) perf_event__synthesize_features() argument
2456 perf_event__synthesize_for_pipe(const struct perf_tool * tool,struct perf_session * session,struct perf_data * data,perf_event__handler_t process) perf_event__synthesize_for_pipe() argument
2654 perf_event__synthesize_schedstat(const struct perf_tool * tool,perf_event__handler_t process,struct perf_cpu_map * user_requested_cpus) perf_event__synthesize_schedstat() argument
[all...]
/linux/tools/tracing/rtla/src/
H A Dcommon.c36 * set_signals - handles the signal to stop the tool in set_signals()
48 * unset_signals - unsets the signals to stop the tool in common_apply_config()
60 * common_apply_config - apply common configs to the initialized tool in common_apply_config()
63 common_apply_config(struct osnoise_tool *tool, struct common_params *params) in common_apply_config()
70 retval = osnoise_set_cpus(tool->context, params->cpus ? params->cpus : "all"); in common_apply_config()
104 retval = osnoise_set_workload(tool->context, params->kernel_workload); in run_tool()
119 * @tool: pointer to the osnoise_tool instance containing trace contexts in run_tool()
128 common_threshold_handler(const struct osnoise_tool *tool) in run_tool()
130 actions_perform(&tool->params->threshold_actions); in run_tool()
132 if (!should_continue_tracing(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.c27 * timerlat_apply_config - apply common configs to the initialized tool
30 timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params) in timerlat_apply_config()
42 } else if (!tep_find_event_by_name(tool->trace.tep, "osnoise", "timerlat_sample")) { in timerlat_apply_config()
64 retval = osnoise_set_timerlat_period_us(tool->context, in timerlat_apply_config()
74 retval = osnoise_set_print_stack(tool->context, params->print_stack); in timerlat_apply_config()
80 retval = osnoise_set_timerlat_align(tool->context, params->timerlat_align); in timerlat_apply_config()
91 retval = osnoise_set_timerlat_align_us(tool->context, params->timerlat_align_us); in timerlat_apply_config()
114 return common_apply_config(tool, &params->common); in timerlat_enable()
120 int timerlat_enable(struct osnoise_tool *tool) in timerlat_enable()
122 struct timerlat_params *params = to_timerlat_params(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.h126 * osnoise_tool - osnoise based tool definition.
147 int (*apply_config)(struct osnoise_tool *tool);
148 int (*enable)(struct osnoise_tool *tool);
149 int (*main)(struct osnoise_tool *tool);
150 void (*print_stats)(struct osnoise_tool *tool);
151 void (*analyze)(struct osnoise_tool *tool, bool stopped);
152 void (*free)(struct osnoise_tool *tool);
171 common_threshold_handler(const struct osnoise_tool *tool);
181 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record);
186 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.c1161 * osnoise_init_tool - init an osnoise tool in osnoise_enable()
1164 * creates a new trace instance for the tool. in osnoise_enable()
1211 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record) in osnoise_usage()
1214 * The tool instance is always present, it is the one used to collect in osnoise_usage()
1217 if (!tracefs_trace_is_on(tool->trace.inst)) in osnoise_main()
1232 osnoise_report_missed_events(struct osnoise_tool *tool) in osnoise_main()
1236 if (tool->trace.missed_events == UINT64_MAX) in osnoise_main()
1238 else if (tool->trace.missed_events > 0) { in osnoise_main()
1239 total_events = tool->trace.processed_events + tool in osnoise_main()
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.h40 int timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params);
42 int timerlat_enable(struct osnoise_tool *tool);
43 void timerlat_analyze(struct osnoise_tool *tool, bool stopped);
44 void timerlat_free(struct osnoise_tool *tool);
/linux/tools/perf/
H A Dbuiltin-inject.c19 #include "util/tool.h"
84 struct perf_tool tool;
118 struct perf_tool tool;
150 static int tool__inject_build_id(const struct perf_tool *tool,
156 static int tool__inject_mmap2_build_id(const struct perf_tool *tool,
178 static int perf_event__repipe_synth(const struct perf_tool *tool, in perf_event__repipe_synth()
182 struct perf_inject *inject = container_of(tool, struct perf_inject, in perf_event__repipe_synth()
183 tool); in perf_event__repipe_synth()
188 static int perf_event__repipe_oe_synth(const struct perf_tool *tool, in perf_event__repipe_oe_synth()
192 return perf_event__repipe_synth(tool, even in perf_event__repipe_oe_synth()
81 struct perf_tool tool; global() member
115 struct perf_tool tool; global() member
176 perf_event__repipe_synth(const struct perf_tool * tool,union perf_event * event) perf_event__repipe_synth() argument
186 perf_event__repipe_oe_synth(const struct perf_tool * tool,union perf_event * event,struct ordered_events * oe __maybe_unused) perf_event__repipe_oe_synth() argument
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.c13 #include "util/tool.h"
33 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
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 in report_raw_events()
[all...]
H A Dbuiltin-report.c38 #include "util/tool.h"
79 struct perf_tool tool;
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()
269 struct report *rep = container_of(tool, struct report, tool); in process_sample_event() argument
345 static int process_read_event(const struct perf_tool *tool, in process_sample_event()
77 struct perf_tool tool; global() member
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.c71 #include "util/tool.h"
149 struct perf_tool tool;
2654 static int process_sample_event(const struct perf_tool *tool, in process_sample_event()
2659 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event()
2739 static int process_deferred_sample_event(const struct perf_tool *tool, in process_deferred_sample_event()
2744 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_deferred_sample_event()
2831 static int process_attr(const struct perf_tool *tool, union perf_event *event, in process_attr()
2834 struct perf_script *scr = container_of(tool, struc in process_attr()
145 struct perf_tool tool; global() member
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;
280 static int process_sample_event(const struct perf_tool *tool, in evsel__add_sample()
285 struct perf_annotate *ann = container_of(tool, struct perf_annotate, tool); in process_sample_event()
854 perf_tool__init(&annotate.tool, /*ordered_events=*/true); in cmd_annotate()
855 annotate.tool.sample = process_sample_event; in cmd_annotate()
856 annotate.tool.mmap = perf_event__process_mmap; in cmd_annotate()
857 annotate.tool.mmap2 = perf_event__process_mmap2; in cmd_annotate()
858 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