From owner-freebsd-arch@FreeBSD.ORG Wed Dec 15 01:44:08 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E34AB16A4CF for ; Wed, 15 Dec 2004 01:44:08 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CABD43D53 for ; Wed, 15 Dec 2004 01:44:08 +0000 (GMT) (envelope-from csujun@gmail.com) Received: by mproxy.gmail.com with SMTP id q44so355984cwc for ; Tue, 14 Dec 2004 17:44:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=YxEh+ltoggJvqM0Q/foMWMxaGAvuUBtHzVxFGuF6B1FytRty7/Vy/O4MibAXtu7mmOW00pkq8jOVRfmuqURO6SloqZMWiZC1Jl9ipc/MSbXjLWDVcVSmbel6stpTVrvHG4Jrbe4nGLqudIXxTSlnc563MdvU9rGAerZBqOxybBA= Received: by 10.11.94.29 with SMTP id r29mr23216cwb; Tue, 14 Dec 2004 17:44:08 -0800 (PST) Received: by 10.11.118.15 with HTTP; Tue, 14 Dec 2004 17:44:08 -0800 (PST) Message-ID: Date: Wed, 15 Dec 2004 09:44:08 +0800 From: Jun Su To: Poul-Henning Kamp In-Reply-To: <54796.1103010524@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <54796.1103010524@critter.freebsd.dk> cc: arch@freebsd.org cc: delphij@freebsd.org Subject: Re: Propose for Several Dump types X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jun Su List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 01:44:09 -0000 On Tue, 14 Dec 2004 08:48:44 +0100, Poul-Henning Kamp wrote: > In message , Jun Su writes: > > >MiniDump > >======= > >In a minidump, Register info, plus the crash stack is enough. > > Make it an EVENTHANDLER() and dump it in ascii format. ^^^^^^^^^^^^ Don't think the ascii format is a good choose. We can only dump the information like the ones we can get in the KDB. My propose is storing the pages that the stack point is in. Then we can get more useful stack in the userland with the kernel file and kernel symbol. > > That way any kernel subsystem can hook in a function and dump > potentially relevant information. > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > -- -- Jun Su