busybox/modutils
Timo Teräs 48dc80bbba modutils: merge module_entry and module_info to common
This merges the in-memory module info structures of modprobe
and depmod. This allows sharing hashing by modulename code
improving depmod runtime with almost factor of 2x.

function                                             old     new   delta
get_or_add_modentry                                    -      17     +17
do_modprobe                                          590     601     +11
moddb_get_or_create                                    -      10     +10
load_modules_dep                                     195     205     +10
moddb_get                                              -       7      +7
add_probe                                             81      78      -3
modprobe_main                                        721     714      -7
depmod_main                                          553     543     -10
config_file_action                                   434     421     -13
helper_get_module                                    160     144     -16
parse_module                                         343     320     -23
order_dep_list                                       105      82     -23
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 2/7 up/down: 55/-95)            Total: -40 bytes

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-11-05 18:54:55 +01:00
..
Config.src MODPROBE_SMALL is not experimental anymore 2015-10-24 04:13:16 +02:00
depmod_process.sh depmod: fix handling of .gz modules 2009-05-18 13:08:04 +02:00
depmod.c modutils: merge module_entry and module_info to common 2015-11-05 18:54:55 +01:00
insmod.c modprobe-small: fix help messages for aliased module-related applets 2014-04-19 15:04:39 +02:00
Kbuild.src *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
lsmod.c mass removal of underscores from _BB_DIR_foo and _BB_SUID_foo 2011-01-18 13:58:01 +01:00
modinfo.c modinfo: fix "-F firmware", add "intree" field display 2015-10-28 18:07:46 +01:00
modprobe-small.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
modprobe.c modutils: merge module_entry and module_info to common 2015-11-05 18:54:55 +01:00
modutils-24.c libbb: introduce and use is_prefixed_with() 2015-03-12 17:48:34 +01:00
modutils.c modutils: merge module_entry and module_info to common 2015-11-05 18:54:55 +01:00
modutils.h modutils: merge module_entry and module_info to common 2015-11-05 18:54:55 +01:00
rmmod.c rmmod: fix bad error message 2015-10-24 04:17:04 +02:00