From owner-freebsd-current@FreeBSD.ORG Tue Sep 2 15:34:51 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00DF7106564A for ; Tue, 2 Sep 2008 15:34:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7704E8FC17 for ; Tue, 2 Sep 2008 15:34:50 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m82FYMYd015249; Tue, 2 Sep 2008 11:34:44 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Kostik Belousov Date: Tue, 2 Sep 2008 10:35:49 -0400 User-Agent: KMail/1.9.7 References: <200808291726.16799.jhb@freebsd.org> <20080830084824.GE2038@deviant.kiev.zoral.com.ua> In-Reply-To: <20080830084824.GE2038@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809021035.49822.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Tue, 02 Sep 2008 11:34:44 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8140/Tue Sep 2 11:02:13 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Kirk Strauser , freebsd-current@freebsd.org Subject: Re: System, diagnose thyself: auto-documentation for crashes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 15:34:51 -0000 On Saturday 30 August 2008 04:48:24 am Kostik Belousov wrote: > On Fri, Aug 29, 2008 at 05:26:16PM -0400, John Baldwin wrote: > > On Friday 29 August 2008 05:07:15 pm Kirk Strauser wrote: > > > On Aug 29, 2008, at 10:44 AM, John Baldwin wrote: > > > > > > > See /usr/sbin/crashinfo for a start. I have patches to enable it > > > > from /etc/rc.d/savecore after generating a patch (still need to test > > > > them > > > > though). > > > > > > > > > I'm not finding that anywhere, either on my systems or on Google. > > > > It's in HEAD. > > > > http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/crashinfo/crashinfo.sh > > John, why not MFCing it ? MFC cannot break anything :), it is a standalone > utility, and it definitely useful to have bigger test base. It is on the list, I've just been a bit busy recently. :) Also, I didn't want to merge it to 7.x until I fixed vmstat and iostat to work on core dumps again. > I propose to add some note to the manpage, explicitely mentioning > experimantal status of utility, and the fact that both user interface > and output format are subject to change. I imagine this is the only > obstacle for MFC. Actually, Y! has used a script like this in production for years, so I don't foresee much in the way of changes in the future. One change would be to add a run of ddb to dump the capture buffer from a crash dump. Another change would be to re-enable w(1) if it ever becomes useful on crash dumps again. -- John Baldwin