From owner-freebsd-hackers Sun Jun 9 20:34:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from sharmas.dhs.org (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by hub.freebsd.org (Postfix) with ESMTP id 0C2EF37B403 for ; Sun, 9 Jun 2002 20:34:23 -0700 (PDT) Received: by sharmas.dhs.org (Postfix, from userid 500) id 1BF865E003; Sun, 9 Jun 2002 20:35:21 -0700 (PDT) Date: Sun, 9 Jun 2002 20:35:20 -0700 From: Arun Sharma To: freebsd-hackers@freebsd.org Subject: Kernel hacking questions Message-ID: <20020610033520.GA7795@sharma-home.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.27i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 1. Can I use a SMP kernel and bring it up with just one CPU on a two CPU machine ? 2. How do I trace back funcname+offset to a particular line of C code ? I tried objdump -d and gcc -S, but it's not easy to read. I thought there was a way to get gcc to interleave the C code and the generated assembly. I have a suspicion that in kern_mutex.c:510, if (td1->td_priority < td->td_priority) there may be circumstances in which td1 could be pointing to memory that has been freed. I've got a bunch of panics which result in kernel mode page faults at 0xdeadxxxx. Thanks! -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message