From owner-freebsd-current@FreeBSD.ORG Mon Dec 31 01:42:12 2007 Return-Path: Delivered-To: current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C5EA16A420; Mon, 31 Dec 2007 01:42:12 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id AD8CB13C457; Mon, 31 Dec 2007 01:42:11 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.2/8.14.2) with ESMTP id lBV1g9hR063817; Mon, 31 Dec 2007 04:42:09 +0300 (MSK) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1199065329; bh=FlUYfSKmsdYQNRhTc36mS+Q+iCnAoQBpOW568r4 PJhU=; l=1162; h=Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent; b=Zsd+yP//X2YzflT1mEMF 8LsPlWhfOf95G4G7q0NhwQ1KlOQ8levlh0HwIAPzis7sO3YEPmoVc/E/CeJ9FIgdS4o D9WrVJg2JLYeZKxLvRSgg6Au71R/YSgAgn2761f5ACY5Q6CCArYKPiRDSlq16RyHJd/ QbhhUeWWSDRsSGwoY= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id lBV1g9UE063814; Mon, 31 Dec 2007 04:42:09 +0300 (MSK) (envelope-from ache) Date: Mon, 31 Dec 2007 04:42:08 +0300 From: Andrey Chernov To: Robert Watson Message-ID: <20071231014208.GA63099@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Robert Watson , current@FreeBSD.ORG References: <20071230130940.T98172@fledge.watson.org> <20071230210946.GA58498@nagual.pp.ru> <20071231002207.I21364@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071231002207.I21364@fledge.watson.org> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: current@FreeBSD.ORG Subject: Re: Q&A on textdumps 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: Mon, 31 Dec 2007 01:42:12 -0000 On Mon, Dec 31, 2007 at 12:28:03AM +0000, Robert Watson wrote: > ddb script kdb.enter.panic="textdump set; capture on; show pcpu; bt; show > locks; ps; alltrace; show lockedvnods; show alllocks; capture off; call > doadump; reset" > > This will give you a textdump on panic, but other ways over entering DDB > will just drop to the debugger normally. You might find you want to set a > kdb.enter.default script along the above lines, and provide no-op scripts > for serial/console break and sysctl in order to drop to the debugger only > for cases where the sysadmin has intervened. > > It might be that, in light of DDB scripting and textdumps, we want to > rethink the way KDB_UNATTENDED works, or at least how it behaves in the > presence of defined scripts. I agree, we need to do something lightweight in KDB_UNATTENDED mode istead of very hard way you describe above. Could you please inspect/tweak possibility of running script in unattended mode, keeping in mind that console is unavailable and no interactive break to debugger should ever occurse because there is nobody to enter commands? -- http://ache.pp.ru/