Received: by 10.223.164.202 with SMTP id h10csp4391849wrb; Mon, 20 Nov 2017 14:51:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ90LDFEyDj2pBBB494LqQOGd+exZBmmfPKvgKi4UyEje/M+eoAR6KvZV+QV8x0G6jx49hg X-Received: by 10.101.78.5 with SMTP id r5mr14626565pgt.94.1511218282042; Mon, 20 Nov 2017 14:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511218282; cv=none; d=google.com; s=arc-20160816; b=XrK7Ji3xvDglLoRODOnlNoZH39bwGCFYYJj6EaIENxKbcoy7DMK2IUXB2yMXQ2FoYc 7j+Cpox4Ur+7AQ/WM46gOs94QGy7XMF6Fs52a55K9tDeenh4+keUm7DQSKO/5IJUsPb3 Oig5SlXQJ1nyZugAJbtBhPW6OcHH929sEOSuizV3cCVO5hHKA6TtrCiiGwbRWWt1oq99 CJEs0+cdjtgYlKFa5Ji5+zpze43sZb340bpO/+pcn4xdohDsdjlIwlq9LSmc+1MQ/Q+R FBRuwQ4SzitrERQHv4GkX6zgmeRmR5r+mJbbdc/uHTeunvKxWDKVawfO8JfMcb8diLNv qStA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:arc-authentication-results; bh=hPT3pHeuJSrJ3XWAVH0tzWLMTO2CHZHEiOS6yEl4/Ao=; b=iCcSyKzQqfuGVkLK4/p9dMTjgq45t8NtwYpj8HeOeTKiA/oPZWwxL7z6pkNRFbZwtY f6tYsh+4Xs8EQhqBzUcRlFOcNUSqQS6mh+YhblbBt2HfszS+808O/5ddJ1SPXSN8ChaP M8svbXhrRar1JrelqFEogbuPfn7xO1XZ83ySweYNbbl7yZiwph3GW0saKYtgw3GXzNmH zjLxTsQ1XieG40cxnikGxSaVHVHl3qXlaDwswHPFKjM77tqCopJ0GBJ5ZdEb8/mGF4Tv 52UbgUUjGMpFTEL1LWgKreiZisZ14rpB4za9tHGbbYMXbPqbI1U0AdLwN7eRv4Eg07P0 uRtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z186si9102733pgb.356.2017.11.20.14.51.11; Mon, 20 Nov 2017 14:51:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751292AbdKTWud (ORCPT + 68 others); 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 X-Virus-Scanned: amavisd-new at kdab.com 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 Precedence: bulk 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 From 1584626421384353554@xxx Mon Nov 20 22:38:39 +0000 2017 X-GM-THRID: 1584619914255435599 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread