]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
trace: branch profiling should not print percent without data
authorSteven Rostedt <srostedt@redhat.com>
Fri, 21 Nov 2008 06:51:53 +0000 (01:51 -0500)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 10:40:21 +0000 (11:40 +0100)
commitbac28bfe42ba98ee67503f78984d1d5e1ebbbb78
tree4187a43a240651919adbd6c0ad334dc10209ca23
parent45b797492a0758e64dff74e9db70e1f65e0603a5
trace: branch profiling should not print percent without data

Impact: cleanup on output of branch profiler

When a branch has not been taken, it does not make sense to show
a percentage incorrect or hit. This patch changes the behaviour
to print out a 'X' when the branch has not been executed yet.

For example:

 correct incorrect  %        Function                  File              Line
 ------- ---------  -        --------                  ----              ----
    2096        0   0 do_arch_prctl                  process_64.c         832
       0        0   X do_arch_prctl                  process_64.c         804
    2604        0   0 IS_ERR                         err.h                34
  130228     5765   4 __switch_to                    process_64.c         673
       0        0   X enable_TSC                     process_64.c         448
       0        0   X disable_TSC                    process_64.c         431

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_branch.c