Re: [PATCH v11 02/24] perf tools: Add perf-config document

2015-11-22 Thread Taeung Song
Hi, Arnaldo, Namhyung

I left out indentation for config example.
I fixed the bugs and I resent patch mail.

Thanks,
Taeung
> On Nov 20, 2015, at 4:24 AM, Arnaldo Carvalho de Melo 
>  wrote:
> 
> Em Wed, Nov 18, 2015 at 08:13:13AM +0900, Namhyung Kim escreveu:
>> 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 
> 
> Taeung, please check this:
> 
> [acme@zoo linux]$ rpm -q asciidoc
> asciidoc-8.6.8-6.fc21.noarch
> 
> I applied the first patch, continue your work from my perf/core branch.
> 
>  INSTALL  perf_completion-script
>  INSTALL  tests
>  ASCIIDOC /tmp/build/perf/perf-kmem.xml
>  ASCIIDOC /tmp/build/perf/perf-trace.xml
>  ASCIIDOC /tmp/build/perf/perf-data.xml
>  ASCIIDOC /tmp/build/perf/perf-buildid-cache.xml
>  ASCIIDOC /tmp/build/perf/perf-list.xml
>  ASCIIDOC /tmp/build/perf/perf-help.xml
>  ASCIIDOC /tmp/build/perf/perf-script.xml
>  ASCIIDOC /tmp/build/perf/perf-lock.xml
>  ASCIIDOC /tmp/build/perf/perf-archive.xml
>  ASCIIDOC /tmp/build/perf/perf-probe.xml
>  ASCIIDOC /tmp/build/perf/perf-config.xml
>  ASCIIDOC /tmp/build/perf/perf-bench.xml
>  ASCIIDOC /tmp/build/perf/perf-evlist.xml
> asciidoc: WARNING: perf-config.txt: line 59: missing style: 
> [paradef-literal]: colors
> asciidoc: WARNING: perf-config.txt: line 69: missing style: 
> [paradef-literal]: tui
> asciidoc: WARNING: perf-config.txt: line 75: missing style: 
> [paradef-literal]: buildid
> asciidoc: WARNING: perf-config.txt: line 79: missing style: 
> [paradef-literal]: annotate
> asciidoc: WARNING: perf-config.txt: line 86: missing style: 
> [paradef-literal]: help
> asciidoc: WARNING: perf-config.txt: line 91: missing style: 
> [paradef-literal]: ui
> asciidoc: WARNING: perf-config.txt: line 94: missing style: 
> [paradef-literal]: call-graph
>  ASCIIDOC /tmp/build/perf/perf-sched.xml
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v11 02/24] perf tools: Add perf-config document

2015-11-22 Thread Taeung Song
Hi, Arnaldo, Namhyung

I left out indentation for config example.
I fixed the bugs and I resent patch mail.

Thanks,
Taeung
> On Nov 20, 2015, at 4:24 AM, Arnaldo Carvalho de Melo 
>  wrote:
> 
> Em Wed, Nov 18, 2015 at 08:13:13AM +0900, Namhyung Kim escreveu:
>> 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 
> 
> Taeung, please check this:
> 
> [acme@zoo linux]$ rpm -q asciidoc
> asciidoc-8.6.8-6.fc21.noarch
> 
> I applied the first patch, continue your work from my perf/core branch.
> 
>  INSTALL  perf_completion-script
>  INSTALL  tests
>  ASCIIDOC /tmp/build/perf/perf-kmem.xml
>  ASCIIDOC /tmp/build/perf/perf-trace.xml
>  ASCIIDOC /tmp/build/perf/perf-data.xml
>  ASCIIDOC /tmp/build/perf/perf-buildid-cache.xml
>  ASCIIDOC /tmp/build/perf/perf-list.xml
>  ASCIIDOC /tmp/build/perf/perf-help.xml
>  ASCIIDOC /tmp/build/perf/perf-script.xml
>  ASCIIDOC /tmp/build/perf/perf-lock.xml
>  ASCIIDOC /tmp/build/perf/perf-archive.xml
>  ASCIIDOC /tmp/build/perf/perf-probe.xml
>  ASCIIDOC /tmp/build/perf/perf-config.xml
>  ASCIIDOC /tmp/build/perf/perf-bench.xml
>  ASCIIDOC /tmp/build/perf/perf-evlist.xml
> asciidoc: WARNING: perf-config.txt: line 59: missing style: 
> [paradef-literal]: colors
> asciidoc: WARNING: perf-config.txt: line 69: missing style: 
> [paradef-literal]: tui
> asciidoc: WARNING: perf-config.txt: line 75: missing style: 
> [paradef-literal]: buildid
> asciidoc: WARNING: perf-config.txt: line 79: missing style: 
> [paradef-literal]: annotate
> asciidoc: WARNING: perf-config.txt: line 86: missing style: 
> [paradef-literal]: help
> asciidoc: WARNING: perf-config.txt: line 91: missing style: 
> [paradef-literal]: ui
> asciidoc: WARNING: perf-config.txt: line 94: missing style: 
> [paradef-literal]: call-graph
>  ASCIIDOC /tmp/build/perf/perf-sched.xml
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v11 02/24] perf tools: Add perf-config document

