Re: [PATCH 1/4] perf tools: Improve ambiguous option help message
From: Ingo Molnar
Date: Sun Oct 25 2015 - 04:48:43 EST
* Namhyung Kim <namhyung@xxxxxxxxxx> wrote:
> Currently if an option name is ambiguous it only prints first two
> matched option names but no help. It'd be better it could show all
> possible names and help messages too.
>
> Before:
> $ perf report --show
> Error: Ambiguous option: show (could be --show-total-period or
> --show-ref-call-graph)
> Usage: perf report [<options>]
>
> After:
> $ perf report --show
> Error: Ambiguous option: show (could be --show-total-period or
> --show-ref-call-graph)
> Usage: perf report [<options>]
>
> -n, --show-nr-samples
> Show a column with the number of samples
> --showcpuutilization
> Show sample percentage for different cpu modes
> -I, --show-info Display extended information about perf.data file
> --show-total-period
> Show a column with the sum of periods
> --show-ref-call-graph
> Show callgraph from reference event
Very nice touch!
Acked-by: Ingo Molnar <mingo@xxxxxxxxxx>
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/