Lines Matching refs:tool

168 timerlat_hist_update(struct osnoise_tool *tool, int cpu,  in timerlat_hist_update()  argument
172 struct timerlat_hist_params *params = tool->params; in timerlat_hist_update()
173 struct timerlat_hist_data *data = tool->data; in timerlat_hist_update()
218 struct osnoise_tool *tool; in timerlat_hist_handler() local
221 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler()
226 timerlat_hist_update(tool, cpu, context, latency); in timerlat_hist_handler()
234 static void timerlat_hist_header(struct osnoise_tool *tool) in timerlat_hist_header() argument
236 struct timerlat_hist_params *params = tool->params; in timerlat_hist_header()
237 struct timerlat_hist_data *data = tool->data; in timerlat_hist_header()
238 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header()
245 get_duration(tool->start_time, duration, sizeof(duration)); in timerlat_hist_header()
431 timerlat_print_stats(struct timerlat_hist_params *params, struct osnoise_tool *tool) in timerlat_print_stats() argument
433 struct timerlat_hist_data *data = tool->data; in timerlat_print_stats()
434 struct trace_instance *trace = &tool->trace; in timerlat_print_stats()
438 timerlat_hist_header(tool); in timerlat_print_stats()
835 timerlat_hist_apply_config(struct osnoise_tool *tool, struct timerlat_hist_params *params) in timerlat_hist_apply_config() argument
843 retval = osnoise_set_cpus(tool->context, params->cpus); in timerlat_hist_apply_config()
854 retval = osnoise_set_stop_us(tool->context, params->stop_us); in timerlat_hist_apply_config()
862 retval = osnoise_set_stop_total_us(tool->context, params->stop_total_us); in timerlat_hist_apply_config()
870 retval = osnoise_set_timerlat_period_us(tool->context, params->timerlat_period_us); in timerlat_hist_apply_config()
878 retval = osnoise_set_print_stack(tool->context, params->print_stack); in timerlat_hist_apply_config()
904 retval = osnoise_set_workload(tool->context, 0); in timerlat_hist_apply_config()
923 struct osnoise_tool *tool; in timerlat_init_hist() local
928 tool = osnoise_init_tool("timerlat_hist"); in timerlat_init_hist()
929 if (!tool) in timerlat_init_hist()
932 tool->data = timerlat_alloc_histogram(nr_cpus, params->entries, params->bucket_size); in timerlat_init_hist()
933 if (!tool->data) in timerlat_init_hist()
936 tool->params = params; in timerlat_init_hist()
938 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_init_hist()
939 timerlat_hist_handler, tool); in timerlat_init_hist()
941 return tool; in timerlat_init_hist()
944 osnoise_destroy_tool(tool); in timerlat_init_hist()
972 struct osnoise_tool *tool = NULL; in timerlat_hist_main() local
984 tool = timerlat_init_hist(params); in timerlat_hist_main()
985 if (!tool) { in timerlat_hist_main()
990 retval = timerlat_hist_apply_config(tool, params); in timerlat_hist_main()
996 trace = &tool->trace; in timerlat_hist_main()
1073 tool->start_time = time(NULL); in timerlat_hist_main()
1109 if (trace_is_off(&tool->trace, &record->trace)) in timerlat_hist_main()
1125 timerlat_print_stats(params, tool); in timerlat_hist_main()
1129 if (trace_is_off(&tool->trace, &record->trace)) { in timerlat_hist_main()
1148 timerlat_free_histogram(tool->data); in timerlat_hist_main()
1151 osnoise_destroy_tool(tool); in timerlat_hist_main()