perf_counter tools: Add color terminal output support
commit8fc0321f1ad0ffef969056dda91b453bbd7a494d
authorIngo Molnar <mingo@elte.hu>
Thu, 4 Jun 2009 13:19:47 +0000 (4 15:19 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Jun 2009 13:28:11 +0000 (4 15:28 +0200)
tree8931ad2c6582a2f59930301c3c099aa1532bb14c
parent71dd8945d8d827ab101cd287f9480ef22fc7c1b6
perf_counter tools: Add color terminal output support

Add Git's color printing library to util/color.[ch].

Add it to perf report, with a trivial example to print high-overhead
entries in red, low-overhead entries in green.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/Makefile
Documentation/perf_counter/builtin-report.c
Documentation/perf_counter/builtin-top.c
Documentation/perf_counter/util/color.c [new file with mode: 0644]
Documentation/perf_counter/util/color.h [new file with mode: 0644]
Documentation/perf_counter/util/environment.c