Re: dump device

Andreas Dilger (adilger@turbolabs.com)
Fri, 30 Jun 2000 23:49:07 -0600 (MDT)


Zone writes:
> I still like a monitor program that is loaded into memory at kernel load
> time that is given control in the event of a panic. If it knew how to
> handle a text console, the keyboard and the floppy in a manner completely
> independent of the kernel it could be used to help debug a crash by
> producing a mini-dump to the floppy device.

Such a thing already exists - it's called kmsgdump, and it dumps the
current printk buffer to a floppy/serial/printer. It has its own
(assembly) console handling code, and it gets called when the kernel
panics, or through SysRQ. I've used it several times for debugging
OOPSes when developing on my laptop, which doesn't have a serial port.

Cheers, Andreas

-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/