Re: [PATCH] BUG preserve registers

H. Peter Anvin
2002-02-10T04:24:06Z

Andrew Morton wrote:

> Alan Cox wrote:
>
>>>This works for me, from in-kernel as well as in-module. It'd
>>>be good if someone more familiar with x86 could check it over.
>>>
>>This looks a really bad reversion. The CONFIG_DEBUG_BUGVERBOSE ifdef saves
>>over 70K of memory on my standard kernel build.
>>
>
> About the time the 70k claim was made, I moved the printk out-of-line,
> so things got not so bad. However, with my (large) kernel build, on
> egcs-1.1.2:
>
> non-verbose BUG:
> 2589971 293436 373404 3256811 31b1eb vmlinux
> verbose BUG:
> 2709055 293436 373404 3375895 338317 vmlinux
> Patched:
> 2694537 293436 373404 3361377 334a61 vmlinux
>
> Which is 100k, which is preposterous.
>

Use "size" to determine the actual size, or strip the binary.

-hpa