From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753656Ab3KAHiQ (ORCPT ); Fri, 1 Nov 2013 03:38:16 -0400 Received: from mail-ea0-f171.google.com ([209.85.215.171]:51371 "EHLO mail-ea0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752209Ab3KAHiO (ORCPT ); Fri, 1 Nov 2013 03:38:14 -0400 Date: Fri, 1 Nov 2013 08:38:11 +0100 From: Ingo Molnar To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Paul Mackerras , Namhyung Kim , LKML , Jiri Olsa , David Ahern Subject: Re: [PATCHSET 0/5] perf tools: Enhance option parsing error message Message-ID: <20131101073811.GE21471@gmail.com> References: <1383291195-24386-1-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1383291195-24386-1-git-send-email-namhyung@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Namhyung Kim wrote: > Hi, > > This patchset tries to enhance error message when perf failed to parse > option argument. Currently it just shows entire usage and options > which may fill two pages of screen. It's hard for me to say it's > really helpful to users. ;-) > > With this patch series, it changed to show only related option(s). > There're also more points to improve yet - like auto-breaking long > lines, dealing with UIs and so on. But I believe this will be a good > start. > > $ perf report -g help > > usage: perf report [] > > -g, --call-graph > Display callchains using output_type (graph, flat, fractal, or none) , min percent threshold, optional print limit, callchain order, key (function or address). Default: fractal,0.5,callee,function > > $ perf stat -Bx, ls > -B option not supported with -x > > usage: perf stat [] [] > > -B, --big-num print large numbers with thousands' separators > -x, --field-separator > print counts with custom separator > > > You can get this on 'perf/option-v1' branch in my tree > > git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git Cool! Acked-by: Ingo Molnar Reviewed-by: Ingo Molnar Enthusiastically-Supported-by: Ingo Molnar /me runs out of tags Thanks! Ingo