From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbdKUOfy (ORCPT ); Tue, 21 Nov 2017 09:35:54 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59378 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751251AbdKUOfx (ORCPT ); Tue, 21 Nov 2017 09:35:53 -0500 Date: Tue, 21 Nov 2017 12:35:50 -0200 From: Arnaldo Carvalho de Melo To: Stephane Eranian Cc: LKML , Jiri Olsa , Peter Zijlstra , mingo@elte.hu, Andi Kleen , David Ahern Subject: Re: [RFC] perf script: modify field selection option Message-ID: <20171121143550.GA2187@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 21 Nov 2017 14:35:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Nov 20, 2017 at 12:53:04PM -0800, Stephane Eranian escreveu: > Hi, > > I have been using the perf script -F option on the latest perf and I > find it not very convenient to use. I appreciate the + and - prefix to > field names to add or suppress them. But most of the time, I want to > print only one or two fields and I have to guess which ones are there > by default so I can suppress them. I think there should be a way to > say: start from no fields. I understand why you have default to > maintain compatibility with older perf script but I would like a > syntax to say: remove defaults. For instance: > > $ perf script -F --,+ip,+syms ..... > > Where -- would mean drop all defaults. $ perf script -F -*,+ip,+syms But perhaps using a new option and do away with all those prefixes? - Arnaldo