diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-25 16:44:01 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-25 16:44:01 +0300 |
commit | 1cbc99dfe5d7d686fd022647f4e489b5eb8e9068 (patch) | |
tree | 735e0254f6f491442d75e683eb9eb3c7ac685111 /scripts/gdb/linux/modules.py | |
parent | 94862a62dfe3ba1c7601115a2dc80721c5b256f0 (diff) | |
parent | 8cee1eed8e78143aa2ed60308fb88e2d6fa46205 (diff) | |
download | linux-1cbc99dfe5d7d686fd022647f4e489b5eb8e9068.tar.xz |
Merge back cpufreq changes for v4.7.
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): " " if utils.get_long_type().sizeof == 8 else "")) for module in module_list(): + layout = module['core_layout'] gdb.write("{address} {name:<19} {size:>8} {ref}".format( - address=str(module['module_core']).split()[0], + address=str(layout['base']).split()[0], name=module['name'].string(), - size=str(module['core_size']), + size=str(layout['size']), ref=str(module['refcnt']['counter']))) source_list = module['source_list'] |