From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751299AbdKTWud (ORCPT ); Mon, 20 Nov 2017 17:50:33 -0500 Received: from mail.kdab.com ([176.9.126.58]:40320 "EHLO mail.kdab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159AbdKTWuc (ORCPT ); Mon, 20 Nov 2017 17:50:32 -0500 From: Milian Wolff To: Stephane Eranian Cc: LKML , Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , mingo@elte.hu, Andi Kleen , David Ahern Subject: Re: [RFC] perf script: modify field selection option Date: Mon, 20 Nov 2017 23:50:27 +0100 Message-ID: <1733994.9IGknXt0fT@agathebauer> Organization: KDAB (Deutschland) GmbH&Co KG, a KDAB Group company In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Montag, 20. November 2017 21:53:04 CET 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? Isn't `perf script -F ip,sym` what you want? Note the lack of any '+': $ perf script -F ip,sym | head -n 5 206aad x86_pmu_enable 380591 ctx_resched 380b46 __perf_event_enable 378716 event_function Cheers -- Milian Wolff | milian.wolff@kdab.com | Senior Software Engineer KDAB (Deutschland) GmbH&Co KG, a KDAB Group company Tel: +49-30-521325470 KDAB - The Qt Experts