Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755150AbZGVNHr (ORCPT ); Wed, 22 Jul 2009 09:07:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754673AbZGVNHq (ORCPT ); Wed, 22 Jul 2009 09:07:46 -0400 Received: from viefep19-int.chello.at ([62.179.121.39]:58542 "EHLO viefep19-int.chello.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754062AbZGVNHq (ORCPT ); Wed, 22 Jul 2009 09:07:46 -0400 X-SourceIP: 213.93.53.227 Subject: Re: [PATCH] perf_counter: Improve perf stat and perf record option parsing From: Peter Zijlstra To: Anton Blanchard Cc: mingo@elte.hu, paulus@samba.org, fweisbec@gmail.com, linux-kernel@vger.kernel.org In-Reply-To: <20090722130412.GD9029@kryten> References: <20090722130412.GD9029@kryten> Content-Type: text/plain Date: Wed, 22 Jul 2009 15:08:55 +0200 Message-Id: <1248268135.27058.1414.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 760 Lines: 23 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 I queued it, thanks Anton. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/