Re: Q&A on textdumps
- From: Robert Watson <rwatson@xxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 00:28:03 +0000 (GMT)
On Mon, 31 Dec 2007, Andrey Chernov wrote:
On Sun, Dec 30, 2007 at 01:11:29PM +0000, Robert Watson wrote:
I've received a few textdump-related questions that I thought I'd share my answers to.
In case I have remote machine with console unavailable, is it will be enough to use KDB_UNATTENDED and debug.ddb.textdump.pending=1 in /etc/sysctl.conf to get automatical unattended textdumps with auto-reboot?
It depends whether you want to gather information using DDB output capture or not. If you do the above, you should get a textdump (although I've not tried it), but because there's no scripted DDB output, you won't get extended debugging information. The configuration I'm using is to use a script like the following:
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.
Robert N M Watson
Computer Laboratory
University of Cambridge
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Q&A on textdumps
- From: Andrey Chernov
- Re: Q&A on textdumps
- References:
- Q&A on textdumps
- From: Robert Watson
- Re: Q&A on textdumps
- From: Andrey Chernov
- Q&A on textdumps
- Prev by Date: Re: Q&A on textdumps
- Next by Date: Re: Q&A on textdumps
- Previous by thread: Re: Q&A on textdumps
- Next by thread: Re: Q&A on textdumps
- Index(es):
Relevant Pages
|
|