Date: Wed, 25 Oct 2000 13:29:03 +0930 From: Greg Lehey <grog@lemis.com> To: Christopher Harrer <charrer@alacritech.com> Cc: Freebsd-Hackers <freebsd-hackers@FreeBSD.ORG> Subject: Re: Determining CPU on SMP box Message-ID: <20001025132903.B87564@wantadilla.lemis.com> In-Reply-To: <POELKPJGDHAPIPMEMHGACELJCIAA.charrer@alacritech.com>; from charrer@alacritech.com on Tue, Oct 24, 2000 at 07:37:12AM -0400 References: <POELKPJGDHAPIPMEMHGACELJCIAA.charrer@alacritech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, 24 October 2000 at 7:37:12 -0400, Christopher Harrer wrote: > Hello All, > > Is there a way to determine which CPU I'm currently executing on in a SMP > box? I've found references to proc->p_oncpu, but I'm not sure if this is > the best way to determine where I'm executing. I'd like to be able to > "trace" various actions within my driver and one of the fields I want to > keep track of is what CPU I'm executing on. Which version of FreeBSD? 5-CURRENT has the ktr functions, which you could use for your tracing. They include CPU information. Unfortunately we don't have a man page yet. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers 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?20001025132903.B87564>