Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754915AbbKQXNS (ORCPT ); Tue, 17 Nov 2015 18:13:18 -0500 Received: from LGEAMRELO13.lge.com ([156.147.23.53]:49389 "EHLO lgeamrelo13.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750867AbbKQXNR (ORCPT ); Tue, 17 Nov 2015 18:13:17 -0500 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: namhyung@kernel.org X-Original-SENDERIP: 165.244.98.203 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:13:13 +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 02/24] perf tools: Add perf-config document Message-ID: <20151117231313.GA7062@sejong> References: <1447768424-17327-1-git-send-email-treeze.taeung@gmail.com> <1447768424-17327-2-git-send-email-treeze.taeung@gmail.com> MIME-Version: 1.0 In-Reply-To: <1447768424-17327-2-git-send-email-treeze.taeung@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB03/LGE/LG Group(Release 8.5.3FP3HF583 | August 9, 2013) at 2015/11/18 08:13:14, Serialize by Router on LGEKRMHUB03/LGE/LG Group(Release 8.5.3FP3HF583 | August 9, 2013) at 2015/11/18 08:13:14, Serialize complete at 2015/11/18 08:13:14 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: 3325 Lines: 135 On Tue, Nov 17, 2015 at 10:53:22PM +0900, Taeung Song wrote: > Add perf-config document to describe the perf configuration > and a subcommand 'list'. > > Cc: Jiri Olsa > Signed-off-by: Taeung Song Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/Documentation/perf-config.txt | 103 +++++++++++++++++++++++++++++++ > 1 file changed, 103 insertions(+) > create mode 100644 tools/perf/Documentation/perf-config.txt > > diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt > new file mode 100644 > index 0000000..dfdab9c > --- /dev/null > +++ b/tools/perf/Documentation/perf-config.txt > @@ -0,0 +1,103 @@ > +perf-config(1) > +============== > + > +NAME > +---- > +perf-config - Get and set variables in a configuration file. > + > +SYNOPSIS > +-------- > +[verse] > +'perf config' -l | --list > + > +DESCRIPTION > +----------- > +You can manage variables in a configuration file with this command. > + > +OPTIONS > +------- > + > +-l:: > +--list:: > + Show current config variables, name and value, for all sections. > + > +CONFIGURATION FILE > +------------------ > + > +The perf configuration file contains many variables to change various > +aspects of each of its tools, including output, disk usage, etc. > +The '$HOME/.perfconfig' file is used to store a per-user configuration. > +The file '$(sysconfdir)/perfconfig' can be used to > +store a system-wide default configuration. > + > +Syntax > +~~~~~~ > + > +The file consist of sections. A section starts with its name > +surrounded by square brackets and continues till the next section > +begins. Each variable must be in a section, and have the form > +'name = value', for example: > + > + [section] > + name1 = value1 > + name2 = value2 > + > +Section names are case sensitive and can contain any characters except > +newline (double quote `"` and backslash have to be escaped as `\"` and `\\`, > +respectively). Section headers can't span multiple lines. > + > +Example > +~~~~~~~ > + > +Given a $HOME/.perfconfig like this: > + > +# > +# This is the config file, and > +# a '#' and ';' character indicates a comment > +# > + > +[colors] > + # Color variables > + top = red, default > + medium = green, default > + normal = lightgray, default > + selected = white, lightgray > + code = blue, default > + addr = magenta, default > + root = white, blue > + > +[tui] > + # Defaults if linked with libslang > + report = on > + annotate = on > + top = on > + > +[buildid] > + # Default, disable using /dev/null > + dir = ~/.debug > + > +[annotate] > + # Defaults > + hide_src_code = false > + use_offset = true > + jump_arrows = true > + show_nr_jumps = false > + > +[help] > + # Format can be man, info, web or html > + format = man > + autocorrect = 0 > + > +[ui] > + show-headers = true > + > +[call-graph] > + # fp (framepointer), dwarf > + record-mode = fp > + print-type = graph > + order = caller > + sort-key = function > + > +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/