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


Groups > linux.kernel > #1724399

Re: [PATCH] perf tools: Fix syntax in documentation of intel-pt config option

From Arnaldo Carvalho de Melo <acme@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] perf tools: Fix syntax in documentation of intel-pt config option
Date 2017-08-31 18:40 +0200
Message-ID <ukAFA-7XG-13@gated-at.bofh.it> (permalink)
References <uksI3-38N-39@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Em Thu, Aug 31, 2017 at 10:05:35AM +0200, Jack Henschel escreveu:
> As specified in tools/perf/Documentation/perf-config.txt, perf
> configuration items must be in 'key = value' format, otherwise the
> following error message occurs:
> 
> $ perf record -e intel_pt//u -- ls
> bad config file line 2 in ~/.perfconfig
> $ cat .perfconfig
> [intel-pt]
>     mispred-all
> 
> Changing assigning a value to the key 'mispred-all' fixes the issue:
> $ perf record -e intel_pt//u -- ls
> [ perf record: Woken up 1 times to write data ]
> [ perf record: Capured and wrote 0.031 MB perf.data]
> $ cat .perfconfig
> [intel-pt]
>     mispred-all = true

You forgot to add your:

Signed-off-by: Jack Henschel <jackdev@mailbox.org>

I'm assuming you intended it, so I'm adding it to my local repository,
please ack this.

- Arnaldo

> ---
>  tools/perf/Documentation/intel-pt.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/perf/Documentation/intel-pt.txt b/tools/perf/Documentation/intel-pt.txt
> index 4b6cdbf8f935..a47d845b9b61 100644
> --- a/tools/perf/Documentation/intel-pt.txt
> +++ b/tools/perf/Documentation/intel-pt.txt
> @@ -873,7 +873,7 @@ amended to take the number of elements as a parameter.
>  
>  	$ cat ~/.perfconfig
>  	[intel-pt]
> -		mispred-all
> +		mispred-all = on
>  
>  	$ perf record -e intel_pt//u ./sort 3000
>  	Bubble sorting array of 3000 elements
> -- 
> 2.14.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] perf tools: Fix syntax in documentation of intel-pt config option Jack Henschel <jackdev@mailbox.org> - 2017-08-31 10:10 +0200
  Re: [PATCH] perf tools: Fix syntax in documentation of intel-pt  config option Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-08-31 18:40 +0200
  [tip:perf/urgent] perf intel-pt: Fix syntax in documentation of  config option tip-bot for Jack Henschel <tipbot@zytor.com> - 2017-09-05 07:40 +0200

csiph-web