Re: [PATCH 2/8] dynamic debug - core infrastructure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jason Baron
Date: Friday, June 20, 2008 - 8:38 am

On Wed, Jun 18, 2008 at 09:08:12AM -0700, Greg KH wrote:

no.


With this feature enabled, the above 'meta-data' added ~32K to the .init.data
section. This memory is freed when the system boots because it is placed in the
.init.data section. The same is true for modules, the 'meta-data' is freed when
the module loads.

We could reduce the vmlinux by having 'register()' type calls for this
infrastructure, or a new marco per file as you suggest, and i had something
like that in an earlier iteration, but I think the memory savings is very
small when compared to the increased complexity. The simplicity to just put a
'pr_debug()" anywhere and just have it do the right thing is nice.

Also, it should be noted that the total increase in the size of the 'vmlinux' 
was 3%, or 2M, this is due to the above 'meta-data', the new code, and probably 
most significantly, the strings, for the additinal printks. Thus, compressing
the above meta-data, or eliminating it by some other means would only decrease
the size of this infrastructure by 2% or so.

thanks,

-Jason

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/8] dynamic debug - core infrastructure, Jason Baron, (Fri Jun 13, 12:00 pm)
Re: [PATCH 2/8] dynamic debug - core infrastructure, Joe Perches, (Fri Jun 13, 3:30 pm)
Re: [PATCH 2/8] dynamic debug - core infrastructure, Jason Baron, (Mon Jun 16, 12:15 pm)
Re: [PATCH 2/8] dynamic debug - core infrastructure, Pavel Machek, (Wed Jun 18, 1:52 pm)
Re: [PATCH 2/8] dynamic debug - core infrastructure, Jason Baron, (Fri Jun 20, 8:38 am)