From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329AbdKTWhp (ORCPT ); Mon, 20 Nov 2017 17:37:45 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:36154 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751149AbdKTWhn (ORCPT ); Mon, 20 Nov 2017 17:37:43 -0500 X-Google-Smtp-Source: AGs4zMborqhPc6YjxtmIpEG0OJB92b+XXsG6sYbompJelT4tHLDX+WzSXuEbgfRJcPX+NzQghoWEeA== Subject: Re: [RFC] perf script: modify field selection option To: Stephane Eranian , LKML Cc: Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , mingo@elte.hu, Andi Kleen References: From: David Ahern Message-ID: <3289185b-f366-35cb-1733-cc35d15c5228@gmail.com> Date: Mon, 20 Nov 2017 15:37:41 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/17 1:53 PM, Stephane Eranian wrote: > 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. > > Any better suggestions? > -all,... ?