Re: [PATCH] perf_counter: Improve perf stat and perf record optionparsing

From: Peter Zijlstra
Date: Wed Jul 22 2009 - 09:07:52 EST


On Wed, 2009-07-22 at 23:04 +1000, Anton Blanchard wrote:
> perf stat and perf record currently look for all options on the command
> line. This can lead to some confusion:
>
> # perf stat ls -l
> Error: unknown switch `l'
>
> While we can work around this by adding '--' before the command, the git
> option parsing code can stop at the first non option:
>
> # perf stat ls -l
> Performance counter stats for 'ls -l':
> ....
>
> Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>

I queued it, thanks Anton.

--
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/