Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 07:37:12 -0400
From:      "Christopher Harrer" <charrer@alacritech.com>
To:        "Freebsd-Hackers" <freebsd-hackers@FreeBSD.ORG>
Subject:   Determining CPU on SMP box
Message-ID:  <POELKPJGDHAPIPMEMHGACELJCIAA.charrer@alacritech.com>

next in thread | raw e-mail | index | archive | help
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.

Thanks!

Chris



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?POELKPJGDHAPIPMEMHGACELJCIAA.charrer>