Lines Matching full:tool
1012 * osnoise_init_tool - init an osnoise tool
1015 * creates a new trace instance for the tool.
1070 bool osnoise_trace_is_off(struct osnoise_tool *tool, struct osnoise_tool *record) in osnoise_trace_is_off() argument
1073 * The tool instance is always present, it is the one used to collect in osnoise_trace_is_off()
1076 if (!tracefs_trace_is_on(tool->trace.inst)) in osnoise_trace_is_off()
1091 osnoise_report_missed_events(struct osnoise_tool *tool) in osnoise_report_missed_events() argument
1095 if (tool->trace.missed_events == UINT64_MAX) in osnoise_report_missed_events()
1097 else if (tool->trace.missed_events > 0) { in osnoise_report_missed_events()
1098 total_events = tool->trace.processed_events + tool->trace.missed_events; in osnoise_report_missed_events()
1101 tool->trace.missed_events, in osnoise_report_missed_events()
1102 (double) tool->trace.missed_events / total_events * 100.0); in osnoise_report_missed_events()
1107 * osnoise_apply_config - apply osnoise configs to the initialized tool
1110 osnoise_apply_config(struct osnoise_tool *tool, struct osnoise_params *params) in osnoise_apply_config() argument
1117 retval = osnoise_set_runtime_period(tool->context, in osnoise_apply_config()
1121 retval = osnoise_set_runtime_period(tool->context, in osnoise_apply_config()
1131 retval = osnoise_set_stop_us(tool->context, params->common.stop_us); in osnoise_apply_config()
1137 retval = osnoise_set_stop_total_us(tool->context, params->common.stop_total_us); in osnoise_apply_config()
1143 retval = osnoise_set_tracing_thresh(tool->context, params->threshold); in osnoise_apply_config()
1149 return common_apply_config(tool, ¶ms->common); in osnoise_apply_config()
1155 int osnoise_enable(struct osnoise_tool *tool) in osnoise_enable() argument
1157 struct osnoise_params *params = to_osnoise_params(tool->params); in osnoise_enable()
1167 if (tool->record) in osnoise_enable()
1168 trace_instance_start(&tool->record->trace); in osnoise_enable()
1169 trace_instance_start(&tool->trace); in osnoise_enable()
1182 retval = tracefs_instance_file_write(tool->trace.inst, "trace", ""); in osnoise_enable()
1233 /* the user skipped the tool, call the default one */ in osnoise_main()