Lines Matching full:tool
46 static void osnoise_free_top_tool(struct osnoise_tool *tool) in osnoise_free_top_tool() argument
48 osnoise_free_top(tool->data); in osnoise_free_top_tool()
84 struct osnoise_tool *tool; in osnoise_top_handler() local
90 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler()
92 data = tool->data; in osnoise_top_handler()
126 * osnoise_top_header - print the header of the tool output
189 static void osnoise_top_print(struct osnoise_tool *tool, int cpu) in osnoise_top_print() argument
191 struct osnoise_params *params = to_osnoise_params(tool->params); in osnoise_top_print()
192 struct trace_seq *s = tool->trace.seq; in osnoise_top_print()
198 data = tool->data; in osnoise_top_print()
551 * osnoise_top_apply_config - apply the top configs to the initialized tool
554 osnoise_top_apply_config(struct osnoise_tool *tool) in osnoise_top_apply_config() argument
556 struct osnoise_params *params = to_osnoise_params(tool->params); in osnoise_top_apply_config()
559 retval = osnoise_apply_config(tool, params); in osnoise_top_apply_config()
564 retval = osnoise_set_irq_disable(tool->context, 1); in osnoise_top_apply_config()
581 * osnoise_init_top - initialize a osnoise top tool with parameters
585 struct osnoise_tool *tool; in osnoise_init_top() local
590 tool = osnoise_init_tool("osnoise_top"); in osnoise_init_top()
591 if (!tool) in osnoise_init_top()
594 tool->data = osnoise_alloc_top(nr_cpus); in osnoise_init_top()
595 if (!tool->data) { in osnoise_init_top()
596 osnoise_destroy_tool(tool); in osnoise_init_top()
600 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "osnoise", in osnoise_init_top()
603 return tool; in osnoise_init_top()