Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932475AbbKQXr0 (ORCPT ); Tue, 17 Nov 2015 18:47:26 -0500 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:52727 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754344AbbKQXrJ (ORCPT ); Tue, 17 Nov 2015 18:47:09 -0500 X-Original-SENDERIP: 156.147.1.126 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 165.244.98.76 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org Date: Wed, 18 Nov 2015 08:47:07 +0900 From: Namhyung Kim To: Taeung Song CC: Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, Ingo Molnar , Jiri Olsa Subject: Re: [PATCH v11 03/24] perf config: Document variables for 'color' section in man page Message-ID: <20151117234707.GB7062@sejong> References: <1447768424-17327-1-git-send-email-treeze.taeung@gmail.com> <1447768424-17327-3-git-send-email-treeze.taeung@gmail.com> MIME-Version: 1.0 In-Reply-To: <1447768424-17327-3-git-send-email-treeze.taeung@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB07/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2015/11/18 08:47:07, Serialize by Router on LGEKRMHUB07/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2015/11/18 08:47:07, Serialize complete at 2015/11/18 08:47:07 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3279 Lines: 107 On Tue, Nov 17, 2015 at 10:53:23PM +0900, Taeung Song wrote: > Explain 'color' section and its variables. > > 'top', 'medium', 'normal', 'selected', > 'code', 'addr' and 'root'. > > Cc: Namhyung Kim > Cc: Jiri Olsa > Signed-off-by: Taeung Song > --- > tools/perf/Documentation/perf-config.txt | 44 ++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt > index dfdab9c..84a982b 100644 > --- a/tools/perf/Documentation/perf-config.txt > +++ b/tools/perf/Documentation/perf-config.txt > @@ -98,6 +98,50 @@ Given a $HOME/.perfconfig like this: > order = caller > sort-key = function > > +Variables > +~~~~~~~~~ > + > +colors.*:: > + The variables for customizing the colors used in the output for the > + 'report', 'top' and annotate in the TUI. They should specify the The 'annotate' also needs to be surrounded by single quotes. > + background and foreground colors, separated by a comma, for example: I think 'foreground and background' is better due to the order. > + > + medium = green, lightgray > + > + If you want to use the color configured for you terminal, just leave it > + as 'default', for example: > + > + medium = default, lightgray > + > + Available colors: > + red, green, default, black, blue, white, magenta, lightgray I don't know about the libslang color scheme, but it seems that the standard color names like 'yellow', 'cyan' and 'gray' are also available. > + > + colors.top:: > + 'top' means a overhead percentage which is more than 5%. > + And values of this variable specify percentage colors. > + Basic key values are foreground-color 'red' and > + background-color 'default'. > + colors.medium:: > + 'medium' means a overhead percentage which has more than 0.5%. > + Default values are 'green' and 'default'. > + colors.normal:: > + 'normal' means the rest of overhead percentages > + except 'top', 'medium', 'selected'. > + Default values are 'lightgray' and 'default'. > + colors.selected:: > + This selects the colors for the current entry in a list of entries > + from sub-commands (top,report,annotate). > + Default values are 'white' and 'lightgray'. Isn't it 'black' and 'lightgray'? > + colors.code:: > + Colors for arrows and lines in jumps on assembly code listings > + such as 'jns','jmp','jane',etc. Default values are 'blue', 'default'. Hmm.. I thought this is for source code displayed with annotate output, but it's only for jump arrows? Maybe it's better to rename this then.. Anyway it's a different problem. > + colors.addr:: > + This selects colors for addresses from 'annotate'. > + Default values are 'magenta', 'default'. > + colors.root:: > + Colors for headers in the output of a sub-command 'top'. It also works for 'report'. Thanks, Namhyung > + Default values are 'white', 'blue'. > + > SEE ALSO > -------- > linkperf:perf[1] > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/