lkml.org 
[lkml]   [2004]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: List of oversized inlines
Date
On Sunday 11 April 2004 19:32, Matt Mackall wrote:
> On Sun, Apr 11, 2004 at 07:05:49PM +0300, Denis Vlasenko wrote:
> > Below you may find a list of inlines which have multiple callers
> > and which compile to more than 39 bytes.
>
> Could you perhaps subtract out the size of a null function and include
> the product of size * uses?
>
> > Tool used to obtain this list will be published when
> > I will polish it a bit.
>
> I'd obviously like to add this to the scripts in -tiny.

Well, it's too ugly for words now. I shall work on it a bit.

Basically, you:

* untar linux tree into tree/,
* make allyesconfig
NB: I did not do this, I used my 'usual' config
* compile it with MEASURE_INLINES, saving
make output in make_inline.log
* run 'process' script (get a list of inlines)
* run process2 (add functions to .c files)
* run make again, >make_test.log
* run process3 (file+line of errors)
* run process4 (comment out error lines)
NB: BUG! sh 'read -r line' strips spaces
* run make again, no need to save space
* run process5 (calculate size using nm)
* run process6 (sorting)
* run process7 (throw away 1 caller inlines)
NB: needs rewriting in e.g. python, outrageously slow
--
vda
[unhandled content-type:application/x-tgz]
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.068 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site