From: "Niraj Tolia" Subject: Re: [PATCH] Fix xenoprof counter overflow check Date: Tue, 6 Jan 2009 14:24:15 -0800 Message-ID: <7e45e2ac0901061424q13d28cbdla21bc0ea989568d9@mail.gmail.com> References: <7e45e2ac0901061037j19a8303eq792603eec4fb4735@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2012424042==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2012424042== Content-Type: multipart/alternative; boundary="----=_Part_197574_22197505.1231280655111" ------=_Part_197574_22197505.1231280655111 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tue, Jan 6, 2009 at 2:15 PM, Keir Fraser wrote: > On 06/01/2009 18:37, "Niraj Tolia" wrote: > > > While the mainline patch won't build, the one attached definitely does. > That > > said, I see your point about the overflow. Now I need to figure out why > this > > broken patch actually enables xenoprof to work on my Intel Xeon. The only > > reason would be the switch from CTR_READ() (which uses rdmsr() > internally) to > > rdmsrl() but let me dig into it. > > The patch absolutely did not build. There were still references to local > variables ('low' and 'high') that you removed the definitions of. > Ah. My patch was generated against xen-3.3-testing.hg. I just noticed that the same function has a number of changes in xen-unstable and would cause a build failure. Sorry about that. Niraj > > -- Keir > > > -- Niraj Tolia, Researcher, HP Labs http://www.hpl.hp.com/personal/Niraj_Tolia/ ------=_Part_197574_22197505.1231280655111 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Tue, Jan 6, 2009 at 2:15 PM, Keir Fraser <keir.fraser@eu.citrix.com> wrote:
On 06/01/2009 18:37, "Niraj Tolia" <ntolia@gmail.com> wrote:

> While the mainline patch won't build, the one attached definitely does. That
> said, I see your point about the overflow. Now I need to figure out why this
> broken patch actually enables xenoprof to work on my Intel Xeon. The only
> reason would be the switch from CTR_READ() (which uses rdmsr() internally) to
> rdmsrl() but let me dig into it.

The patch absolutely did not build. There were still references to local
variables ('low' and 'high') that you removed the definitions of.


Ah. My patch was generated against xen-3.3-testing.hg. I just noticed that the same function has a number of changes in xen-unstable and would cause a build failure. Sorry about that.

Niraj
 

 -- Keir





--
Niraj Tolia, Researcher, HP Labs
http://www.hpl.hp.com/personal/Niraj_Tolia/
------=_Part_197574_22197505.1231280655111-- --===============2012424042== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2012424042==--