Lines Matching refs:tool
115 struct osnoise_tool *tool; in osnoise_top_handler() local
121 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler()
123 data = tool->data; in osnoise_top_handler()
219 static void osnoise_top_print(struct osnoise_tool *tool, int cpu) in osnoise_top_print() argument
221 struct osnoise_top_params *params = tool->params; in osnoise_top_print()
222 struct trace_seq *s = tool->trace.seq; in osnoise_top_print()
228 data = tool->data; in osnoise_top_print()
555 osnoise_top_apply_config(struct osnoise_tool *tool, struct osnoise_top_params *params) in osnoise_top_apply_config() argument
563 retval = osnoise_set_cpus(tool->context, params->cpus); in osnoise_top_apply_config()
571 retval = osnoise_set_runtime_period(tool->context, in osnoise_top_apply_config()
581 retval = osnoise_set_stop_us(tool->context, params->stop_us); in osnoise_top_apply_config()
589 retval = osnoise_set_stop_total_us(tool->context, params->stop_total_us); in osnoise_top_apply_config()
597 retval = osnoise_set_tracing_thresh(tool->context, params->threshold); in osnoise_top_apply_config()
605 retval = osnoise_set_irq_disable(tool->context, 1); in osnoise_top_apply_config()
644 struct osnoise_tool *tool; in osnoise_init_top() local
649 tool = osnoise_init_tool("osnoise_top"); in osnoise_init_top()
650 if (!tool) in osnoise_init_top()
653 tool->data = osnoise_alloc_top(nr_cpus); in osnoise_init_top()
654 if (!tool->data) { in osnoise_init_top()
655 osnoise_destroy_tool(tool); in osnoise_init_top()
659 tool->params = params; in osnoise_init_top()
661 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "osnoise", in osnoise_init_top()
664 return tool; in osnoise_init_top()
689 struct osnoise_tool *tool = NULL; in osnoise_top_main() local
698 tool = osnoise_init_top(params); in osnoise_top_main()
699 if (!tool) { in osnoise_top_main()
704 retval = osnoise_top_apply_config(tool, params); in osnoise_top_main()
710 trace = &tool->trace; in osnoise_top_main()
784 tool->start_time = time(NULL); in osnoise_top_main()
802 osnoise_print_stats(params, tool); in osnoise_top_main()
804 if (trace_is_off(&tool->trace, &record->trace)) in osnoise_top_main()
809 osnoise_print_stats(params, tool); in osnoise_top_main()
813 if (trace_is_off(&tool->trace, &record->trace)) { in osnoise_top_main()
825 osnoise_free_top(tool->data); in osnoise_top_main()
827 osnoise_destroy_tool(tool); in osnoise_top_main()