diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-05 11:05:24 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-07-12 00:00:39 -0300 |
commit | c09615f29c70d4155986f55097a99ad8f2036ca1 (patch) | |
tree | ff31479eaec303414f454c81a24c14b125d24708 /tools/perf/builtin-annotate.c | |
parent | a5051979f533afc65112cc42a20f25db08bf2272 (diff) |
perf ui stdio: Add way to setup the color output mode selection
In --stdio we turn off color output when the output is not a tty,
which is not always desirable, for instance, in:
perf annotate | more
the 'more' tool is perfectly capable of processing the escape sequences
for colored output.
Allow using the existing logic for .perfconfig's "color.ui" to be used
from the command line by providing a stdio__config_color() helper, that
will be used by annotate and report in follow up patches.
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions