[BusyBox] Insmod slow with big modules
rich_wilson at agilent.com
rich_wilson at agilent.com
Wed Jan 22 15:06:04 UTC 2003
I do believe that if you declare your symbols as "static", they
will remain local to that file.
See "Linux Device Drivers", 2nd edition, page 13. Available
online at o'reilly.
Rich
-----Original Message-----
From: Fabrice Gautier [mailto:Fabrice_Gautier at sdesigns.com]
Sent: Tuesday, January 21, 2003 12:00 PM
To: 'busybox at busybox.net'
Subject: [BusyBox] Insmod slow with big modules
Hi,
I'm using the insmod from busybox to load a kernel module in a uCLinux
kernel.
This takes a loooong time. Almost 3 seconds, most of them spend in the
function obj_string_patch.
The kernel module is pretty big, I can count ~800 symbols, and I believe
obj_string_patch is called for 688 of them.
I'm not really sure what obj_string_patch is supposed to do, it looks like
its designed to copy the symbol name in the kernel .kstrtab section, am i
right?
Also only a few of those 688 symbols are actually used by the kernel, so I
am wondering if they really need to go in the kernel kstrtab. Relocation
still need
to be performed on those symbol though, and i am not sure how it would be
possible to differentiate between symbols exported to the kernel and local
symbols anyway.
Any advices?
Thanks
--
Fabrice Gautier,
Fabrice_Gautier at sdesigns.com
_______________________________________________
busybox mailing list
busybox at busybox.net
http://busybox.net/mailman/listinfo/busybox
More information about the busybox
mailing list