Lines Matching defs:tool

76 static void timerlat_free_histogram_tool(struct osnoise_tool *tool)
78 timerlat_free_histogram(tool->data);
79 timerlat_free(tool);
137 timerlat_hist_update(struct osnoise_tool *tool, int cpu,
141 struct timerlat_params *params = to_timerlat_params(tool->params);
142 struct timerlat_hist_data *data = tool->data;
187 struct osnoise_tool *tool;
190 tool = container_of(trace, struct osnoise_tool, trace);
195 timerlat_hist_update(tool, cpu, context, latency);
203 static int timerlat_hist_bpf_pull_data(struct osnoise_tool *tool)
205 struct timerlat_hist_data *data = tool->data;
286 static void timerlat_hist_header(struct osnoise_tool *tool)
288 struct timerlat_params *params = to_timerlat_params(tool->params);
289 struct timerlat_hist_data *data = tool->data;
290 struct trace_seq *s = tool->trace.seq;
297 get_duration(tool->start_time, duration, sizeof(duration));
613 timerlat_print_stats(struct osnoise_tool *tool)
615 struct timerlat_params *params = to_timerlat_params(tool->params);
616 struct timerlat_hist_data *data = tool->data;
617 struct trace_instance *trace = &tool->trace;
621 timerlat_hist_header(tool);
691 osnoise_report_missed_events(tool);
1009 * timerlat_hist_apply_config - apply the hist configs to the initialized tool
1012 timerlat_hist_apply_config(struct osnoise_tool *tool)
1014 struct timerlat_params *params = to_timerlat_params(tool->params);
1017 retval = timerlat_apply_config(tool, params);
1028 * timerlat_init_hist - initialize a timerlat hist tool with parameters
1033 struct osnoise_tool *tool;
1038 tool = osnoise_init_tool("timerlat_hist");
1039 if (!tool)
1042 tool->data = timerlat_alloc_histogram(nr_cpus, params->hist.entries,
1044 if (!tool->data)
1047 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "timerlat",
1048 timerlat_hist_handler, tool);
1050 return tool;
1053 osnoise_destroy_tool(tool);
1057 static int timerlat_hist_bpf_main_loop(struct osnoise_tool *tool)
1059 struct timerlat_params *params = to_timerlat_params(tool->params);
1074 if (tool->record)
1075 trace_instance_start(&tool->record->trace);
1076 if (tool->aa)
1077 trace_instance_start(&tool->aa->trace);
1083 retval = timerlat_hist_bpf_pull_data(tool);
1090 static int timerlat_hist_main(struct osnoise_tool *tool)
1092 struct timerlat_params *params = to_timerlat_params(tool->params);
1096 retval = hist_main_loop(tool);
1098 retval = timerlat_hist_bpf_main_loop(tool);