aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2016-05-23 19:24:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-23 20:04:14 -0400
commit0c22fde8b0e674a201f277688f1b3a38f6e09ada (patch)
tree9cb6f5f90e5e3c3e855c97c4f5ae2a32e2658437 /scripts/gdb/linux/modules.py
parent7efb2a7b85f2d2a53ae50e35cf5df260dd5278b7 (diff)
scripts/gdb: Adjust module reference counter reported by lx-lsmod
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>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
-rw-r--r--scripts/gdb/linux/modules.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gdb/linux/modules.py b/scripts/gdb/linux/modules.py
index 0a35d6dbfb80..38f5d17044c5 100644
--- a/scripts/gdb/linux/modules.py
+++ b/scripts/gdb/linux/modules.py
@@ -78,7 +78,7 @@ class LxLsmod(gdb.Command):
78 address=str(layout['base']).split()[0], 78 address=str(layout['base']).split()[0],
79 name=module['name'].string(), 79 name=module['name'].string(),
80 size=str(layout['size']), 80 size=str(layout['size']),
81 ref=str(module['refcnt']['counter']))) 81 ref=str(module['refcnt']['counter'] - 1)))
82 82
83 source_list = module['source_list'] 83 source_list = module['source_list']
84 t = self._module_use_type.get_type().pointer() 84 t = self._module_use_type.get_type().pointer()