From 80477325c942d2a3bda169c4e4c633df61bb3568 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Thu, 17 Aug 2023 11:44:01 +0100 Subject: [PATCH] lisa._kmod: Add extra kmod load debug logging --- lisa/_kmod.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisa/_kmod.py b/lisa/_kmod.py index ca8851405..4805a38c0 100644 --- a/lisa/_kmod.py +++ b/lisa/_kmod.py @@ -2381,6 +2381,7 @@ class LISAFtraceDynamicKmod(FtraceDynamicKmod): kmod_params['version'] = self.src.sources_checksum base_path, kmod_filename = guess_kmod_path() + logger.debug(f'Looking for pre-installed {kmod_filename} module in {base_path}') try: kmod_path = target.execute( f"{busybox} find {base_path} -name {quote(kmod_filename)}" @@ -2392,7 +2393,7 @@ class LISAFtraceDynamicKmod(FtraceDynamicKmod): ret = self._install(kmod_cm(), kmod_params=kmod_params) except (TargetStableCalledProcessError, KmodVersionError) as e: - logger.debug(f'Pre-existing {kmod_filename} was not found or does not have the expected version: {e}') + logger.debug(f'Pre-installed {kmod_filename} is unsuitable, recompiling: {e}') ret = super().install(kmod_params=kmod_params) else: logger.debug(f'Loaded "{self.src.mod_name}" module from pre-installed location: {kmod_path}') -- GitLab