[LTP] [RFC PATCH 0/2] kernel module detection (own implementation)
Petr Vorel
pvorel@suse.cz
Mon Jan 18 13:34:31 CET 2021
Hi,
pre-release fix for BusyBox. It depends on modules.dep.
This implementation fails to detect built-in modules. IMHO the only
option is to run modprobe -n or modinfo from kmod:
$ modprobe -n aead; echo $?
0
$ modinfo aead
name: aead
filename: (builtin)
description: Authenticated Encryption with Associated Data (AEAD)
license: GPL
file: crypto/aead
kmod implementation searches in /lib/modules/$(uname -r)/modules.builtin.modinfo,
thus I'll have look at that /lib/modules/$(uname -r)/modules.builtin.
But maybe we should just search for module in /lib/modules/$(uname -r)
(/system/lib/modules for android) instead expecting modules.dep + check
content of modules.builtin for built-in if file available.
@Sandeep @Steve: could you have a quick look on Android part?
Not sure if modules.dep (and modules.builtin) is available at all on AOSP.
Kind regards,
Petr
Petr Vorel (2):
lib: Fix kernel module detection on BusyBox
zram: Fix module detection on BusyBox
lib/tst_kernel.c | 63 +++++++++++++++++--
.../kernel/device-drivers/zram/zram_lib.sh | 6 +-
2 files changed, 60 insertions(+), 9 deletions(-)
--
2.29.2
More information about the ltp
mailing list