From owner-freebsd-hackers Mon Mar 3 21:24:40 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7D6F37B401 for ; Mon, 3 Mar 2003 21:24:38 -0800 (PST) Received: from pedigree.cs.ubc.ca (pedigree.cs.ubc.ca [142.103.6.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0494843F93 for ; Mon, 3 Mar 2003 21:24:38 -0800 (PST) (envelope-from kcai@cs.ubc.ca) Received: from granville.cs.ubc.ca (granville.cs.ubc.ca [142.103.7.20]) by pedigree.cs.ubc.ca (8.12.8/8.11.4) with ESMTP id h245OWkZ012322; Mon, 3 Mar 2003 21:24:32 -0800 (PST) Date: Mon, 3 Mar 2003 21:24:32 -0800 (PST) From: Kan Cai To: Jan Knepper Cc: Hackers Subject: Re: 'ticks' in kernel. In-Reply-To: <3E64301E.5050901@digitaldaemon.com> Message-ID: References: <3E64301E.5050901@digitaldaemon.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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