diff --git a/lisa/_kmod.py b/lisa/_kmod.py index db5556170316d1d71e74c5e6cf101c79a3f58d0d..7a884c70d1f4d97d7dcc07be2a6c3ba98e5727ea 100644 --- a/lisa/_kmod.py +++ b/lisa/_kmod.py @@ -2841,7 +2841,10 @@ class LISADynamicKmod(FtraceDynamicKmod): kallsyms = '\n'.join( f'{addr:x}\t{symtype}\t{name}{sym_mod(module)}' for (addr, name, symtype, module) in kallsyms - if module != mod_name + # If the symbol is part of a module, it must be ignored, as some + # symbols are duplicated in each module (e.g. __this_module), and + # would conflict with the ones defined for the LISA module. + if not module ) + '\n' kallsyms = kallsyms.encode('utf-8') extra['kallsyms'] = kallsyms