public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: Tipp Moseley <tipp@google.com>
Cc: perfmon2-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org,
	Stephane Eranian <eranian@google.com>
Subject: Re: perf report/stat and symbolic event names
Date: Thu, 3 Feb 2011 11:40:03 -0200	[thread overview]
Message-ID: <20110203134003.GC10063@ghostprotocols.net> (raw)
In-Reply-To: <AANLkTikrV3fQ-qsOANG5X7zes1wxbO9mX1eev3xB_OzF@mail.gmail.com>

Em Wed, Feb 02, 2011 at 05:18:21PM -0800, Tipp Moseley escreveu:
> Hey Arnaldo, Stephane suggested I mail you for this feature request to the
> perf tool.
> 
> When I collect a "raw" event using perf record, perf report's output is
> pretty useless.  E.g.:
> # Events: 833  raw 0x3d500a0
> So when I collect multiple events, I have to refer to the command line used
> to collect the profile and line up the event flags to figure out what I was
> collecting.  With multiple collection runs, this can become quite confusing.
> 
> The perf.data file doesn't seem to have the symbolic name of the event
> present.
> Do you think it would be reasonable to add a field to the profile to include
> the symbolic description of the event as it was given on the command line
> (e.g., "RS_UOPS_DISPATCHED:u:i:e:c=3")?

Its definetely a good idea to record in the perf.data header section the
command line that was passed to perf record.

A new tool, 'perf ls' could then look for files with the perf.data magic
number and show the contents of this section.

Extra enhancements would include globbing, so that one could do:

$ perf ls *UOPS*
$ perf ls *httpd*

Etc.

Recording the perf record on the header was suggested by Ingo a long
time ago, I just didn't got to implement it :-\

If you can try to implement it, please see how build ids are encoded in
the perf.data header.

Otherwise I'll try to do it at some point.

- Arnaldo

      parent reply	other threads:[~2011-02-03 13:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTikrV3fQ-qsOANG5X7zes1wxbO9mX1eev3xB_OzF@mail.gmail.com>
2011-02-03  1:22 ` Fwd: perf report/stat and symbolic event names Tipp Moseley
2011-02-03 13:40 ` 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=20110203134003.GC10063@ghostprotocols.net \
    --to=acme@redhat.com \
    --cc=eranian@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perfmon2-devel@lists.sourceforge.net \
    --cc=tipp@google.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox