Lines Matching full:trace

153 	tracefs_hist_pause(tool->trace.inst, data->trace_hist);  in osnoise_destroy_trace_hist()
154 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist()
174 data->trace_hist = tracefs_hist_alloc(tool->trace.tep, "osnoise", "sample_threshold", in osnoise_init_trace_hist()
183 retval = tracefs_hist_start(tool->trace.inst, data->trace_hist); in osnoise_init_trace_hist()
203 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_read_trace_hist()
205 content = tracefs_event_file_read(tool->trace.inst, "osnoise", in osnoise_read_trace_hist()
249 struct trace_seq *s = tool->trace.seq; in osnoise_hist_header()
287 struct trace_instance *trace, in osnoise_print_summary() argument
296 trace_seq_printf(trace->seq, "count:"); in osnoise_print_summary()
305 trace_seq_printf(trace->seq, "%9d ", data->hist[cpu].count); in osnoise_print_summary()
307 trace_seq_printf(trace->seq, "\n"); in osnoise_print_summary()
310 trace_seq_printf(trace->seq, "min: "); in osnoise_print_summary()
319 trace_seq_printf(trace->seq, "%9llu ", data->hist[cpu].min_sample); in osnoise_print_summary()
322 trace_seq_printf(trace->seq, "\n"); in osnoise_print_summary()
325 trace_seq_printf(trace->seq, "avg: "); in osnoise_print_summary()
335 trace_seq_printf(trace->seq, "%9llu ", in osnoise_print_summary()
338 trace_seq_printf(trace->seq, " - "); in osnoise_print_summary()
340 trace_seq_printf(trace->seq, "\n"); in osnoise_print_summary()
343 trace_seq_printf(trace->seq, "max: "); in osnoise_print_summary()
352 trace_seq_printf(trace->seq, "%9llu ", data->hist[cpu].max_sample); in osnoise_print_summary()
355 trace_seq_printf(trace->seq, "\n"); in osnoise_print_summary()
356 trace_seq_do_printf(trace->seq); in osnoise_print_summary()
357 trace_seq_reset(trace->seq); in osnoise_print_summary()
367 struct trace_instance *trace = &tool->trace; in osnoise_print_stats() local
377 trace_seq_printf(trace->seq, "%-6d", in osnoise_print_stats()
388 trace_seq_printf(trace->seq, "%9d ", data->hist[cpu].samples[bucket]); in osnoise_print_stats()
392 trace_seq_reset(trace->seq); in osnoise_print_stats()
396 trace_seq_printf(trace->seq, "\n"); in osnoise_print_stats()
397 trace_seq_do_printf(trace->seq); in osnoise_print_stats()
398 trace_seq_reset(trace->seq); in osnoise_print_stats()
402 trace_seq_printf(trace->seq, "over: "); in osnoise_print_stats()
411 trace_seq_printf(trace->seq, "%9d ", in osnoise_print_stats()
414 trace_seq_printf(trace->seq, "\n"); in osnoise_print_stats()
415 trace_seq_do_printf(trace->seq); in osnoise_print_stats()
416 trace_seq_reset(trace->seq); in osnoise_print_stats()
418 osnoise_print_summary(params, trace, data); in osnoise_print_stats()
436 " -a/--auto: set automatic trace mode, stopping the session if argument in us sample is hit", in osnoise_hist_usage()
439 " -s/--stop us: stop trace if a single sample is higher than the argument in us", in osnoise_hist_usage()
440 " -S/--stop-total us: stop trace if the total sample is higher than the argument in us", in osnoise_hist_usage()
445 " -t/--trace[=file]: save the stopped trace to [file|osnoise_trace.txt]", in osnoise_hist_usage()
446 …" -e/--event <sys:event>: enable the <sys:event> in the trace instance, multiple -e are allowed", in osnoise_hist_usage()
447 " --filter <filter>: enable a trace event filter to the previous -e event", in osnoise_hist_usage()
448 " --trigger <trigger>: enable a trace event trigger to the previous -e event", in osnoise_hist_usage()
509 {"trace", optional_argument, 0, 't'}, in osnoise_hist_parse_args()
539 /* set trace */ in osnoise_hist_parse_args()
565 err_msg("Error alloc trace event"); in osnoise_hist_parse_args()
776 struct trace_instance *trace; in osnoise_hist_main() local
796 trace = &tool->trace; in osnoise_hist_main()
798 retval = enable_osnoise(trace); in osnoise_hist_main()
816 trace_instance_start(trace); in osnoise_hist_main()
821 err_msg("Failed to enable the trace instance\n"); in osnoise_hist_main()
826 retval = trace_events_enable(&record->trace, params->events); in osnoise_hist_main()
831 trace_instance_start(&record->trace); in osnoise_hist_main()
840 retval = tracefs_iterate_raw_events(trace->tep, in osnoise_hist_main()
841 trace->inst, in osnoise_hist_main()
845 trace); in osnoise_hist_main()
851 if (trace_is_off(&tool->trace, &record->trace)) in osnoise_hist_main()
861 if (trace_is_off(&tool->trace, &record->trace)) { in osnoise_hist_main()
864 printf(" Saving trace to %s\n", params->trace_output); in osnoise_hist_main()
865 save_trace_to_file(record->trace.inst, params->trace_output); in osnoise_hist_main()
870 trace_events_destroy(&record->trace, params->events); in osnoise_hist_main()