Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1501408

Re: [PATCH 04/27] perf list: Add support for listing only json events

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 04/27] perf list: Add support for listing only json events
Date 2016-10-16 09:00 +0200
Message-ID <ssNAl-2gL-1@gated-at.bofh.it> (permalink)
References <srR3j-5Qh-7@gated-at.bofh.it> <srRd0-5TH-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Arnaldo Carvalho de Melo <acme@kernel.org> wrote:

> From: Andi Kleen <ak@linux.intel.com>
> 
> Add an argument to only list json events. To be used for the command
> line completion script. This requires adding a new flag to the alias
> structure.
> 
> Committer notes:
> 
> Using it:
> 
>   $ perf list json

Sigh, this is a pretty poor user interface. :-(

 - 'JSON' is an internal data format used by the source code and by vendors to 
   publish event lists. perf might use something else in the future to store the 
   events (for example native .c/.h files) - we don't know. Why should the user 
   care or remember?

 - Also, even if the user remembers, it's not clear that using a weird acronym 
   that does not mean much in itself is a good way to key off a high level user 
   interface. Acronyms Seriously Suck.

 - The output of 'perf list help' is not really helpful either, so the user who 
   knows that there's "something" to list the vendor hardware events is still 
   stuck. Also, 'perf list hardware' will list the wrong things.

What we do know about the CPU vendor event names is that they are vendor specific, 
and that's a pretty stable property. So my suggestion would be to simply make it:

	perf list vendor

with perhaps add aliases as well:

	perf list model
	perf list cpu-model

... and 'perf list hardware' should probably also list all the vendor specific 
hardware events as well.

Could we please work a bit more on making vendor specific hardware event handling 
more usable to people who don't care about internals?

Thanks,

	Ingo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 04/27] perf list: Add support for listing only json events Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-10-13 18:40 +0200
  Re: [PATCH 04/27] perf list: Add support for listing only json events Ingo Molnar <mingo@kernel.org> - 2016-10-16 09:00 +0200
    Re: [PATCH 04/27] perf list: Add support for listing only json events Andi Kleen <ak@linux.intel.com> - 2016-10-17 16:00 +0200
      [GIT PULL] Re: [PATCH 04/27] perf list: Add support for listing only  json events Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-10-17 16:30 +0200
        Re: [GIT PULL] Re: [PATCH 04/27] perf list: Add support for listing  only json events Ingo Molnar <mingo@kernel.org> - 2016-10-17 17:00 +0200

csiph-web