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 [EMAIL PROTECTED] for PGP public key
See complete headers for address and phone numbers


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to