Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2002 12:05:02 -0500
From:      Jake Burkholder <jake@locore.ca>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        arch@FreeBSD.ORG
Subject:   Re: mutex profiling
Message-ID:  <20020401120502.G207@locore.ca>
In-Reply-To: <xzp8z88e6i1.fsf@flood.ping.uio.no>; from des@ofug.org on Mon, Apr 01, 2002 at 12:07:18AM %2B0200
References:  <xzp8z88e6i1.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Apparently, On Mon, Apr 01, 2002 at 12:07:18AM +0200,
	Dag-Erling Smorgrav said words to the effect of;

> The attached patch (derived from patches by Eivind) adds code to
> record statistics about MTX_DEF locks.  It's currently i386-only as it
> uses the TSC to measure the amount of time each mutex is held.  Once

You can use the get_cyclecount() function as an MI way to read the tsc
or whatever cheap cyclecounter an architecture provides.  I think everything
we run on but i386 and i486 have one.

Jake

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020401120502.G207>