Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2000 01:12:28 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Mark Murray <mark@grondar.za>
Cc:        arch@FreeBSD.ORG
Subject:   Re: "Monotonic" counter/register call - commit candidate. 
Message-ID:  <Pine.BSF.4.21.0011200106550.1644-100000@besplex.bde.org>
In-Reply-To: <200011182252.eAIMqPJ13415@gratis.grondar.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 19 Nov 2000, Mark Murray wrote:

> > > That function is kinda bloated; all I need is rdtsc() and its equivalents.
> > 
> > I'm not sure about that.  There are many interesting machine-dependent
> > counters.  E.g., the counter for the number of instructions executed
> > increases at a similar rate to the TSC but is more random.
> 
> I'm not looking for random. I'm looking for a fast counter.

You seem to want more than a fast counter.  The following implements a
fast counter:
---
u_int fast_counter;

	++fast_counter;
---

I will be away for a week and don't have time to reply any more to this
thread.

BTW, direct mail to you <mark@grondar.za> from me has been bouncing for
a couple of months.

Bruce



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?Pine.BSF.4.21.0011200106550.1644-100000>