tracing: branch tracer, tweak output
authorIngo Molnar <mingo@elte.hu>
Wed, 12 Nov 2008 10:55:41 +0000 (11:55 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 12 Nov 2008 10:55:41 +0000 (11:55 +0100)
Impact: modify the tracer output, to make it a bit easier to read

Change the output from:

>  bash-3471  [003]   357.014755: [INCORRECT] sched_info_dequeued:sched_stats.h:177
>  bash-3471  [003]   357.014756: [correct] update_curr:sched_fair.c:489
>  bash-3471  [003]   357.014758: [correct] calc_delta_fair:sched_fair.c:411

to:

>  bash-3471  [003]   357.014755: [ MISS ] sched_info_dequeued:sched_stats.h:177
>  bash-3471  [003]   357.014756: [ .... ] update_curr:sched_fair.c:489
>  bash-3471  [003]   357.014758: [ .... ] calc_delta_fair:sched_fair.c:411

it's good to have fields aligned vertically, and the only important
information is a prediction miss, so display only that information.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace.c

index 83d38634bc90b40643aa3dcd5a1a18aa713e377c..728a46ec6b06d6d27ffee94820891182733df7cf 100644 (file)
@@ -1657,7 +1657,7 @@ print_lat_fmt(struct trace_iterator *iter, unsigned int trace_idx, int cpu)
                trace_assign_type(field, entry);
 
                trace_seq_printf(s, "[%s] %s:%s:%d\n",
-                                field->correct ? "correct" : "INCORRECT",
+                                field->correct ? " .... " : " MISS ",
                                 field->func,
                                 field->file,
                                 field->line);
@@ -1808,7 +1808,7 @@ static enum print_line_t print_trace_fmt(struct trace_iterator *iter)
                trace_assign_type(field, entry);
 
                trace_seq_printf(s, "[%s] %s:%s:%d\n",
-                                field->correct ? "correct" : "INCORRECT",
+                                field->correct ? " .... " : " MISS ",
                                 field->func,
                                 field->file,
                                 field->line);