Searched hist:c09615f29c70d4155986f55097a99ad8f2036ca1 (Results 1 – 2 of 2) sorted by relevance
/linux/tools/perf/ui/ |
H A D | ui.h | diff c09615f29c70d4155986f55097a99ad8f2036ca1 Tue Jul 05 16:05:24 CEST 2016 Arnaldo Carvalho de Melo <acme@redhat.com> 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 <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-1u4wjdbcc41dxndsb4klpa9y@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
|
H A D | setup.c | diff c09615f29c70d4155986f55097a99ad8f2036ca1 Tue Jul 05 16:05:24 CEST 2016 Arnaldo Carvalho de Melo <acme@redhat.com> 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 <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-1u4wjdbcc41dxndsb4klpa9y@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
|