Received: by 10.223.164.202 with SMTP id h10csp4419861wrb; Mon, 20 Nov 2017 15:23:04 -0800 (PST) X-Google-Smtp-Source: AGs4zMZJFdMUV9aMGW8cooPFQgoN9snoS8MzmIBc/J/ruFSSusyMEV3CRR+Ed2+vdBqIupNSfzDx X-Received: by 10.99.159.25 with SMTP id g25mr14715659pge.176.1511220184646; Mon, 20 Nov 2017 15:23:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511220184; cv=none; d=google.com; s=arc-20160816; b=TmuDkXBmdfjvxchQkB8oiivqGEVSFVLIrRTRRk6lkjn/1EJQhyNmru8dZqz9DXddQS hbSl7V8XY9xtWj3Aqwn6MgLGZyZgofsSlZujXh7SqXmdvx/yCzWd+yjL3dDYg4Fxqsgu ohjY/pCJhDjxgCy6wduCKvniaokisW5U4N1J7lAJ1ISNOd8R58AN2XT7bTueMuluZeTW Y0zNYgP5Zkb/wJNQTCoyirakbOpEICTtTcAH1Zc1Mx37/II9kkwGtPAoqXlO7DJhx/xw ZqOqKzNciMWj0WsVSqi0BYY7x7kugwH5bQEvMMs+gT4oJWl2VdTnP/3LAaxlMExHl+Yx o2Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=qYke5hwvNc7I+5FOiycUL56eVAjLYv6NWgDhDWTkb8o=; b=nasFA34AM4tTSJ6sBbpURKllciA02ktWigfV0cZUH5RzZAZj5J1YN59KPb9jFg14q0 ldlp7BKAu/Y907IgrDeD31h89YjDOYm7SQg4YK/wEkFQ5lLN5+wOsGLW/MqZYS2H60r0 PYFpk2kQNSgzjonWqqYCMptNL6IIQoqkL4hyy+gBQEGKwKKPyc+kiGDI1gmmihda1wDQ e8Y4I1kjI/5QOaXnUeWzIKrguo6P4nuL7kMSI16vKHeNZaRN3rJS1jW+qit3lXnI79oN 8SuLAwgu1QBoFQGdX0/66XAi1dujv4VDsQQuLy82mSpJF2X89qvMD7nFX9+bFmA9ryxE 8Fwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ud9pDkoN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q80si10162703pfj.192.2017.11.20.15.22.54; Mon, 20 Nov 2017 15:23:04 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=ud9pDkoN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751717AbdKTXVE (ORCPT + 69 others); Mon, 20 Nov 2017 18:21:04 -0500 Received: from mail-it0-f46.google.com ([209.85.214.46]:37761 "EHLO mail-it0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159AbdKTXVC (ORCPT ); Mon, 20 Nov 2017 18:21:02 -0500 Received: by mail-it0-f46.google.com with SMTP id m191so13790234itg.2 for ; Mon, 20 Nov 2017 15:21:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qYke5hwvNc7I+5FOiycUL56eVAjLYv6NWgDhDWTkb8o=; b=ud9pDkoNAv9PqCmXm2tn6S6Z6tWICz3bi4AflY9da/URZAI3ctPXuT2A6arkuU5WFd PhFAIzui1TD4FBr3/QDSFE2KTXACdDUcQ6N1FV5URLSZNwHTUylLQRdDICrRcYp+Yo4r LWUQyzsAU/xi1XB+GoDhCIhwAcsFD1en6pMm3jGY4a5jQN5hdZtp+3q0LDCAx/IFCk92 HNgmLIeG2avbG7+aRl71iaV/MLUZ9IYenWobtOMz4SYLnjwCI1X4VM3Mkg7ca1h7Qo3o frL7tdLtYZM4wMlRv84WDWu3Kg/UeoMz5zZwLkTZLtN6auy0iV2HsFGZ5+3Elwo8Ut6t q32g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qYke5hwvNc7I+5FOiycUL56eVAjLYv6NWgDhDWTkb8o=; b=jNow+WENN+LnQ1jMmWJXo91Pvyl+myUPoaY3kqh2f65hyj0oEqrU0EzaxxnTOuHK7/ Dv/edMHV820m3iCUlLLLYPhIU8Lo4KX+IIfMJ7u+XBU3jvrJ4WQySmP5X+U6hgLaePn1 TGxQtUfsmOXVQpz5X9Ai8L1TFMtimZayD1XU5TiW7S2KHtZK1ECY5FlUK6tAKfDj47vG 1Xmpnd6J2MccwYfNxWTmxB1DM4qNg/p7zl/JVbSsr1VYi1jCC1dfBOqzC1ayK4SYONPR wDfLN8UC2BtjVC+yJcuI0I9wRMYRTBp2BXsdcsACIbE/jSTrd/uh7zZRBurn2wZIhAeB kJ9Q== X-Gm-Message-State: AJaThX6xToovHto9fmBk9lApUSUYVKy609/xk2ZEYJ7ZYG1phXZBJ/Az GZTIigpjwX085Its32u6XKooABUNKaAxGtzoJuiiww== X-Received: by 10.36.175.17 with SMTP id t17mr21444106ite.66.1511220061723; Mon, 20 Nov 2017 15:21:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.164.15 with HTTP; Mon, 20 Nov 2017 15:21:01 -0800 (PST) In-Reply-To: <1733994.9IGknXt0fT@agathebauer> References: <1733994.9IGknXt0fT@agathebauer> From: Stephane Eranian Date: Mon, 20 Nov 2017 15:21:01 -0800 Message-ID: Subject: Re: [RFC] perf script: modify field selection option To: Milian Wolff Cc: LKML , Jiri Olsa , Arnaldo Carvalho de Melo , Peter Zijlstra , mingo@elte.hu, Andi Kleen , David Ahern Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 20, 2017 at 2:50 PM, Milian Wolff wrote: > 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 > Ah, yes, looks like it. problem solved then. Thanks. From 1584627221648195786@xxx Mon Nov 20 22:51:22 +0000 2017 X-GM-THRID: 1584619914255435599 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread