From: Andi Kleen <andi@firstfloor.org>
To: William Cohen <wcohen@redhat.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Some event modifiers missing from output and desire option to compute value based on measurements
Date: Thu, 13 Mar 2014 10:30:59 -0700 [thread overview]
Message-ID: <87siqmf1kc.fsf@tassilo.jf.intel.com> (raw)
In-Reply-To: <5321E3AC.8050600@redhat.com> (William Cohen's message of "Thu, 13 Mar 2014 12:58:20 -0400")
William Cohen <wcohen@redhat.com> writes:
> When experimenting with perf I wanted to have separate counts for events in userspace and the kernel. I used:
>
> $ perf stat -e instructions:u -e instructions:k -e cycles:u -e cycles:k -e cache-misses:u -e cache-misses:k make
>
> The associated output below includes the event modifiers for all the events, but the 3.06 and 0.37 insns per cycles look off. Shouldn't that instructions:u/cycles:u and instructions:k/cycles:k be the values reported for "insns per cycle"?
Yes the event match code currently assumes there's only a single event
each and always uses the last.
> It appears that the output is listing the measurements in the same
> order they are specified on the command line, but it would be nice if
> the output was clearer on the events being measured. If I am reading
> the output correctly, the L1-icache-load-misses per instruction is
> pretty poor for kernel-space. Much of the time I am looking at ratios
> of events and it would be nice if "perf stat" had a way to have it
> compute the ratios directly. Maybe a "-m, --math" option allowing
> algebraic expressions where you could do:
Most people just use -x, and load the result into a spread sheet or
other script that does the compuations. At some point you usually want
to plot the data or do other more complex manipulations than your
simple facility would provide.
You may also find this script useful
https://github.com/andikleen/pmu-tools/blob/master/interval-normalize.py
-Andi
--
ak@linux.intel.com -- Speaking for myself only
next prev parent reply other threads:[~2014-03-13 17:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 16:58 Some event modifiers missing from output and desire option to compute value based on measurements William Cohen
2014-03-13 17:30 ` Andi Kleen [this message]
2014-03-13 18:39 ` William Cohen
2014-03-21 12:49 ` Christopher Covington
2014-03-21 14:16 ` David Ahern
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=87siqmf1kc.fsf@tassilo.jf.intel.com \
--to=andi@firstfloor.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=wcohen@redhat.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 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.