projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7efb2a7
)
scripts/gdb: Adjust module reference counter reported by lx-lsmod
author
Jan Kiszka
<jan.kiszka@siemens.com>
Mon, 23 May 2016 23:24:37 +0000
(16:24 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 24 May 2016 00:04:14 +0000
(17:04 -0700)
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>
scripts/gdb/linux/modules.py
patch
|
blob
|
history
diff --git
a/scripts/gdb/linux/modules.py
b/scripts/gdb/linux/modules.py
index
0a35d6d
..
38f5d17
100644
(file)
--- a/
scripts/gdb/linux/modules.py
+++ b/
scripts/gdb/linux/modules.py
@@
-78,7
+78,7
@@
class LxLsmod(gdb.Command):
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()