Date: Wed, 25 Oct 2000 08:53:03 -0400 From: "Christopher Harrer" <charrer@alacritech.com> To: "Greg Lehey" <grog@lemis.com> Cc: "Freebsd-Hackers" <freebsd-hackers@FreeBSD.ORG> Subject: RE: Determining CPU on SMP box Message-ID: <POELKPJGDHAPIPMEMHGAEEPBCIAA.charrer@alacritech.com> In-Reply-To: <20001025132903.B87564@wantadilla.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I'm using version 4.1. Thanks, Chris -----Original Message----- From: owner-freebsd-hackers@FreeBSD.ORG [mailto:owner-freebsd-hackers@FreeBSD.ORG]On Behalf Of Greg Lehey Sent: Tuesday, October 24, 2000 11:59 PM To: Christopher Harrer Cc: Freebsd-Hackers Subject: Re: Determining CPU on SMP box 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 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?POELKPJGDHAPIPMEMHGAEEPBCIAA.charrer>