Lines Matching refs:tool

112 	struct osnoise_tool *tool;
118 tool = container_of(trace, struct osnoise_tool, trace);
120 data = tool->data;
154 * osnoise_top_header - print the header of the tool output
209 static void osnoise_top_print(struct osnoise_tool *tool, int cpu)
211 struct osnoise_top_params *params = tool->params;
212 struct trace_seq *s = tool->trace.seq;
218 data = tool->data;
528 * osnoise_top_apply_config - apply the top configs to the initialized tool
531 osnoise_top_apply_config(struct osnoise_tool *tool, struct osnoise_top_params *params)
539 retval = osnoise_set_cpus(tool->context, params->cpus);
547 retval = osnoise_set_runtime_period(tool->context,
557 retval = osnoise_set_stop_us(tool->context, params->stop_us);
565 retval = osnoise_set_stop_total_us(tool->context, params->stop_total_us);
573 retval = osnoise_set_tracing_thresh(tool->context, params->threshold);
581 retval = osnoise_set_irq_disable(tool->context, 1);
613 * osnoise_init_top - initialize a osnoise top tool with parameters
617 struct osnoise_tool *tool;
622 tool = osnoise_init_tool("osnoise_top");
623 if (!tool)
626 tool->data = osnoise_alloc_top(nr_cpus);
627 if (!tool->data)
630 tool->params = params;
632 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "osnoise",
635 return tool;
638 osnoise_free_top(tool->data);
639 osnoise_destroy_tool(tool);
650 * osnoise_top_set_signals - handles the signal to stop the tool
665 struct osnoise_tool *tool = NULL;
674 tool = osnoise_init_top(params);
675 if (!tool) {
680 retval = osnoise_top_apply_config(tool, params);
686 trace = &tool->trace;
735 tool->start_time = time(NULL);
753 osnoise_print_stats(params, tool);
755 if (trace_is_off(&tool->trace, &record->trace))
760 osnoise_print_stats(params, tool);
764 if (trace_is_off(&tool->trace, &record->trace)) {
776 osnoise_free_top(tool->data);
778 osnoise_destroy_tool(tool);