From: "Robert Richter" <robert.richter@amd.com>
To: "Barry Kasindorf" <barry.kasindorf@amd.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2.6.23] oProfile: op_model_athalon.c support for AMD Family10h (Barcelona) Performance Counters
Date: Mon, 15 Oct 2007 19:48:03 +0200 [thread overview]
Message-ID: <20071015174802.GS11245@erda.amd.com> (raw)
In-Reply-To: <47139CAB.4000107@amd.com>
On 15.10.07 13:00:27, Barry Kasindorf wrote:
>
> oProfile Driver Module Patch for AMD Family10h Kernel 2.6.23
> This patch is for controlling the upper 32bits of the event ctrl msrs.
> This includes the upper 4 bits of the event select and the Guest Only
> and Host Only bits
> This patch is necessary to make Event Based Profiling work reliably on a
> Family10h processor
>
> ---
> op_model_athlon.c | 22 ++++++++++++++++------
> 1 file changed, 16 insertions(+), 6 deletions(-)
> ---
>
> Signed-off-by: Barry Kasindorf <barry.kasindorf@amd.com>
> Signed-off-by: Robert Richter <robert.richter@amd.com>
>
> diff -Naur linux-2.6.23.orig/arch/i386/oprofile/op_model_athlon.c
> linux-2.6.23.pmc/arch/i386/oprofile/op_model_athlon.c
> --- linux-2.6.23.orig/arch/i386/oprofile/op_model_athlon.c 2007-10-09
> 16:31:38.000000000 -0400
> +++ linux-2.6.23.pmc/arch/i386/oprofile/op_model_athlon.c 2007-10-15
> 11:02:39.000000000 -0400
[]
> @@ -70,7 +74,8 @@
> if (unlikely(!CTRL_IS_RESERVED(msrs,i)))
> continue;
> CTRL_READ(low, high, msrs, i);
> - CTRL_CLEAR(low);
> + CTRL_CLEAR_LO(low);
> + CTRL_CLEAR_HI(low);
Should be probably this:
CTRL_CLEAR_HI(high);
> CTRL_WRITE(low, high, msrs, i);
> }
>
[]
--
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com
next prev parent reply other threads:[~2007-10-15 17:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 17:00 [PATCH 2.6.23] oProfile: op_model_athalon.c support for AMD Family10h (Barcelona) Performance Counters Barry Kasindorf
2007-10-15 17:48 ` Robert Richter [this message]
2007-10-15 18:07 ` Barry Kasindorf
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=20071015174802.GS11245@erda.amd.com \
--to=robert.richter@amd.com \
--cc=barry.kasindorf@amd.com \
--cc=linux-kernel@vger.kernel.org \
/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