Re: [PATCH] perf config: Add tips about a list option

From: Arnaldo Carvalho de Melo
Date: Thu Sep 29 2016 - 18:29:05 EST


Em Fri, Sep 30, 2016 at 06:27:48AM +0900, Nambong Ha escreveu:
> Add two tips that describe --list option of config sub-command
> and explain how to choose particular config file location.
>
> Signed-off-by: Nambong Ha <over3025@xxxxxxxxx>
> Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
> Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
> Cc: Taeung Song <taeung@xxxxxxxxxx>
> ---
> tools/perf/Documentation/tips.txt | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tools/perf/Documentation/tips.txt b/tools/perf/Documentation/tips.txt
> index 5950b5a..1929654 100644
> --- a/tools/perf/Documentation/tips.txt
> +++ b/tools/perf/Documentation/tips.txt
> @@ -28,3 +28,5 @@ To change sampling frequency to 100 Hz: perf record -F 100
> See assembly instructions with percentage: perf annotate <symbol>
> If you prefer Intel style assembly, try: perf annotate -M intel
> For hierarchical output, try: perf report --hierarchy
> +Show current config key-value pairs: perf config --list
> +If choosing particular config file location, e.g.: perf config --user -l

Humm, the second seems to use the context of the first, but these will
be chosen randomly, so the second needs to be rewritten to something
like:

Show user configuration overrides: perf config --user --list

No?

- Arnaldo