public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* re: function ordering (was: Re: [RFC] exit_thread() speedups in x86
@ 2005-07-04 13:12 Dan Kegel
  0 siblings, 0 replies; only message in thread
From: Dan Kegel @ 2005-07-04 13:12 UTC (permalink / raw)
  To: linux-kernel; +Cc: Will Cohen, Brandan C Lennox

Arjan van de Ven wrote:
> hmm. I wonder if a slightly different approach (based on the __slow)
> idea would make sense
> 1) Use -ffunction-sections option from gcc to put each function in it's
> own section
> 2) Use readprofile/oprofile data to collect an (external to the code)
> list of hot/cold functions (we can put a default list in the kernel
> source somewhere and allow people to measure their own if they want)
> 3) Use this list to make a linker script to order the functions

Somebody recently implemented something similar; see
http://www.bclennox.com/ldreorder/
It used valgrind rather than oprofile.
- Dan

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-04 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-04 13:12 function ordering (was: Re: [RFC] exit_thread() speedups in x86 Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox