public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* A question sort_main_extable()
@ 2008-11-21  5:42 Peter Teoh
  2008-11-21  5:47 ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Teoh @ 2008-11-21  5:42 UTC (permalink / raw)
  To: LKML; +Cc: Sam Ravnborg

Inside start_kernel() there is a call to sort_main_extable().

void sort_extable(struct exception_table_entry *start,
                 struct exception_table_entry *finish)
{
       sort(start, finish - start, sizeof(struct exception_table_entry),
            cmp_ex, NULL);
}

With reference to
http://tuxology.net/2008/07/08/benchmarking-boot-latency-on-x86/, I
think it can help bootup latency (how much I got no number) if the
sorting is done post-compilation time, instead of dynamically
everytime the system bootup.  (perhaps at the stage of modposting,
when all the vmlinux, kernel modules objects have been generated, so
extracting out the exceptions strings is possible?)  Is this a
possible optimization?

Sam, can it be done?

Thanks.


-- 
Regards,
Peter Teoh

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-23 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21  5:42 A question sort_main_extable() Peter Teoh
2008-11-21  5:47 ` Arjan van de Ven
2008-11-21  6:43   ` Peter Teoh
2008-11-23 19:45   ` Andi Kleen

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