From: Anton Blanchard Date: Wed, 22 Jul 2009 13:04:12 +0000 (+1000) Subject: perf_counter: Improve perf stat and perf record option parsing X-Git-Tag: v2.6.31-rc4~3^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0541234f89c93f313961ce7b28676e11488a5f0;p=pandora-kernel.git perf_counter: Improve perf stat and perf record option parsing 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 Signed-off-by: Peter Zijlstra LKML-Reference: <20090722130412.GD9029@kryten> --- Reading git-diff-tree failed