]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Introduce get_ratio_color() helper
authorNamhyung Kim <namhyung@gmail.com>
Tue, 27 Dec 2011 15:35:49 +0000 (00:35 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Jan 2012 16:36:32 +0000 (14:36 -0200)
commit0b27dc48c65ef222f2db25ea0b3970cf9d0148af
treef05f7251d39ae656c3157ac97716033c369e247a
parenta0e37f12325670c42ff3e75ee1aea9e202e058f4
perf stat: Introduce get_ratio_color() helper

The get_ratio_color() returns appropriate color string based on @ratio.
It helps reducing code duplication.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1325000151-4463-2-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c