]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Print branch misses warning colors
authorIngo Molnar <mingo@elte.hu>
Wed, 27 Apr 2011 10:16:10 +0000 (12:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 26 Apr 2011 18:04:58 +0000 (20:04 +0200)
commit6c4cd1d276ddedc37820ec997379d0dd916f646a
tree355d14ae8b178d93a95012c13a930ea41384dd1d
parentb0e18060ce853e8c44f9731dba21a02114a821e0
perf stat: Print branch misses warning colors

Print the missed-branches percentage with different warning level ASCII colors,
as the percentage passes the 5%/10%/20% thresholds.

These thresholds are set to relatively low levels, because on most CPUs even a
moderate percentage of branch-misses already shows up as a slowdown.

Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/n/tip-ybqukg7p86leiup7gl03ecgk@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-stat.c