Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1521795 > unrolled thread

Re: [PATCH 2/6] perf config: Document examples to get config key-value pairs in man page

Started byArnaldo Carvalho de Melo <acme@kernel.org>
First post2016-11-14 17:00 +0100
Last post2016-11-14 17:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/6] perf config: Document examples to get config  key-value pairs in man page Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-11-14 17:00 +0100
    Re: [PATCH 2/6] perf config: Document examples to get config  key-value pairs in man page Taeung Song <treeze.taeung@gmail.com> - 2016-11-14 17:40 +0100

#1521795 — Re: [PATCH 2/6] perf config: Document examples to get config key-value pairs in man page

FromArnaldo Carvalho de Melo <acme@kernel.org>
Date2016-11-14 17:00 +0100
SubjectRe: [PATCH 2/6] perf config: Document examples to get config key-value pairs in man page
Message-ID<sDrPQ-sM-33@gated-at.bofh.it>
Em Fri, Nov 04, 2016 at 03:44:18PM +0900, Taeung Song escreveu:
> Explain how to query particular config items in config file
> and how to get several config items from user or system config file
> using '--user' or '--system' options.

This one should be combined with the previous one, i.e. the patch that
introduces this feature, doing it myself.

- Arnaldo
 
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Wang Nan <wangnan0@huawei.com>
> Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
> ---
>  tools/perf/Documentation/perf-config.txt | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt
> index cb081ac5..1714b0c 100644
> --- a/tools/perf/Documentation/perf-config.txt
> +++ b/tools/perf/Documentation/perf-config.txt
> @@ -8,6 +8,8 @@ perf-config - Get and set variables in a configuration file.
>  SYNOPSIS
>  --------
>  [verse]
> +'perf config' [<file-option>] [section.name ...]
> +or
>  'perf config' [<file-option>] -l | --list
>  
>  DESCRIPTION
> @@ -118,6 +120,22 @@ Given a $HOME/.perfconfig like this:
>  		children = true
>  		group = true
>  
> +To query the record mode of call graph, do
> +
> +	% perf config call-graph.record-mode
> +
> +If you want to know multiple config key/value pairs, you can do like
> +
> +	% perf config report.queue-size call-graph.order report.children
> +
> +To query the config value of sort order of call graph in user config file (i.e. `~/.perfconfig`), do
> +
> +	% perf config --user call-graph.sort-order
> +
> +To query the config value of buildid directory in system config file (i.e. `$(sysconf)/perfconfig`), do
> +
> +	% perf config --system buildid.dir
> +
>  Variables
>  ~~~~~~~~~
>  
> -- 
> 2.7.4

[toc] | [next] | [standalone]


#1521833

FromTaeung Song <treeze.taeung@gmail.com>
Date2016-11-14 17:40 +0100
Message-ID<sDssx-YN-5@gated-at.bofh.it>
In reply to#1521795

On 11/15/2016 12:51 AM, Arnaldo Carvalho de Melo wrote:
> Em Fri, Nov 04, 2016 at 03:44:18PM +0900, Taeung Song escreveu:
>> Explain how to query particular config items in config file
>> and how to get several config items from user or system config file
>> using '--user' or '--system' options.
>
> This one should be combined with the previous one, i.e. the patch that
> introduces this feature, doing it myself.
>

I got it! :)
I'll combine getting functionality and examples getting config info as a 
patch.

Thanks,
Taeung

>
>> Cc: Namhyung Kim <namhyung@kernel.org>
>> Cc: Jiri Olsa <jolsa@kernel.org>
>> Cc: Wang Nan <wangnan0@huawei.com>
>> Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
>> ---
>>  tools/perf/Documentation/perf-config.txt | 18 ++++++++++++++++++
>>  1 file changed, 18 insertions(+)
>>
>> diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt
>> index cb081ac5..1714b0c 100644
>> --- a/tools/perf/Documentation/perf-config.txt
>> +++ b/tools/perf/Documentation/perf-config.txt
>> @@ -8,6 +8,8 @@ perf-config - Get and set variables in a configuration file.
>>  SYNOPSIS
>>  --------
>>  [verse]
>> +'perf config' [<file-option>] [section.name ...]
>> +or
>>  'perf config' [<file-option>] -l | --list
>>
>>  DESCRIPTION
>> @@ -118,6 +120,22 @@ Given a $HOME/.perfconfig like this:
>>  		children = true
>>  		group = true
>>
>> +To query the record mode of call graph, do
>> +
>> +	% perf config call-graph.record-mode
>> +
>> +If you want to know multiple config key/value pairs, you can do like
>> +
>> +	% perf config report.queue-size call-graph.order report.children
>> +
>> +To query the config value of sort order of call graph in user config file (i.e. `~/.perfconfig`), do
>> +
>> +	% perf config --user call-graph.sort-order
>> +
>> +To query the config value of buildid directory in system config file (i.e. `$(sysconf)/perfconfig`), do
>> +
>> +	% perf config --system buildid.dir
>> +
>>  Variables
>>  ~~~~~~~~~
>>
>> --
>> 2.7.4

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web