From owner-freebsd-hackers Tue Oct 24 4:39:13 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.alacritech.com (smtp.alacritech.com [209.10.208.82]) by hub.freebsd.org (Postfix) with ESMTP id 0710B37B479 for ; Tue, 24 Oct 2000 04:39:12 -0700 (PDT) Received: from [10.1.10.18] by smtp.alacritech.com (NTMail 4.30.0012/NY3553.00.2884f51f) with ESMTP id sgnjaaaa for ; Tue, 24 Oct 2000 04:36:55 -0700 From: "Christopher Harrer" To: "Freebsd-Hackers" Subject: Determining CPU on SMP box Date: Tue, 24 Oct 2000 07:37:12 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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