Lines Matching refs:trace

159 	struct trace_instance *trace = context;
165 top = container_of(trace, struct osnoise_tool, trace);
184 struct trace_seq *s = top->trace.seq;
224 struct trace_seq *s = top->trace.seq;
236 * Unless trace is being lost, IRQ counter is always the max.
301 struct trace_instance *trace = &top->trace;
312 clear_terminal(trace->seq);
322 trace_seq_do_printf(trace->seq);
323 trace_seq_reset(trace->seq);
340 " -a/--auto: set automatic trace mode, stopping the session if argument in us latency is hit",
343 " -i/--irq us: stop trace if the irq latency is higher than the argument in us",
344 " -T/--thread us: stop trace if the thread latency is higher than the argument in us",
345 " -s/--stack us: save the stack trace at the IRQ if a thread latency is higher than the argument in us",
352 " -t/--trace[=file]: save the stopped trace to [file|timerlat_trace.txt]",
353 " -e/--event <sys:event>: enable the <sys:event> in the trace instance, multiple -e are allowed",
354 " --filter <command>: enable a trace event filter to the previous -e event",
355 " --trigger <command>: enable a trace event trigger to the previous -e event",
424 {"trace", optional_argument, 0, 't'},
453 /* get stack trace */
456 /* set trace */
467 /* get stack trace */
470 /* set aa_only to avoid parsing the trace */
500 err_msg("Error alloc trace event");
724 tep_register_event_handler(top->trace.tep, -1, "ftrace", "timerlat",
760 struct trace_instance *trace;
783 trace = &top->trace;
785 retval = enable_timerlat(trace);
818 err_msg("Failed to enable the trace instance\n");
823 retval = trace_events_enable(&record->trace, params->events);
848 retval = enable_timerlat(&aa->trace);
859 * Let the trace instance start first for the case of hitting a stop
860 * tracing while enabling other instances. The trace instance is the
864 trace_instance_start(&record->trace);
866 trace_instance_start(&aa->trace);
867 trace_instance_start(trace);
894 if (params->aa_only && !trace_is_off(&top->trace, &record->trace))
897 retval = tracefs_iterate_raw_events(trace->tep,
898 trace->inst,
902 trace);
911 if (trace_is_off(&top->trace, &record->trace))
932 if (trace_is_off(&top->trace, &record->trace)) {
939 printf(" Saving trace to %s\n", params->trace_output);
940 save_trace_to_file(record->trace.inst, params->trace_output);
944 * If the trace did not stop with --aa-only, at least print the
947 max_lat = tracefs_instance_file_read(trace->inst, "tracing_max_latency", NULL);
958 trace_events_destroy(&record->trace, params->events);