eal/linux: support built-in kernel modules
authorKamil Rytarowski <kamil.rytarowski@caviumnetworks.com>
Thu, 28 Jan 2016 13:13:54 +0000 (14:13 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 9 Feb 2016 15:03:46 +0000 (16:03 +0100)
commit6e7caa1ad9d597fed0a49468af25ae6e68b8c443
tree121675831269fbdf4d8ee3aafd15112e71bb733f
parentbb9f408550d13af6c1da104b0d9d9b9837f69bde
eal/linux: support built-in kernel modules

Currently rte_eal_check_module() detects Linux kernel modules via reading
/proc/modules. Built-in ones aren't listed there and therefore they are not
being found.

Add support for checking built-in modules with parsing the sysfs files

This commit obsoletes the /proc/modules parsing approach.

Signed-off-by: Kamil Rytarowski <kamil.rytarowski@caviumnetworks.com>
Acked-by: David Marchand <david.marchand@6wind.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_eal/linuxapp/eal/eal.c