Lines Matching full:tool
76 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
205 struct timerlat_hist_data *data = tool->data; in timerlat_hist_bpf_pull_data()
286 static void timerlat_hist_header(struct osnoise_tool *tool) in timerlat_hist_header() argument
288 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_hist_header()
289 struct timerlat_hist_data *data = tool->data; in timerlat_hist_header()
290 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header()
297 get_duration(tool->start_time, duration, sizeof(duration)); in timerlat_hist_header()
625 timerlat_print_stats(struct osnoise_tool *tool) in timerlat_print_stats() argument
627 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_print_stats()
628 struct timerlat_hist_data *data = tool->data; in timerlat_print_stats()
629 struct trace_instance *trace = &tool->trace; in timerlat_print_stats()
633 timerlat_hist_header(tool); in timerlat_print_stats()
707 osnoise_report_missed_events(tool); in timerlat_print_stats()
1107 * timerlat_hist_apply_config - apply the hist configs to the initialized tool
1110 timerlat_hist_apply_config(struct osnoise_tool *tool) in timerlat_hist_apply_config() argument
1112 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_hist_apply_config()
1115 retval = timerlat_apply_config(tool, params); in timerlat_hist_apply_config()
1126 * timerlat_init_hist - initialize a timerlat hist tool with parameters
1131 struct osnoise_tool *tool; in timerlat_init_hist() local
1136 tool = osnoise_init_tool("timerlat_hist"); in timerlat_init_hist()
1137 if (!tool) in timerlat_init_hist()
1140 tool->data = timerlat_alloc_histogram(nr_cpus, params->hist.entries, in timerlat_init_hist()
1142 if (!tool->data) in timerlat_init_hist()
1145 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_init_hist()
1146 timerlat_hist_handler, tool); in timerlat_init_hist()
1148 return tool; in timerlat_init_hist()
1151 osnoise_destroy_tool(tool); in timerlat_init_hist()
1155 static int timerlat_hist_bpf_main_loop(struct osnoise_tool *tool) in timerlat_hist_bpf_main_loop() argument
1157 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_hist_bpf_main_loop()
1172 if (tool->record) in timerlat_hist_bpf_main_loop()
1173 trace_instance_start(&tool->record->trace); in timerlat_hist_bpf_main_loop()
1174 if (tool->aa) in timerlat_hist_bpf_main_loop()
1175 trace_instance_start(&tool->aa->trace); in timerlat_hist_bpf_main_loop()
1181 retval = timerlat_hist_bpf_pull_data(tool); in timerlat_hist_bpf_main_loop()
1188 static int timerlat_hist_main(struct osnoise_tool *tool) in timerlat_hist_main() argument
1190 struct timerlat_params *params = to_timerlat_params(tool->params); in timerlat_hist_main()
1194 retval = hist_main_loop(tool); in timerlat_hist_main()
1196 retval = timerlat_hist_bpf_main_loop(tool); in timerlat_hist_main()