crash.commands.lsmod module

SUMMARY

Display module information

lsmod [-p [n]] [name-wildcard]

DESCRIPTION

This command displays information about loaded modules.

The default output will show all loaded modules, the core address, its size, and any users of the module. By specifying [name-wildcard], the results can be filtered to modules matching the wildcard.

The following options are available:

-p display the percpu base for the module and the size of its region
-p CPU display the percpu base for the module and the size of its region for the specified CPU number
class crash.commands.lsmod.ModuleCommand[source]

Bases: crash.commands.Command

display module information

execute(args: argparse.Namespace) → None[source]

This method implements the command functionality.

Each command has a derived class associated with it that, minimally, implements this method.

Parameters:args – The arguments to this command already parsed by the commmand’s parser.
print_module_percpu(mod: gdb.Value, cpu: int = -1) → None[source]