From owner-freebsd-hackers@FreeBSD.ORG Mon Oct 5 05:48:11 2009 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 790E71065672 for ; Mon, 5 Oct 2009 05:48:11 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id CCB4A8FC12 for ; Mon, 5 Oct 2009 05:48:10 +0000 (UTC) Received: by ewy5 with SMTP id 5so1852556ewy.36 for ; Sun, 04 Oct 2009 22:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:to:subject:organization:from :date:message-id:user-agent:mime-version:content-type; bh=9zbycC4dHRTXymNgQ56bT6o8zYpYIVaiEh7u2uNZucM=; b=p6z0oJmOc0UKPcFuyYWK5a+I8l9T8PWUFnQk6UQJB1TNAcNbpXOLGTzrabV9cQ4x3Z LVvEQzxHiG7lnNhUNMzuvdwA44zeYLr3OtaEV3Ogaa5WApOUsxJkzW8h8KJ8Y/k0Qr09 FgWBcSebldUZcp9CjRJSXcTKseLBdFNVumHZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:organization:from:date:message-id:user-agent :mime-version:content-type; b=bUDuRC/lOZdjQ9tnYzXnAd9aQpbmiSyAflKBSprhAjyQSoiYGmygp0S4aLIbx8LU7N L5z/y/mJ1PTryjzVG6WvFLwxYOWplkwTDz0ek5ZBaBBJ9NrMGS3Qbcjrbe4MVH2yVnPN U6xPXaMW2oZvglmKLHFFFvd2g1igQ6d+bu1gM= Received: by 10.211.157.7 with SMTP id j7mr6544702ebo.2.1254721689809; Sun, 04 Oct 2009 22:48:09 -0700 (PDT) Received: from localhost (ms.singlescrowd.net [80.85.90.67]) by mx.google.com with ESMTPS id 10sm1295952eyd.45.2009.10.04.22.48.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 04 Oct 2009 22:48:09 -0700 (PDT) To: freebsd-hackers@freebsd.org Organization: TOA Ukraine From: Mikolaj Golub Date: Mon, 05 Oct 2009 08:48:06 +0300 Message-ID: <81ws3a1je1.fsf@zhuzha.ua1> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: crashinfo: print the content of ddb capture budder 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: Mon, 05 Oct 2009 05:48:11 -0000 Hi, It would be nice if crashinfo(8) were also trying to output the content of ddb capture buffer. Something like in this patch: --- crashinfo.sh.orig 2009-10-05 08:26:26.000000000 +0300 +++ crashinfo.sh 2009-10-05 08:43:56.000000000 +0300 @@ -304,3 +304,18 @@ echo "kernel config" echo config -x $KERNEL + +file=`mktemp /tmp/crashinfo.XXXXXX` +if [ $? -eq 0 ]; then + ddb capture -M $VMCORE -N $KERNEL print > $file 2>/dev/null + if [ -s $file ]; then + echo "------------------------------------------------------------------------" + echo "ddb capture buffer" + echo + cat $file | + sed -e 's/p\{10\}p*//' # XXX: this removes the unfilled part of a capture buffer + echo + fi + rm -f $file +fi + -- Mikolaj Golub