From owner-cvs-src@FreeBSD.ORG Mon Oct 3 18:04:25 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43F7116A41F; Mon, 3 Oct 2005 18:04:25 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3916543D4C; Mon, 3 Oct 2005 18:04:24 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 228F552D20; Mon, 3 Oct 2005 20:04:23 +0200 (CEST) Received: from localhost (dkh109.neoplus.adsl.tpnet.pl [83.24.11.109]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A1BC852CA9; Mon, 3 Oct 2005 20:04:15 +0200 (CEST) Date: Mon, 3 Oct 2005 20:04:04 +0200 From: Pawel Jakub Dawidek To: Robert Watson Message-ID: <20051003180404.GA7247@garage.freebsd.pl> References: <200510022257.j92MvV4N007297@repoman.freebsd.org> <20051003094732.H71864@fledge.watson.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <20051003094732.H71864@fledge.watson.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng devel (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Olivier Houchard , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ddb db_command.c db_output.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2005 18:04:25 -0000 --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 03, 2005 at 09:51:33AM +0100, Robert Watson wrote: +> On Sun, 2 Oct 2005, Olivier Houchard wrote: +>=20 +> >cognet 2005-10-02 22:57:31 UTC +> > FreeBSD src repository +> > Modified files: +> > sys/ddb db_command.c db_output.c +> > Log: +> > - Call db_setup_paging() for traceall. +> > - Make it so one can't call db_setup_paging() if it has already been c= alled +> > before. traceall needs this, or else the db_setup_paging() call from +> > db_trace_thread() will reset the printed line number, and override its +> > argument. +> > This is not perfect for traceall, because even if one presses 'q' whil= e in +> > the middle of printing a backtrace it will finish printing the backtra= ce +> > before exiting, as db_trace_thread() won't be notified it should stop,= but +> > it is hard to do better without reworking the pager interface a lot mo= re. +>=20 +> Thanks! +>=20 +> Is there any chance I can interest you in an idea phk, I, and a few othe= rs have been kicking around for a bit relating to smart small dumps? Specif= ically, we were=20 +> discussing the idea of allowing a dumping mode in which rather than dump= ing all of kernel memory, we dump specifically the common and useful output= from ddb, such as ps,=20 +> show locked vnods, show alllocks, traceall, show allpcpu, and so on, bas= ically in text format, to the dump partition. Then the results can be pull= ed off easily in a format=20 +> that is appropriate for e-mailing or submitting via a PR, even without a= full debugging kernel, etc. Among other things, these dumps would be much= , much smaller than a=20 +> memory dump, meaning they could be kept around like log files (/var/log/= crash.log.0, ...), be e-mailed to the sysadmin, etc. It would require some= new magic in DDB and the=20 +> dumping code, but almost all of the logic to generate the information fr= om DDB could be reused, perhaps via an alternative pager or debug output de= vice :-). While we're at it, I'd love to see something like this to be done automatically when I'm in X and can't see the panic. I had two hard to reproduce panics recently and couldn't get any info. This will help a lot. BTW. Is this possible to configure the kernel to do dump on panic when I'm in X and drop me into DDB when I'm in text console? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDQXKUForvXbEpPzQRAqpMAJ4sC2NR1nLnPtE9T88dZGU3fDtEfACg5IB3 CoYD2M/Ovn1lP0hmFFO/gfM= =hQ/+ -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--