Date: Sun, 19 Nov 2000 09:47:55 +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.0011190932340.767-100000@besplex.bde.org> In-Reply-To: <200011182104.eAIL4YJ13194@gratis.grondar.za>
next in thread | previous in thread | raw e-mail | index | archive | help
> > I hesitate to mention that we already have an imperfectly good function > > for access to certain machine-dependent counters: cputime(). It is > > only implemented on i386's and only used for profiling. It is almost > > as slow as a timecounter (not all that slow). > > 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. 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.0011190932340.767-100000>