diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2016-03-22 17:27:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-22 18:36:02 -0400 |
commit | ad4db3b24a93e52a92ad8f9b0273a9416f202c23 (patch) | |
tree | 2dbb0e30c22180e08ff555249fa3961724782adf /scripts/gdb/linux/modules.py | |
parent | 72bf92ec29ac052e950dcb2cc7f8820a2e1f0a02 (diff) |
scripts/gdb: account for changes in module data structure
Commit 7523e4dc5057 ("module: use a structure to encapsulate layout.")
factored out the module_layout structure. Adjust the symbol loader and
the lsmod command to this.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Kieran Bingham <kieran.bingham@linaro.org>
Tested-by: Kieran Bingham <kieran.bingham@linaro.org> (qemu-{ARM,x86})
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: <stable@vger.kernel.org> [4.4+]
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.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/gdb/linux/modules.py b/scripts/gdb/linux/modules.py index 25db8cff44a2..0a35d6dbfb80 100644 --- a/scripts/gdb/linux/modules.py +++ b/scripts/gdb/linux/modules.py | |||
@@ -73,10 +73,11 @@ class LxLsmod(gdb.Command): | |||
73 | " " if utils.get_long_type().sizeof == 8 else "")) | 73 | " " if utils.get_long_type().sizeof == 8 else "")) |
74 | 74 | ||
75 | for module in module_list(): | 75 | for module in module_list(): |
76 | layout = module['core_layout'] | ||
76 | gdb.write("{address} {name:<19} {size:>8} {ref}".format( | 77 | gdb.write("{address} {name:<19} {size:>8} {ref}".format( |
77 | address=str(module['module_core']).split()[0], | 78 | address=str(layout['base']).split()[0], |
78 | name=module['name'].string(), | 79 | name=module['name'].string(), |
79 | size=str(module['core_size']), | 80 | size=str(layout['size']), |
80 | ref=str(module['refcnt']['counter']))) | 81 | ref=str(module['refcnt']['counter']))) |
81 | 82 | ||
82 | source_list = module['source_list'] | 83 | source_list = module['source_list'] |