From: Robert Richter <robert.richter@amd.com>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Vince Weaver <vweaver1@eecs.utk.edu>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
Stephane Eranian <eranian@google.com>,
"Przywara, Andre" <Andre.Przywara@amd.com>
Subject: Re: [patch] perf_events: even more wrong events for AMD fam10h
Date: Mon, 27 Jun 2011 17:51:06 +0200 [thread overview]
Message-ID: <20110627155106.GG4590@erda.amd.com> (raw)
In-Reply-To: <1309173741.6701.104.camel@twins>
On 27.06.11 07:22:21, Peter Zijlstra wrote:
> 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?
Vince,
do you think it is worth to introduce l1-dcache-access?
>
> > 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.
It is still event 0x41, but bit 0 of the unit mask is set now for
family 15h.
>
> > 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?
Will look at this.
>
> > 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?
>
We will review all predefined events.
Thanks,
-Robert
--
Advanced Micro Devices, Inc.
Operating System Research Center
next prev parent reply other threads:[~2011-06-27 15:54 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
2011-06-27 15:51 ` Robert Richter [this message]
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=20110627155106.GG4590@erda.amd.com \
--to=robert.richter@amd.com \
--cc=Andre.Przywara@amd.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=eranian@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--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