diff options
author | Tony Lindgren <tony@atomide.com> | 2015-07-06 08:33:17 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2015-07-06 08:33:17 -0400 |
commit | ae745302c0a3e2b5b768690f631fc14db44467e7 (patch) | |
tree | 1db4d210a7419286b447dc09fa7400a561d55f42 /scripts/gdb/linux/modules.py | |
parent | e3abe2556b2a689b28926cd1581f0b97e9d2afa4 (diff) | |
parent | 22a5dc10e3f8fb8370748ea19dc4e3e1620d8296 (diff) |
Merge branch 'fixes-rc1' into omap-for-v4.2/fixes
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): | |||
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 | ref = 0 | ||
77 | module_refptr = module['refptr'] | ||
78 | for cpu in cpus.cpu_list("cpu_possible_mask"): | ||
79 | refptr = cpus.per_cpu(module_refptr, cpu) | ||
80 | ref += refptr['incs'] | ||
81 | ref -= refptr['decs'] | ||
82 | |||
83 | gdb.write("{address} {name:<19} {size:>8} {ref}".format( | 76 | gdb.write("{address} {name:<19} {size:>8} {ref}".format( |
84 | address=str(module['module_core']).split()[0], | 77 | address=str(module['module_core']).split()[0], |
85 | name=module['name'].string(), | 78 | name=module['name'].string(), |
86 | size=str(module['core_size']), | 79 | size=str(module['core_size']), |
87 | ref=str(ref))) | 80 | ref=str(module['refcnt']['counter']))) |
88 | 81 | ||
89 | source_list = module['source_list'] | 82 | source_list = module['source_list'] |
90 | t = self._module_use_type.get_type().pointer() | 83 | t = self._module_use_type.get_type().pointer() |