[Devel] Re: [PATCH] Add ability to print calltraces tighter on i386
Ph. Marek
philipp.marek at bmlv.gv.at
Wed Aug 8 23:04:23 PDT 2007
On Mittwoch, 8. August 2007, Andi Kleen wrote:
> > Not everyone likes frame buffer
>
> You don't need the frame buffer; cards typically have text mode
> fonts upto 80x50. The node numbers vary, but you can find out yours
> with vga=ask
>
> > but even with it any OOPs in
> > network code which happens in softirq, io scheduler and nearby
> > code that is called after passing through all the VFS hooks
> > and many other examples produce long oopses.
> >
> > Oops-es with only the calltrace of ~50 lines do happen :)
>
> Normally most of it bogus. I had hoped to address this with the dwarf2
> unwinder, which tends to filter them out nicely,
> but Linus unfortunately has developed an quite irrational aversion against
> it and it's not in.
>
> But the problem is with bogus entries in there you have no guarantee
> that the first of your call trace is any useful -- it might be all bogus.
> So i don't really think your option makes much sense.
>
> Another way would be to not dump addresses and use multiple entries
> per line again. I guess that would make more sense as an option.
Maybe a crazy idea, but if some OOPS is reproduceable, it might work to dump
some subset of the calltrace - every time some other part (randomly).
Eg. If you need to show the last 64 stack words (of 8 characters each), but
have only space for 80 characters (ie. 8 words in hexadecimal, plus 8
spaces), you could print some index, and every 8th word from there on ...
Or, to increase the probability of getting information for each try, probably
use some random steps, too.
Of course, all of this is moot if you've got a serial console ...
Regards,
Phil
More information about the Devel
mailing list