From owner-freebsd-arch Sat Nov 18 14:48:16 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id E2BB137B479 for ; Sat, 18 Nov 2000 14:48:12 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id JAA27161; Sun, 19 Nov 2000 09:47:56 +1100 Date: Sun, 19 Nov 2000 09:47:55 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Mark Murray Cc: arch@FreeBSD.ORG Subject: Re: "Monotonic" counter/register call - commit candidate. In-Reply-To: <200011182104.eAIL4YJ13194@gratis.grondar.za> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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