2004-03-15 12:50:00

by dick morales

[permalink] [raw]
Subject: [KBUILD, FEATURE]

Hi all!

Many times i saw and did things like "time make bzImage modules" or "times
..." to know
how long kernel compile process takes, many users and admins use similar
technique.
Is it possible to add this feature to genuine kernel?
Like adding (in the top Makefile, kbuild hackers please help)
START_TIME=`date +"%s"`
END_TIME=`date +"%s"`
_TIME=$(($END_TIME-$START_TIME))
or in another form with days(anyone use 2.6 on 486 ;) ?), hours, min,sec.

And another small bug - if your locale is not posix, f.e. for non-english
languages
UTS_ strings in linux_banner will be corrupted. Maybe set posix locale in
Makefile,
so unpractised users will not be confused?

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


2004-03-15 17:44:31

by Sam Ravnborg

[permalink] [raw]
Subject: Re: [KBUILD, FEATURE]

On Mon, Mar 15, 2004 at 04:49:57AM -0800, dick morales wrote:
> Hi all!
>
> Many times i saw and did things like "time make bzImage modules" or "times
> ..." to know
> how long kernel compile process takes, many users and admins use similar
> technique.
> Is it possible to add this feature to genuine kernel?
> Like adding (in the top Makefile, kbuild hackers please help)
> START_TIME=`date +"%s"`
> END_TIME=`date +"%s"`
> _TIME=$(($END_TIME-$START_TIME))
> or in another form with days(anyone use 2.6 on 486 ;) ?), hours, min,sec.

I see no need to add this to kbuild when this is so easy to do.
Just use the above mentioned command.

Sam