From: Andi Kleen <andi@firstfloor.org>
To: Yuanfang Chen <tabloid.adroit@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: measuring offcore events on snb
Date: Sat, 15 Sep 2012 15:51:55 -0700 [thread overview]
Message-ID: <m2txuyyk50.fsf@firstfloor.org> (raw)
In-Reply-To: <loom.20120915T194641-95@post.gmane.org> (Yuanfang Chen's message of "Sat, 15 Sep 2012 17:50:23 +0000 (UTC)")
Yuanfang Chen <tabloid.adroit@gmail.com> writes:
> Hi,
>
> I'm trying to measure offcore events on snb. (kernel 3.6.0-rc3). For example
> OFFCORE_RESPONSE.ALL_CODE_RD.LLC_HIT_N is 0x10003C0244 according to
> intel manual. so I tried
>
> perf stat -e r1b710003C0244 -- sleep 10
> perf stat -e r10003C02441b7 -- sleep 10
>
> both gives me 0, I did something wrong?
OFFCORE requires setting an external MSR. perf currently supports this
for its integrated events, as the support for setting the MSR directly
was not accepted. It works though to write the MSR manually through
/dev/cpu/*/msr, as long as you exclude conflicts manually.
For details see the Intel SDM.
-Andi
--
ak@linux.intel.com -- Speaking for myself only
next prev parent reply other threads:[~2012-09-15 22:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-15 17:50 measuring offcore events on snb Yuanfang Chen
2012-09-15 22:51 ` Andi Kleen [this message]
2012-09-16 1:06 ` Vince Weaver
2012-09-16 3:02 ` Andi Kleen
2012-09-16 5:40 ` Yuanfang Chen
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=m2txuyyk50.fsf@firstfloor.org \
--to=andi@firstfloor.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=tabloid.adroit@gmail.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.