From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 3 08:15:22 2011 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9CEC1065672 for ; Sun, 3 Apr 2011 08:15:22 +0000 (UTC) (envelope-from andreast@FreeBSD.org) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id 769F08FC12 for ; Sun, 3 Apr 2011 08:15:21 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id p337wYlK030342 for ; Sun, 3 Apr 2011 09:58:36 +0200 (CEST) (envelope-from andreast@FreeBSD.org) Message-ID: <4D9828AA.3030206@FreeBSD.org> Date: Sun, 03 Apr 2011 09:58:34 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Cc: Subject: kernel dumps on powerpc/pmap questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2011 08:15:22 -0000 Hello all, to investigate a system lockup I need to implement kerneldumps on powerpc. Well, exactly on PowerMacs. The booke should already support this feature. Right now I'm at the point where I can dump something, means the mechanism to be able to get a (core) dump for example via 'call doadump' in db works. I can restore the dump via savecore. I took the approach from booke and implemented the necessary functions for PowerMacs. But here I'm offline. I do not understand what I want to dump, means which part of the memory. Once I know what to dump, where do I find the information, which addresses? How can I get a picture of the memory organization form powermacs? Is there a pointer available about pmap in the kernel to find out a bit more on this topic? What is really needed to be able to run kgdb on a core file to be able to find where the kernel crashed? I know the questions are a bit vague, but I need an entry point. I appreciate any pointer to implement this feature. Tia, Andreas