Skip to content

Commit

Permalink
scripts/gdb: Adjust module reference counter reported by lx-lsmod
Browse files Browse the repository at this point in the history
This takes the MODULE_REF_BASE into account.

Link: http://lkml.kernel.org/r/d926d2d54caa034adb964b52215090cbdb875249.1462865983.git.jan.kiszka@siemens.com
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
jan-kiszka authored and torvalds committed May 24, 2016
1 parent 7efb2a7 commit 0c22fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gdb/linux/modules.py
Expand Up @@ -78,7 +78,7 @@ def invoke(self, arg, from_tty):
address=str(layout['base']).split()[0],
name=module['name'].string(),
size=str(layout['size']),
ref=str(module['refcnt']['counter'])))
ref=str(module['refcnt']['counter'] - 1)))

source_list = module['source_list']
t = self._module_use_type.get_type().pointer()
Expand Down

0 comments on commit 0c22fde

Please sign in to comment.