Lines Matching defs:tool
25 * timerlat_apply_config - apply common configs to the initialized tool
28 timerlat_apply_config(struct osnoise_tool *tool, struct timerlat_params *params)
39 } else if (!tep_find_event_by_name(tool->trace.tep, "osnoise", "timerlat_sample")) {
61 retval = osnoise_set_timerlat_period_us(tool->context,
71 retval = osnoise_set_print_stack(tool->context, params->print_stack);
93 return common_apply_config(tool, ¶ms->common);
99 int timerlat_enable(struct osnoise_tool *tool)
101 struct timerlat_params *params = to_timerlat_params(tool->params);
133 tool->aa = osnoise_init_tool("timerlat_aa");
134 if (!tool->aa)
137 retval = timerlat_aa_init(tool->aa, params->dump_tasks);
143 retval = enable_tracer_by_name(tool->aa->trace.inst, "timerlat");
164 if (tool->record)
165 trace_instance_start(&tool->record->trace);
167 trace_instance_start(&tool->aa->trace);
169 trace_instance_start(&tool->trace);
183 retval = osn_set_stop(tool);
191 void timerlat_analyze(struct osnoise_tool *tool, bool stopped)
193 struct timerlat_params *params = to_timerlat_params(tool->params);
214 void timerlat_free(struct osnoise_tool *tool)
216 struct timerlat_params *params = to_timerlat_params(tool->params);
229 osnoise_destroy_tool(tool->aa);
276 /* the user skipped the tool, call the default one */