2015-11-19 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 18, 2015 at 08:13:13AM +0900, Namhyung Kim escreveu:
> 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 

Taeung, please check this:

[acme@zoo linux]$ rpm -q asciidoc
asciidoc-8.6.8-6.fc21.noarch

I applied the first patch, continue your work from my perf/core branch.

  INSTALL  perf_completion-script
  INSTALL  tests
  ASCIIDOC /tmp/build/perf/perf-kmem.xml
  ASCIIDOC /tmp/build/perf/perf-trace.xml
  ASCIIDOC /tmp/build/perf/perf-data.xml
  ASCIIDOC /tmp/build/perf/perf-buildid-cache.xml
  ASCIIDOC /tmp/build/perf/perf-list.xml
  ASCIIDOC /tmp/build/perf/perf-help.xml
  ASCIIDOC /tmp/build/perf/perf-script.xml
  ASCIIDOC /tmp/build/perf/perf-lock.xml
  ASCIIDOC /tmp/build/perf/perf-archive.xml
  ASCIIDOC /tmp/build/perf/perf-probe.xml
  ASCIIDOC /tmp/build/perf/perf-config.xml
  ASCIIDOC /tmp/build/perf/perf-bench.xml
  ASCIIDOC /tmp/build/perf/perf-evlist.xml
asciidoc: WARNING: perf-config.txt: line 59: missing style: [paradef-literal]: 
colors
asciidoc: WARNING: perf-config.txt: line 69: missing style: [paradef-literal]: 
tui
asciidoc: WARNING: perf-config.txt: line 75: missing style: [paradef-literal]: 
buildid
asciidoc: WARNING: perf-config.txt: line 79: missing style: [paradef-literal]: 
annotate
asciidoc: WARNING: perf-config.txt: line 86: missing style: [paradef-literal]: 
help
asciidoc: WARNING: perf-config.txt: line 91: missing style: [paradef-literal]: 
ui
asciidoc: WARNING: perf-config.txt: line 94: missing style: [paradef-literal]: 
call-graph
  ASCIIDOC /tmp/build/perf/perf-sched.xml

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v11 02/24] perf tools: Add perf-config document

2015-11-19 Thread Arnaldo Carvalho de Melo
Em Wed, Nov 18, 2015 at 08:13:13AM +0900, Namhyung Kim escreveu:
> 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 

Taeung, please check this:

[acme@zoo linux]$ rpm -q asciidoc
asciidoc-8.6.8-6.fc21.noarch

I applied the first patch, continue your work from my perf/core branch.

  INSTALL  perf_completion-script
  INSTALL  tests
  ASCIIDOC /tmp/build/perf/perf-kmem.xml
  ASCIIDOC /tmp/build/perf/perf-trace.xml
  ASCIIDOC /tmp/build/perf/perf-data.xml
  ASCIIDOC /tmp/build/perf/perf-buildid-cache.xml
  ASCIIDOC /tmp/build/perf/perf-list.xml
  ASCIIDOC /tmp/build/perf/perf-help.xml
  ASCIIDOC /tmp/build/perf/perf-script.xml
  ASCIIDOC /tmp/build/perf/perf-lock.xml
  ASCIIDOC /tmp/build/perf/perf-archive.xml
  ASCIIDOC /tmp/build/perf/perf-probe.xml
  ASCIIDOC /tmp/build/perf/perf-config.xml
  ASCIIDOC /tmp/build/perf/perf-bench.xml
  ASCIIDOC /tmp/build/perf/perf-evlist.xml
asciidoc: WARNING: perf-config.txt: line 59: missing style: [paradef-literal]: 
colors
asciidoc: WARNING: perf-config.txt: line 69: missing style: [paradef-literal]: 
tui
asciidoc: WARNING: perf-config.txt: line 75: missing style: [paradef-literal]: 
buildid
asciidoc: WARNING: perf-config.txt: line 79: missing style: [paradef-literal]: 
annotate
asciidoc: WARNING: perf-config.txt: line 86: missing style: [paradef-literal]: 
help
asciidoc: WARNING: perf-config.txt: line 91: missing style: [paradef-literal]: 
ui
asciidoc: WARNING: perf-config.txt: line 94: missing style: [paradef-literal]: 
call-graph
  ASCIIDOC /tmp/build/perf/perf-sched.xml

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v11 02/24] perf tools: Add perf-config document

2015-11-17 Thread Namhyung Kim
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 000..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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v11 02/24] perf tools: Add perf-config document

2015-11-17 Thread Namhyung Kim
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 000..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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/