lkml.org 
[lkml]   [2008]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectA question sort_main_extable()
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


\
 
 \ /
  Last update: 2008-11-21 06:45    [W:0.039 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site