On 02/23/11 18:21, Silvio Bandeira wrote: > How can I redirect the output of 'trace' and 'ps' in ddb to a file? > > Thanks in advance. >
with 'vi' (or mg, or emacs). yeah, not fun, I know, I know very vividly and repeatedly, so I don't want to hear the complaints. :) Think about what you ask, however. The kernel just entered a state it didn't want to be in, do you really trust it to write nicely, legibly and between the lines on your file system? The output of "trace" and "ps" is stored in the dmesg buffer. In some cases, if you get really lucky, the dmesg buffer is preserved after you do a "boot reboot" at the ddb prompt, and when you do a "dmesg" after the reboot, it's there for you. While I have lots of machines that preserve dmesg across boots, those machines usually don't seem to ever panic, the ones that panic don't save the dmesg buffer. :( Nick.
