Lines Matching refs:tool

134 timerlat_hist_update(struct osnoise_tool *tool, int cpu,  in timerlat_hist_update()  argument
138 struct timerlat_params *params = tool->params; in timerlat_hist_update()
139 struct timerlat_hist_data *data = tool->data; in timerlat_hist_update()
184 struct osnoise_tool *tool; in timerlat_hist_handler() local
187 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler()
192 timerlat_hist_update(tool, cpu, context, latency); in timerlat_hist_handler()
200 static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool) in timerlat_hist_bpf_pull_data() argument
202 struct timerlat_hist_data *data = tool->data; in timerlat_hist_bpf_pull_data()
283 static void timerlat_hist_header(struct osnoise_tool *tool) in timerlat_hist_header() argument
285 struct timerlat_params *params = tool->params; in timerlat_hist_header()
286 struct timerlat_hist_data *data = tool->data; in timerlat_hist_header()
287 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header()
294 get_duration(tool->start_time, duration, sizeof(duration)); in timerlat_hist_header()
622 timerlat_print_stats(struct timerlat_params *params, struct osnoise_tool *tool) in timerlat_print_stats() argument
624 struct timerlat_hist_data *data = tool->data; in timerlat_print_stats()
625 struct trace_instance *trace = &tool->trace; in timerlat_print_stats()
629 timerlat_hist_header(tool); in timerlat_print_stats()
703 osnoise_report_missed_events(tool); in timerlat_print_stats()
1101 timerlat_hist_apply_config(struct osnoise_tool *tool, struct timerlat_params *params) in timerlat_hist_apply_config() argument
1105 retval = timerlat_apply_config(tool, params); in timerlat_hist_apply_config()
1121 struct osnoise_tool *tool; in timerlat_init_hist() local
1126 tool = osnoise_init_tool("timerlat_hist"); in timerlat_init_hist()
1127 if (!tool) in timerlat_init_hist()
1130 tool->data = timerlat_alloc_histogram(nr_cpus, params->entries, params->bucket_size); in timerlat_init_hist()
1131 if (!tool->data) in timerlat_init_hist()
1134 tool->params = params; in timerlat_init_hist()
1136 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_init_hist()
1137 timerlat_hist_handler, tool); in timerlat_init_hist()
1139 return tool; in timerlat_init_hist()
1142 osnoise_destroy_tool(tool); in timerlat_init_hist()
1182 struct osnoise_tool *tool = NULL; in timerlat_hist_main() local
1194 tool = timerlat_init_hist(params); in timerlat_hist_main()
1195 if (!tool) { in timerlat_hist_main()
1200 trace = &tool->trace; in timerlat_hist_main()
1226 retval = timerlat_hist_apply_config(tool, params); in timerlat_hist_main()
1372 tool->start_time = time(NULL); in timerlat_hist_main()
1390 if (osnoise_trace_is_off(tool, record)) { in timerlat_hist_main()
1437 retval = timerlat_hist_bpf_pull_data(tool); in timerlat_hist_main()
1449 timerlat_print_stats(params, tool); in timerlat_hist_main()
1455 if (osnoise_trace_is_off(tool, record) && !stop_tracing) { in timerlat_hist_main()
1478 timerlat_free_histogram(tool->data); in timerlat_hist_main()
1481 osnoise_destroy_tool(tool); in timerlat_hist_main()