This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] lock contention measuring code?

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] lock contention measuring code?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 07 Apr 2009 22:35:12 +0100
Delivery-date: Tue, 07 Apr 2009 14:35:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d06cd723-8b7e-418b-85f7-f38c0d17a53a@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acm3sIEiiNNpVCsYQTy5SbPjckOw9AAGDoiC
Thread-topic: [Xen-devel] lock contention measuring code?
User-agent: Microsoft-Entourage/
On 07/04/2009 19:41, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> 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

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>