Lines Matching refs:trace

111 	struct trace_instance *trace = context;
118 tool = container_of(trace, struct osnoise_tool, trace);
159 struct trace_seq *s = top->trace.seq;
212 struct trace_seq *s = tool->trace.seq;
253 struct trace_instance *trace = &top->trace;
261 clear_terminal(trace->seq);
271 trace_seq_do_printf(trace->seq);
272 trace_seq_reset(trace->seq);
288 " -a/--auto: set automatic trace mode, stopping the session if argument in us sample is hit",
291 " -s/--stop us: stop trace if a single sample is higher than the argument in us",
292 " -S/--stop-total us: stop trace if the total sample is higher than the argument in us",
299 " -t/--trace[=file]: save the stopped trace to [file|osnoise_trace.txt]",
300 " -e/--event <sys:event>: enable the <sys:event> in the trace instance, multiple -e are allowed",
301 " --filter <filter>: enable a trace event filter to the previous -e event",
302 " --trigger <trigger>: enable a trace event trigger to the previous -e event",
381 {"trace", optional_argument, 0, 't'},
405 /* set trace */
436 err_msg("Error alloc trace event");
632 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "osnoise",
666 struct trace_instance *trace;
686 trace = &tool->trace;
688 retval = enable_osnoise(trace);
713 err_msg("Failed to enable the trace instance\n");
718 retval = trace_events_enable(&record->trace, params->events);
727 * Let the trace instance start first for the case of hitting a stop
728 * tracing while enabling other instances. The trace instance is the
732 trace_instance_start(&record->trace);
733 trace_instance_start(trace);
741 retval = tracefs_iterate_raw_events(trace->tep,
742 trace->inst,
746 trace);
755 if (trace_is_off(&tool->trace, &record->trace))
764 if (trace_is_off(&tool->trace, &record->trace)) {
767 printf(" Saving trace to %s\n", params->trace_output);
768 save_trace_to_file(record->trace.inst, params->trace_output);
773 trace_events_destroy(&record->trace, params->events);