depmod: cache dependency_symbol list in struct mod
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 30 Oct 2012 05:16:10 +0000 (03:16 -0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 30 Oct 2012 06:05:53 +0000 (04:05 -0200)
commitec587f298cf172cf89382881bdb45f096376da1d
treeeba8cf3d7bfc565503416101b02d149e0e318e24
parent7062eca38b02af4e80c8409e6296678f07e9937c
depmod: cache dependency_symbol list in struct mod

The overall goal is to coalesce the accesses to a file that is the
backend of a module. This commit addresses the calls to
kmod_module_get_get_dependency_symbols(). Calling it earlier, while we
are iterating the modules allows us to free the struct kmod of each
module much sooner. We are still not freeing it since there are other
places that must be refactored first.

There's a performance penalty of ~2.5% from previous commit.
tools/depmod.c