diff options
author | Tony Lindgren <tony@atomide.com> | 2015-06-09 23:37:31 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-06-09 23:37:31 -0700 |
commit | 63e63a1981c7247fea41ce97b3144befc8f2fb7b (patch) | |
tree | 74a5708579661a741b6c62096530e68aee949273 /scripts/gdb/linux/modules.py | |
parent | 5b83b2234be6733cfe22036c38031b2c890b3db8 (diff) | |
parent | a3e362f18c01f28abcb6d8e5d00be8b5d97ea09d (diff) |
Merge branch 'wakeirq-8250' into omap-for-v4.2/wakeirq-v2
Diffstat (limited to 'scripts/gdb/linux/modules.py')
-rw-r--r-- | scripts/gdb/linux/modules.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/gdb/linux/modules.py b/scripts/gdb/linux/modules.py index a1504c4f1900..25db8cff44a2 100644 --- a/scripts/gdb/linux/modules.py +++ b/scripts/gdb/linux/modules.py @@ -73,18 +73,11 @@ class LxLsmod(gdb.Command): " " if utils.get_long_type().sizeof == 8 else "")) for module in module_list(): - ref = 0 - module_refptr = module['refptr'] - for cpu in cpus.cpu_list("cpu_possible_mask"): - refptr = cpus.per_cpu(module_refptr, cpu) - ref += refptr['incs'] - ref -= refptr['decs'] - gdb.write("{address} {name:<19} {size:>8} {ref}".format( address=str(module['module_core']).split()[0], name=module['name'].string(), size=str(module['core_size']), - ref=str(ref))) + ref=str(module['refcnt']['counter']))) source_list = module['source_list'] t = self._module_use_type.get_type().pointer() |