From owner-cvs-src@FreeBSD.ORG Mon Oct 3 08:51:34 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 B227116A41F; Mon, 3 Oct 2005 08:51:34 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D16343D45; Mon, 3 Oct 2005 08:51:34 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 89EFD46B45; Mon, 3 Oct 2005 04:51:33 -0400 (EDT) Date: Mon, 3 Oct 2005 09:51:33 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Olivier Houchard In-Reply-To: <200510022257.j92MvV4N007297@repoman.freebsd.org> Message-ID: <20051003094732.H71864@fledge.watson.org> References: <200510022257.j92MvV4N007297@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, 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 08:51:34 -0000 On Sun, 2 Oct 2005, Olivier Houchard wrote: > 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 called > 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' while in > the middle of printing a backtrace it will finish printing the backtrace > 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 more. Thanks! Is there any chance I can interest you in an idea phk, I, and a few others have been kicking around for a bit relating to smart small dumps? Specifically, we were discussing the idea of allowing a dumping mode in which rather than dumping all of kernel memory, we dump specifically the common and useful output from ddb, such as ps, show locked vnods, show alllocks, traceall, show allpcpu, and so on, basically in text format, to the dump partition. Then the results can be pulled off easily in a format 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 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 dumping code, but almost all of the logic to generate the information from DDB could be reused, perhaps via an alternative pager or debug output device :-). Robert N M Watson