All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: Stephane Eranian <eranian@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>, Jiri Olsa <jolsa@redhat.com>,
	Peter Zijlstra <peterz@infradead.org>,
	mingo@elte.hu, Andi Kleen <ak@linux.intel.com>,
	David Ahern <dsahern@gmail.com>
Subject: Re: [RFC] perf script: modify field selection option
Date: Tue, 21 Nov 2017 12:35:50 -0200	[thread overview]
Message-ID: <20171121143550.GA2187@redhat.com> (raw)
In-Reply-To: <CABPqkBQtXcbaimPYf9-QNHQgakJFx7SjGStbDLZ1wKPYYSxzZg@mail.gmail.com>

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

      parent reply	other threads:[~2017-11-21 14:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-20 20:53 [RFC] perf script: modify field selection option Stephane Eranian
2017-11-20 22:37 ` David Ahern
2017-11-20 22:50 ` Milian Wolff
2017-11-20 23:21   ` Stephane Eranian
2017-11-21 14:36     ` Arnaldo Carvalho de Melo
2017-11-21 14:35 ` Arnaldo Carvalho de Melo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171121143550.GA2187@redhat.com \
    --to=acme@redhat.com \
    --cc=ak@linux.intel.com \
    --cc=dsahern@gmail.com \
    --cc=eranian@google.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.