Lines Matching full:trace

184 	struct trace_instance *trace = data;  in timerlat_hist_handler()  local
189 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler()
206 struct trace_seq *s = tool->trace.seq; in timerlat_hist_header()
249 struct trace_instance *trace, in timerlat_print_summary() argument
258 trace_seq_printf(trace->seq, "count:"); in timerlat_print_summary()
268 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_summary()
272 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_summary()
275 trace_seq_printf(trace->seq, "\n"); in timerlat_print_summary()
278 trace_seq_printf(trace->seq, "min: "); in timerlat_print_summary()
288 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
292 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
295 trace_seq_printf(trace->seq, "\n"); in timerlat_print_summary()
298 trace_seq_printf(trace->seq, "avg: "); in timerlat_print_summary()
309 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
312 trace_seq_printf(trace->seq, " - "); in timerlat_print_summary()
317 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
320 trace_seq_printf(trace->seq, " - "); in timerlat_print_summary()
323 trace_seq_printf(trace->seq, "\n"); in timerlat_print_summary()
326 trace_seq_printf(trace->seq, "max: "); in timerlat_print_summary()
336 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
340 trace_seq_printf(trace->seq, "%9llu ", in timerlat_print_summary()
343 trace_seq_printf(trace->seq, "\n"); in timerlat_print_summary()
344 trace_seq_do_printf(trace->seq); in timerlat_print_summary()
345 trace_seq_reset(trace->seq); in timerlat_print_summary()
355 struct trace_instance *trace = &tool->trace; in timerlat_print_stats() local
365 trace_seq_printf(trace->seq, "%-6d", in timerlat_print_stats()
377 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_stats()
383 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_stats()
390 trace_seq_reset(trace->seq); in timerlat_print_stats()
394 trace_seq_printf(trace->seq, "\n"); in timerlat_print_stats()
395 trace_seq_do_printf(trace->seq); in timerlat_print_stats()
396 trace_seq_reset(trace->seq); in timerlat_print_stats()
400 trace_seq_printf(trace->seq, "over: "); in timerlat_print_stats()
410 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_stats()
414 trace_seq_printf(trace->seq, "%9d ", in timerlat_print_stats()
417 trace_seq_printf(trace->seq, "\n"); in timerlat_print_stats()
418 trace_seq_do_printf(trace->seq); in timerlat_print_stats()
419 trace_seq_reset(trace->seq); in timerlat_print_stats()
421 timerlat_print_summary(params, trace, data); in timerlat_print_stats()
439 " -a/--auto: set automatic trace mode, stopping the session if argument in us latency is hit", in timerlat_hist_usage()
441 " -i/--irq us: stop trace if the irq latency is higher than the argument in us", in timerlat_hist_usage()
442 " -T/--thread us: stop trace if the thread latency is higher than the argument in us", in timerlat_hist_usage()
443 …" -s/--stack us: save the stack trace at the IRQ if a thread latency is higher than the argument… in timerlat_hist_usage()
447 " -t/--trace[=file]: save the stopped trace to [file|timerlat_trace.txt]", in timerlat_hist_usage()
448 …" -e/--event <sys:event>: enable the <sys:event> in the trace instance, multiple -e are allowed", in timerlat_hist_usage()
449 " --filter <filter>: enable a trace event filter to the previous -e event", in timerlat_hist_usage()
450 " --trigger <trigger>: enable a trace event trigger to the previous -e event", in timerlat_hist_usage()
520 {"trace", optional_argument, 0, 't'}, in timerlat_hist_parse_args()
551 /* get stack trace */ in timerlat_hist_parse_args()
554 /* set trace */ in timerlat_hist_parse_args()
580 err_msg("Error alloc trace event"); in timerlat_hist_parse_args()
772 tep_register_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_init_hist()
806 struct trace_instance *trace; in timerlat_hist_main() local
827 trace = &tool->trace; in timerlat_hist_main()
829 retval = enable_timerlat(trace); in timerlat_hist_main()
851 trace_instance_start(trace); in timerlat_hist_main()
856 err_msg("Failed to enable the trace instance\n"); in timerlat_hist_main()
861 retval = trace_events_enable(&record->trace, params->events); in timerlat_hist_main()
866 trace_instance_start(&record->trace); in timerlat_hist_main()
875 retval = tracefs_iterate_raw_events(trace->tep, in timerlat_hist_main()
876 trace->inst, in timerlat_hist_main()
880 trace); in timerlat_hist_main()
886 if (trace_is_off(&tool->trace, &record->trace)) in timerlat_hist_main()
894 if (trace_is_off(&tool->trace, &record->trace)) { in timerlat_hist_main()
897 printf(" Saving trace to %s\n", params->trace_output); in timerlat_hist_main()
898 save_trace_to_file(record->trace.inst, params->trace_output); in timerlat_hist_main()
905 trace_events_destroy(&record->trace, params->events); in timerlat_hist_main()