Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Mar 2003 21:24:32 -0800 (PST)
From:      Kan Cai <kcai@cs.ubc.ca>
To:        Jan Knepper <jan@digitaldaemon.com>
Cc:        Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: 'ticks' in kernel.
Message-ID:  <Pine.GSO.4.53.0303032119350.23480@granville.cs.ubc.ca>
In-Reply-To: <3E64301E.5050901@digitaldaemon.com>
References:  <3E64301E.5050901@digitaldaemon.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Probably you could try this:

"
asm volatile(".byte 0x0f, 0x31" : "=A" (tstart));

asm volatile(".byte 0x0f, 0x31" : "=A" (tend));
"

it should be right for X86 platform.

--Ken

On Mon, 3 Mar 2003, Jan Knepper wrote:

> Any one have an idea how to pull the value for 'ticks' (kern_clock.c)
> from the kernel?
> I have looked into sysctl, but could not find "how to".
> I am overlooking something?
> Thanks!
> Jan
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hackers" in the body of the message
>

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




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