From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Zhengyu He <zhengyuh@google.com>
Cc: Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
tglx@linutronix.de, hpa@zytor.com, x86@kernel.org,
Stephane Eranian <eranian@google.com>,
Venkatesh Pallipadi <venki@google.com>,
linux-kernel@vger.kernel.org,
Robert Richter <robert.richter@amd.com>,
Andre Przywara <andre.przywara@amd.com>
Subject: Re: [PATCH] perf: removed a non-existent event "L1-icache-prefetches" for AMD processors
Date: Tue, 28 Jun 2011 12:47:43 +0200 [thread overview]
Message-ID: <1309258063.6701.198.camel@twins> (raw)
In-Reply-To: <1309211910-2803-1-git-send-email-zhengyuh@google.com>
On Mon, 2011-06-27 at 14:58 -0700, Zhengyu He wrote:
> According to AMD's "BIOS and Kernel Developer's Guide for AMD NPT Family
> 0Fh Processors"
> (http://support.amd.com/us/Processor_TechDocs/32559.pdf), 0x4B is for
> prefetch instructions dispatched, and 0x14B is for the load prefetch
> instructions including Pretech and PrefetchT0/T1/T2. No event for the
> instructions preteched into L1I cache is found.
>
> Signed-off-by: Zhengyu He <zhengyuh@google.com>
Hmm, indeed, its prefetch instructions issues, but not instruction
prefetches, Robert, Andre agreed?
> ---
> arch/x86/kernel/cpu/perf_event_amd.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/perf_event_amd.c b/arch/x86/kernel/cpu/perf_event_amd.c
> index fe29c1d..3b7f21d 100644
> --- a/arch/x86/kernel/cpu/perf_event_amd.c
> +++ b/arch/x86/kernel/cpu/perf_event_amd.c
> @@ -29,7 +29,7 @@ static __initconst const u64 amd_hw_cache_event_ids
> [ C(RESULT_MISS) ] = -1,
> },
> [ C(OP_PREFETCH) ] = {
> - [ C(RESULT_ACCESS) ] = 0x014B, /* Prefetch Instructions :Load */
> + [ C(RESULT_ACCESS) ] = 0,
> [ C(RESULT_MISS) ] = 0,
> },
> },
prev parent reply other threads:[~2011-06-28 10:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-27 21:58 [PATCH] perf: removed a non-existent event "L1-icache-prefetches" for AMD processors Zhengyu He
2011-06-28 10:47 ` Peter Zijlstra [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=1309258063.6701.198.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=andre.przywara@amd.com \
--cc=eranian@google.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=robert.richter@amd.com \
--cc=tglx@linutronix.de \
--cc=venki@google.com \
--cc=x86@kernel.org \
--cc=zhengyuh@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