From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Vince Weaver <vweaver1@eecs.utk.edu>
Cc: linux-kernel@vger.kernel.org, Paul Mackerras <paulus@samba.org>,
Ingo Molnar <mingo@elte.hu>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
Robert Richter <robert.richter@amd.com>,
Stephane Eranian <eranian@google.com>,
Andre Przywara <andre.przywara@amd.com>
Subject: Re: [patch] perf_events: even more wrong events for AMD fam10h
Date: Mon, 27 Jun 2011 13:22:21 +0200 [thread overview]
Message-ID: <1309173741.6701.104.camel@twins> (raw)
In-Reply-To: <alpine.DEB.2.00.1106071701560.21714@cl320.eecs.utk.edu>
On Tue, 2011-06-07 at 17:07 -0400, Vince Weaver wrote:
> Here are two more problems I found with the superlative "generalized"
> events on AMD fam10h.
>
> The "l1-dcache-loads" event measures loads *and* stores.
> This might be as close as you can get on AMD, but it's still wrong
> as it's not what Intel measures.
> My patch removes it. Better might be to add a proper
> "l1-dcache-access" event.
The question to ask is, does it still have a strong correlation?
> The "l1-dcache-load-miss" event is an invalid event. (0x141).
> From what I can tell that event (DATA_CACHE_MISSES) does not
> take a mask. It should be 0x41. And it's actually measuring
> all misses, not just load misses, see above.
See commit 83112e688f5f05dea1e63787db9a6c16b2887a1d. Also same as above.
> The "l1-dcache-stores" event does not work. See the
> ./validation/l1-dcache-stores test found in
> http://web.eecs.utk.edu/~vweaver1/projects/perf-events/validation.html
> So remove it until we figure out why.
>
Robert?
> Also, is the value for "no such event" 0 or -1? The perf_event_amd.c
> file seems to use them interchangably from what I can tell.
val = hw_cache_event_ids[cache_type][cache_op][cache_result];
if (val == 0)
return -ENOENT;
if (val == -1)
return -EINVAL;
But yeah, somewhat inconsistent. Robert, Andre, could you guys go over
the AMD events some time?
next prev parent reply other threads:[~2011-06-27 11:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-07 19:39 [patch] perf_events: more wrong events for AMD fam10h Vince Weaver
2011-06-07 21:07 ` [patch] perf_events: even " Vince Weaver
2011-06-27 11:22 ` Peter Zijlstra [this message]
2011-06-27 15:51 ` Robert Richter
2011-06-28 16:32 ` Vince Weaver
2011-06-28 16:20 ` Vince Weaver
2011-06-27 11:22 ` [patch] perf_events: " Peter Zijlstra
2011-06-27 13:38 ` Robert Richter
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=1309173741.6701.104.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=andre.przywara@amd.com \
--cc=eranian@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=robert.richter@amd.com \
--cc=vweaver1@eecs.utk.edu \
/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