From: Keir Fraser Subject: Re: lock contention measuring code? Date: Tue, 07 Apr 2009 22:35:12 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit 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: Dan Magenheimer , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 07/04/2009 19:41, "Dan Magenheimer" wrote: >> I don't remember such a patch. > > Hmmm... maybe it was a patch in xenlinux? > >> probably wouldn't be hard to knock something up? > > Maybe if I were an x86 assembly guru ;-) It doesn't need to be done in assembly code. The spinlock C functions are all in C file common/spinlock.c and all the try-and-spin logic is implemented in C now. Only try-to-take-lock and unlock are in asm. -- Keir