mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
7efb2a7b85
commit
0c22fde8b0
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class LxLsmod(gdb.Command):
|
||||||
address=str(layout['base']).split()[0],
|
address=str(layout['base']).split()[0],
|
||||||
name=module['name'].string(),
|
name=module['name'].string(),
|
||||||
size=str(layout['size']),
|
size=str(layout['size']),
|
||||||
ref=str(module['refcnt']['counter'])))
|
ref=str(module['refcnt']['counter'] - 1)))
|
||||||
|
|
||||||
source_list = module['source_list']
|
source_list = module['source_list']
|
||||||
t = self._module_use_type.get_type().pointer()
|
t = self._module_use_type.get_type().pointer()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue